PDA

View Full Version : [ubuntu] Eth0 is missing



Gideon2
September 19th, 2011, 04:04 AM
Encountered missing eth0 from my Ubuntu Server after changing hostname.

changed the following

/etc/hosts
/etc/hostname

both via sudo vim

rebooted the server -> sudo shutdown -r now

after rebooting tried to restart the network

>sudo /etc/init.d/networking restart

encountered error

"cannot read interface file"

checked the file, the owner and access are ok...

still cannot see eth0 after executing ifconfig eth0

HermanAB
September 19th, 2011, 05:06 AM
Have a look in /etc/udev/rules.d/ and fix the persistent network rules file?

viperce
September 19th, 2011, 10:21 AM
nano /etc/udev/rules.d/70-persistent-net.rules

remove interfaces reboot it should re detect the interface card as eth0

Gideon2
September 20th, 2011, 05:02 PM
nano /etc/udev/rules.d/70-persistent-net.rules

remove interfaces reboot it should re detect the interface card as eth0

Where do I remove the interfaces reboot?

Gideon2
September 20th, 2011, 05:04 PM
Have a look in /etc/udev/rules.d/ and fix the persistent network rules file?

I just did.

I tried to swap the eth0 and eth1...

but, same error when executing the command > sudo /etc/init.d/networking restart

"cannot read interface file", even though I have root account.

Azdour
September 21st, 2011, 12:21 PM
Hi,

With the error "cannot read interface file" is any part of the error that gives a line number, could it be a problem in reading the contents? Could you post the contents of /etc/network/interfaces.