반응형

# rpm -qa | grep biosdevname

biosdevname-0.3.11-1.el6.x86_64


# rpm -qi biosdevname | grep Summary

Summary     : Udev helper for naming devices per BIOS names

(BIOS에 지정되어 있는 Device의 명칭을 그대로 사용하는 패키지)


# rpm -e biosdevname


# cd /etc/udev/rules.d/

# vi 70-persistent-net.rules 

# PCI device 0x8086:0x1521 (igb) (custom name provided by external tool)

#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="bc:30:5b:f0:c5:a9", ATTR{type}=="1", KERNEL=="eth*", NAME="em2"

to

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="bc:30:5b:f0:c5:a9", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"


# PCI device 0x8086:0x1521 (igb) (custom name provided by external tool)

#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="bc:30:5b:f0:c5:a8", ATTR{type}=="1", KERNEL=="eth*", NAME="em1"

to

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="bc:30:5b:f0:c5:a8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


# PCI device 0x8086:0x1521 (igb) (custom name provided by external tool)

#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="bc:30:5b:f0:c5:aa", ATTR{type}=="1", KERNEL=="eth*", NAME="em3"

to

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="bc:30:5b:f0:c5:aa", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"


# PCI device 0x8086:0x154d (ixgbe) (custom name provided by external tool)

#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="a0:36:9f:07:8c:c8", ATTR{type}=="1", KERNEL=="eth*", NAME="p6p1"

to

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="a0:36:9f:07:8c:c8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5"


# PCI device 0x8086:0x154d (ixgbe) (custom name provided by external tool)

#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="a0:36:9f:07:8c:44", ATTR{type}=="1", KERNEL=="eth*", NAME="p4p1"

to

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="a0:36:9f:07:8c:44", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"


# PCI device 0x8086:0x1521 (igb) (custom name provided by external tool)

#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="bc:30:5b:f0:c5:ab", ATTR{type}=="1", KERNEL=="eth*", NAME="em4"

to

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="bc:30:5b:f0:c5:ab", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"


# cd /etc/sysconfig/network-scripts/

# mv ifcfg-em1 ifcfg-eth0

# mv ifcfg-em2 ifcfg-eth1

# mv ifcfg-em3 ifcfg-eth2

# mv ifcfg-em4 ifcfg-eth3

# mv ifcfg-p4p1 ifcfg-eth4

# mv ifcfg-p6p1 ifcfg-eth5


# sed -i -e s/'DEVICE=em1'/'DEVICE=eth0'/ ifcfg-eth0

# sed -i -e s/'DEVICE=em2'/'DEVICE=eth1'/ ifcfg-eth1

# sed -i -e s/'DEVICE=em3'/'DEVICE=eth2'/ ifcfg-eth2

# sed -i -e s/'DEVICE=em4'/'DEVICE=eth3'/ ifcfg-eth3

# sed -i -e s/'DEVICE=p4p1'/'DEVICE=eth4'/ ifcfg-eth4

# sed -i -e s/'DEVICE=p6p1'/'DEVICE=eth5'/ ifcfg-eth5


# sync;shutdown -r now

반응형

'Linux > CentOS' 카테고리의 다른 글

디렉토리 구조 - Filesystem Hierarchy Standard(FHS)  (0) 2012.12.27
GPT error  (0) 2012.11.23
maximum open file limit  (0) 2012.10.31
쿼터 설정  (0) 2012.10.31
CentOS 6.2에서 6.3으로 업데이트  (0) 2012.10.30
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기