cloning한 ubuntu 리눅스의 eth2를 eth0으로 바꾸기

dd로 클론을 만든 우분투리눅스의 네트워크 인터페이스가 eth0, eth1 대신 eth2,eth3 으로 바뀌었다.

/etc/udev/rules.d/70-persistent-net.rules 화일을 확인해 보니,  아래와 같은 내용이 있었다.

# cat /etc/udev/rules.d/70-persistent-net.rules

#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:04.0/0000:07:00.0/0000:08:04.1 (tg3)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0a:e4:83:79:d7″, ATTR{dev_id}==”0x0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth1″

# PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:04.0/0000:07:00.0/0000:08:04.0 (tg3)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0a:e4:83:79:d6″, ATTR{dev_id}==”0x0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″

# PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:04.0/0000:07:00.0/0000:08:04.1 (tg3)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0a:e4:82:ee:45″, ATTR{dev_id}==”0x0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth2″

# PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:04.0/0000:07:00.0/0000:08:04.0 (tg3)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0a:e4:82:ee:44″, ATTR{dev_id}==”0x0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth3″

그래서 위의 내용을 몽땅 지워버리고 재부팅 했더니 정상적으로 잡혔다. 아마도, 필요한 부분만 수정하고, udev를 재실행 하면 해결될것도 같다.

 

 

답글 남기기

Your email address will not be published.