Ethernet Card 교체후 OS 부팅시 기존 /etc/sysconfig/network-scripts 이하에 ifcfg 상 정의 되어있는 HWADDR 가 있을 경우 아래와 같이 ifconfig 시 Device name 이 상이하게 표기 될 경우가 있다.
[root@Server02 network-scripts]# ifconfig -a | more __tmp134357958 Link encap:Ethernet HWaddr 80:C1:6E:AA:13:80 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) Interrupt:237
__tmp629907896 Link encap:Ethernet HWaddr 80:C1:6E:AA:13:84 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) Interrupt:78 |
해당 사항에 대한 조치는 아래와 같이 ifcfg 상 HWADDR 를 수정후 ip link set 명령을 통해 device name 을 맵핑한다.
[root@Server02 network-scripts]# [root@Server02 network-scripts]# vi ifcfg-eth0 # NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter DEVICE=eth0 BOOTPROTO=none ONBOOT=yes #HWADDR=80:C1:6E:A9:90:C8 HWADDR=80:C1:6E:AA:13:80 [root@Server02 network-scripts]# [root@Server02 network-scripts]# vi ifcfg-eth1 # NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter DEVICE=eth1 BOOTPROTO=none ONBOOT=yes MASTER=bond0 SLAVE=yes #HWADDR=80:C1:6E:A9:90:CC HWADDR=80:C1:6E:AA:13:84 [root@Server02 network-scripts]#
[root@Server02 network-scripts]# [root@Server02 network-scripts]# ip link set __tmp134357958 name eth0 [root@Server02 network-scripts]# [root@Server02 network-scripts]# ip link set __tmp629907896 name eth1 [root@Server02 network-scripts]# [root@Server02 network-scripts]# service network restart [root@Server02 network-scripts]#
[root@Server02 network-scripts]#
[root@Server02 network-scripts]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 80:C1:6E:AA:13:80 UP 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) Interrupt:237
[root@Server02 network-scripts]# ifconfig eth1 eth1 Link encap:Ethernet HWaddr 80:C1:6E:AA:13:84 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:6464 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:391872 (382.6 KiB) TX bytes:0 (0.0 b) Interrupt:78
[root@Server02 network-scripts]# |