Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Had to move hard disks from one server to another. System boots fine and I can access the command line of the server from the console. However the networking seems broken. the /etc/network/interface file still has the same static IP setup as before. The link light is on on the NIC but I just cannot get it to ping out and am unable to ping the server. pinging the loopback works fine so networking is running.

Using lshw -class network I can see the device I have connected listed.

Am I missing something obvious here or am I going to have to reinstall (which does need to be done at some stage due to some other mistakes I have made oops)

share|improve this question
up vote 2 down vote accepted

The name of your network device will likely have changed. Run

/sbin/ifconfig -a

That should list all of the interfaces that have been detected. You will likely find something like eth1 in there. If you replace eth0 with eth1 in /etc/network/interfaces and then run

/sbin/ifup eth1

it should bring your network up.

An alternative is to rename your new eth1 to eth0 by editing /etc/udev/rules.d/70-persistent-net.rules and rebooting.

Note that the interface names may differ on your specific system.

share|improve this answer

Your Answer


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.