[CentOS] Odd ethernet interface

Mufit Eribol hme at onart.com.tr
Sat Nov 5 06:15:12 UTC 2011


On 05.11.2011 02:32, Ljubomir Ljubojevic wrote:
> Vreme: 11/05/2011 01:10 AM, Mufit Eribol piše:
>> 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.
> Your eth1 is being automaticaly renamed to eth2-eth1 for some reason.
> Have you changed anything in config(s) connected to eth1?
>
> Are name and device name in ifcfg-ethX consistent? Have you reshufled
> your configs and left loose end somewhere?
>
> Do you maybe have NetworkManager still active?
>
>
Thank you for the responses.

There is no NetworkManager installed.

Perhaps I should give some more info. It is a two-gateway machine. I 
have following lines in my rc.local:

# routing and default gateway for each interface
ip route add 10.0.0.0/24 dev eth0 src 10.0.0.32 table T1
ip route add default via 10.0.0.11 table T1
ip route add 192.168.2.0/24 dev eth1 src 192.168.2.2 table T2
ip route add default via 192.168.2.1 table T2
# regular routes
ip route add 10.0.0.0/24 dev eth0 src 10.0.0.32
ip route add 192.168.2.0/24 dev eth1 src 192.168.2.2
# default gateway
ip route add default via 10.0.0.11
# rules
ip rule add from 10.0.0.32 table T1
ip rule add from 192.168.2.2 table T2

But again, the system was working before fine. The problematic interface 
is 192.168.2.2 (eth1).

In network-scripts directory, I have 2 eth configuration files, nothing 
else (apart from lo of course).

eth0:
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=52:54:00:E0:5A:C5
TYPE=Ethernet
BOOTPROTO=none
IPADDR=10.0.0.32
PREFIX=24
DNS1=127.0.0.1
#DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
PEERDNS=no

eth1:
DEVICE="eth1"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=52:54:00:B5:B6:D1
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.2.2
PREFIX=24
DNS1=127.0.0.1
#DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth1"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
PEERDNS=no

network:
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=www.onart.com.tr
GATEWAY=10.0.0.11

Thank you for your support.



More information about the CentOS mailing list