0

I tried using bridged adapter mode but it did not work in my school's network.

I was wondering if someone could give me a simple guide on how to set up virtual networking in VirtualBox (5.1.2) that the following scenarios work:

  • Both Host and Guest can access Internet
  • Host and other machines on host's network can ping Guest and vice versa
  • Host and other machines on host's network can access virtual instance's services for example an apache web server running on Guest and vice versa

I've been fiddling around with the various Network Adapters available in the settings for my Guest, but I'm just not able to figure it out. Anyone that can help me out here?

The host is running Windows 10 64-bit and the guest is running Ubuntu 16

2 Answers 2

1

Given the fact you stated elsewhere the bridged configuration works well at home but on on your school's network, the issue might be that your school's network is using fixed IPs for your hosts or that it doesn't allow unregistered mac addresses to get dhcp replies. In such case, if you really want ping to be allowed, there is nothing you can do without violating the rules and putting the network at risk.

On the other hand, using NAT and port redirection would allow client/server communication between VMs but a more complex way.

0

The default network connection in virtual box should allow communication between the host and the guest, but all other devices on the network will need static routes added to point traffic destined for the guest to be directed to your host.

1
  • Both of your statements are incorrect. The default configuration is NAT and doesn't allow communication between the host and the guest, only the opposite. Static routes won't help to overcome this issue.
    – jlliagre
    Commented Sep 29, 2016 at 6:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .