Page 1 of 1

Two network adapters. How to config?

Posted: 29. Nov 2010, 17:30
by cyber01
Host Windows Vista, Guest Ubuntu 10.10 Server , Virtual Box 3.2.10.
How to configure the network so that both had a connection and through the NAT and the local Host only? Make 2 network adapters? How to configure them in the Ubuntu Server 10.10
Sorry for my bad English

Re: Two network adapters. How to config?

Posted: 29. Nov 2010, 17:45
by Sasquatch
So you want a NAT connection for the VM so it has internet, and a Host-Only so the Host can have direct connection with the Guest. That is indeed done by configuring two adapters in the VM settings. Open the VM settings, go to the Network section and set the first adapter to NAT. This should be the default already. Now click on the Adapter 2 tab and enable this adapter. In the drop down menu, select Host-Only. That's it for the VM settings.

In the main GUI, click on File, then Preferences. Select the network option and then on the screwdriver icon. Enable the DHCP server option and enter the range you want to use, e.g. 192.168.56.100 - 200.

Start the VM (or install it if you haven't done that yet) and log in. Navigate to /etc/network/ and open the file called interfaces. The first adapter is already stated there. Copy the entries for it and paste it under it. Modify the name eth0 to eth1 in the newly pasted lines and reboot.

Your VM is now fully accessible for the Host.

Re: Two network adapters. How to config?

Posted: 29. Nov 2010, 17:50
by cyber01
Try to do. Thank you