Problems using NAT adapter
Posted: 29. Sep 2010, 10:10
Hello, I have been having some problems with the NAT adapter using Virtual Box with Windows7 as hostOS and Ubuntu 10.04 as guest OS. I have the network adapter set equal to NAT. After installation, in the /etc/network/interfaces file, I have iface eth0 inet dhcp. This from what I understand means that the IP is going to be dynamic, i.e. - given to the machine. In this case, since the adapter type is NAT, then isn't VirtualBox responsible to give an IP to this machine? For some reason eth0 is never coming up (ifconfig does not show it) and I need to resolve using a command such as sudo dhclient in order to get a connection listed. This seems to give an IP to my machine. However my question is, why do I need to run this command on startup each time??
NOTE: When I do the command dhclient the device that comes up in ifconfig is not eth0 but eth2!!
Also, if I am using NAT adapter, then does it mean that all requests from the virtual machine (in this case Linux) will appear as if coming from my hostOS to the network to which the latter is connected?
NOTE: When I do the command dhclient the device that comes up in ifconfig is not eth0 but eth2!!
Also, if I am using NAT adapter, then does it mean that all requests from the virtual machine (in this case Linux) will appear as if coming from my hostOS to the network to which the latter is connected?