Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Just installed Ubuntu Server 10.04 on VMWare ESXi 4.0.0 (201167) and changed the interfaces file.

My (modified) interfaces file looks like this:

auto lo
iface lo inet loopback

iface eth0 inet static
 address 192.168.254.159
 netmask 255.255.255.0
 network 192.168.254.0
 broadcast 192.168.254.255
 gateway 192.168.254.1

On reboot (or /etc/init.d/networking restart) ifconfig -a shows the following:

eth0      Link encap:Ethernet  HWaddr 00:0c:29:cc:0b:95
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

So eth0 won't work until I type:

ifup eth0

I've had this working in previous versions of Ubuntu without any problems, does anyone know how to get this working in 10.04?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Add auto eth0 or append eth0 to auto lo eth0 to interfaces files

share|improve this answer
    
Well, that was pretty stupid - I must have removed it. Thanks. –  Mr Shoubs Apr 26 '11 at 10:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.