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.

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

1 Answer 1

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
1  
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

 
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.