Page 1 of 1

Problem with NAT and Bridged Networking

Posted: 18. Jun 2009, 08:28
by dburton
Hi, I was wondering if anyone could help me solve a networking problem.... After upgrading to Ubuntu 9.04 and VirtualBox 2.2.4, I am having problems with NAT and bridged networking. I have a Windows XP guest machine, and suddenly after the upgrade, it has no network connectivity on interfaces configured for NAT or bridged networking. Host-only networking still works.

I have three network interfaces configured: (1) NAT, (2) bridged networking, and (3) host-only networking. All three interfaces are able to obtain IP addresses. However, interfaces #1 and #2 don't seem to be able to do DNS lookup or ping any hosts. Interface #1 ends up with an IP address of 192.168.2.2, with a gateway of 192.168.2.1; I can't ping 192.168.2.1. Likewise, interface #2 ends up with an IP address of 192.168.3.1 and a gateway of 192.168.3.1, and I can't ping 192.168.3.1. TCP/IP connections don't seem to work either. Basically, there's no network connectivity of any sort, except that the interfaces are able to obtain IP addresses.

I have tried pretty much everything I can think of, and I am at a loss here as to how to go about troubleshooting this.

Re: Problem with NAT and Bridged Networking

Posted: 25. Jun 2009, 21:58
by sowmithry
hi

Re: Problem with NAT and Bridged Networking

Posted: 25. Jun 2009, 21:59
by sowmithry
Hi dburton,
In your post you said that previously you are able to configure the "Host-only Networking", So could you please tell me step by step how to configure that "Host-only Networking"
Currently I am using Virtualbox 2.0.4
Host OS: Ubuntu 8.10
Guest OS: Windows XP
I am try to ceate "Host-only Networking" between these two OS.
As I want to connect to oracle Db server in Ubuntu Host with oracle client in windows (for this i need a to ping from Host to guset and vice versa oracle uses TCP/IP protocol)

Re: Problem with NAT and Bridged Networking

Posted: 19. Jul 2009, 00:59
by dburton
sowmithry wrote:Hi dburton,
In your post you said that previously you are able to configure the "Host-only Networking", So could you please tell me step by step how to configure that "Host-only Networking"
To configure host-only networking, select the virtual machine, click on "Settings," click on "Network," click on the tab for the adapter you want to change, and in the "Attached to" drop-down menu, select "Host-only Adapter."

Re: Problem with NAT and Bridged Networking

Posted: 19. Jul 2009, 02:23
by dburton
I have upgraded to Ubuntu 9.04 and Virtualbox 3.0.2 and I am still having this problem. Does anyone have any suggestions?

Re: Problem with NAT and Bridged Networking

Posted: 31. Jul 2009, 21:30
by RasPharoah
Hello,
This worked for me using Ubuntu Jaunty host; Debian Lenny guest:
host :
PCnet-FAST III (Bridged adapter, eth0)
guest :
/etc/network/interfaces: permanent
# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

# The primary network interface
allow-hotplug eth1
iface eth1 inet dhcp

auto eth1

hope it works for you.

Re: Problem with NAT and Bridged Networking

Posted: 31. Jul 2009, 22:43
by Sasquatch
The problem you're having, dburton, is that there are some errors in your Guest network settings. If you use NAT, it should get an IP through DHCP and by default provide 10.0.2.15 for the NIC. If it gives you 192.168.2.2, it means the IP is set statically and won't work.

The same goes for your bridged network, check the range that is in use on your physical LAN. It won't do any good if you use the range 192.168.1.x, instead of the assigned 192.168.3.x.