Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I added a NIC to a vm in kvm, but I tried "uping" eth0 to 3 but every time I get an error :

ERROR while getting interfaces flag : no such device

Where can I see the correct eth number / connected NIC's?

share|improve this question
up vote 2 down vote accepted

Probably in the log. Do an grep -F eth /var/log/syslog and see the lines with eth.

Other possibility is to view /proc/self/net/dev which should contain all available devices in the first column.

share|improve this answer
thanks! any chance you also know how if there is a way to change the number of the NIC from eth5 to eth0 ? – Lucas Kauffman Aug 7 '11 at 22:56
Sure I know. But I can't get reputation for it :-). Look here /etc/udev/rules.d/z25_persistent-net.rules – mailq Aug 7 '11 at 23:03

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.