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
Two network adapters. How to config?
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Two network adapters. How to config?
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.
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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
cyber01
- Posts: 4
- Joined: 29. Nov 2010, 17:07
- Primary OS: MS Windows Vista
- VBox Version: OSE other
- Guest OSses: Ubuntu Server
Re: Two network adapters. How to config?
Try to do. Thank you