0

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?

Lucas Kauffman
  • 16,880
  • 9
  • 58
  • 93

1 Answers1

2

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.

mailq
  • 17,023
  • 2
  • 37
  • 69
  • 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 07 '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 07 '11 at 23:03