Hello,
I have a CentOS 6 VM on a CentOS 6 host. This VM has two ethernet
interfaces, eth0 and eth1. It was working nice. All of a sudden eth1
stopped working as expected. Kernel started to give the message below:
kernel: udev: renamed network interface eth2 to eth2-eth1
There is no any eth2 or eth2-eth1 in /etc/sysconfig/network-scripts/. I
really don't know where it is coming from.
config -a:
eth0 Link encap:Ethernet HWaddr 52:54:00:E0:5A:C5
inet addr:10.0.0.32 Bcast:10.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8293 errors:0 dropped:0 overruns:0 frame:0
TX packets:6440 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:831687 (812.1 KiB) TX bytes:6358220 (6.0 MiB)
eth1 Link encap:Ethernet HWaddr 52:54:00:B5:B6:D1
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:934 (934.0 b) TX bytes:462 (462.0 b)
eth2-eth1 Link encap:Ethernet HWaddr 52:54:00:B5:B6:D1
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:37 errors:0 dropped:0 overruns:0 frame:0
TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3642 (3.5 KiB) TX bytes:3642 (3.5 KiB)
And below is /etc/udev/rules.d/70-persistent-net.rules:
# net device () (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="52:54:00:e0:5a:c5", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth0"
# net device ()
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="52:54:00:b5:b6:d1", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth1"
Here is the relevant excerpt from the xml on the host:
<interface type='bridge'>
<mac address='52:54:00:e0:5a:c5'/>
<source bridge='br0'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:b5:b6:d1'/>
<source bridge='br1'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</interface>
I really don't understand what is really going on. I would appreciate
any help hint.
All the best.