Centos6 네트워크 디바이스명 변경 eth1 -> eth0

//Centos6 네트워크 디바이스명 변경 eth1 -> eth0

Centos6 네트워크 디바이스명 변경 eth1 -> eth0

/etc/udev/rules.d/70-persistent-net.rules  파일 내용중 NAME 명을 변경한다

 

수정전

# PCI device 0x10ec:0x8168 (r8169) (custom name provided by external tool)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:25:22:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″

# PCI device 0x10ec:0x8167 (r8169)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:1b:b9:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth1″

 

수정후

# PCI device 0x10ec:0x8168 (r8169) (custom name provided by external tool)
#(주석처리)SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:25:22:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″

# PCI device 0x10ec:0x8167 (r8169)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:1b:b9:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0(번호변경)

 

 

/etc/sysconfig/network-scripts/    ifcfg-eth0 , ifcfg-eth1  변경된 내용으로 수정한다

 

reboot 후 확인

About the Author: