Page 1 of 1

[Solved] guest OS network issue

Posted: 21. Sep 2009, 13:42
by VampireFE
Hello,

I have windows XP host with Ubuntu guest OS installed on VBox.

XP has these network settings:

Code: Select all

IP Address. . . . . . . . . . . . : 192.168.1.78
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 10.0.2.13
Subnet Mask . . . . . . . . . . . : 255.255.255.0
And some other IP addresses added.

I have a device with IP address 10.0.2.1 on the local net that I have to access from Ubuntu.
I can't use NAT option for its network, since the subnet I'm using matches VBox default NAT subnet so I tried bridge setup. I can access 10.0.2.13, 192.168.1.78 and I have internet access as well. However ping to 10.0.2.1 timeouts. I googled all over to find a way to get it working. I tried with DHCP, static IPs, also tried to set up routes through host OS, but I suppose it's not meant to work like that.

Atm it's set to this (DHCP):

Code: Select all

eth1      Link encap:Ethernet  HWaddr 08:00:27:16:f1:08  
          inet addr:192.168.1.127  Bcast:192.168.1.255  Mask:255.255.255.0
I can also ping it from my host.

Can you guys point me to the right direction how to get it working?

Re: guest OS network issue

Posted: 21. Sep 2009, 14:13
by Sasquatch
If you bridged the network as you state, then you still need both IP addresses on the Guest, not just the Host. By default, Network Manager takes care of the network configuration, but it lacks some functionality like double IP's on one interface. Instead, remove the program and enter the configuration manually through /etc/network/interfaces. I'm assuming here that your 192.168 network has DHCP, and the 10.0.2 network has static only. With that, your interfaces file will look like this:

Code: Select all

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

iface eth0:0 inet static
  address 10.0.2.14
  netmask 255.255.255.0
Enter a gateway for the 10.0.2 range if it's needed.

Re: guest OS network issue

Posted: 21. Sep 2009, 14:47
by VampireFE
Oh, thank you :) It's working now.

I had been trying to add 2nd IP address before, however not through /etc/network/interfaces, but using Preferences->Network Connections.

Once again - thanks.