Page 1 of 1

Network troubles on Ubuntu Server

Posted: 18. Sep 2008, 16:31
by croceldon
VB 1.6.0
Host: Win XP
Guest OS: Ubuntu Server 8.04
Networking: Host Interface (correctly bridged and working with other ubuntu virtual machines)

Ok, I've tried to configure ubuntu to use a static ip, instead of the dhcp that the installer enabled.

I've got it setup so that everything looks good. Here's my /etc/network/interfaces file:
-------------
auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.2.15
netmask 255.255.255.0
gateway 192.168.2.1

auto eth0
-------------

Everything looks ok; restarted networking, setup dns, but can't ping anybody on the local network. Can't ping the gateway. I tried the "auto eth0" above the "iface eth0" line, but I get the same result.

I have other ubuntu (desktop) virtual machines that are able to work fine with these settings.

Any ideas on what I'm doing wrong here?

Posted: 19. Sep 2008, 21:31
by Sasquatch
Strange. I have on my Ubuntu server with HIF (without a bridge, bridge has DHCP but works just the same) set as following and I can ping my Host just fine:

Code: Select all

# Guest system
auto eth0
iface eth0 inet static
address 172.30.1.1
netmask 255.255.0.0

# Host system
auto vbox2
iface vbox2 inet static
address 172.30.1.2
netmask 255.255.0.0
I have not set a gateway or DNS, as I don't use the connection to go beyond the Host (set it for easy www and ssh connections). For my DHCP bridge, it's about the same, only set to DHCP on the Guest and attached to the bridge on the Host.