티스토리 뷰

Redhat Lunix

70-persistent-net.rules ....

ranger022 2018. 8. 10. 16:47

가끔 리눅스 서버의 장애로

 

네트워크 카드를 교체 하거나 위치가 바뀌어 기존 eth0 이 3으로 eth1 이 2로 바뀌어 서비스가 안올라 오는 문제가 종종 생겼다.

 

 

원인은 etc/udev/70-persistent-net.rules 파일에 저장된 nic 의 이름과 Macaddress 가 서로 엉켜서 생기는 문제인데

 

이 파일을 수정하여 해결이 가능하다 ..

 

 

가끔 이런 메시지의 에러다 ㅋ

 

root> service network restart

 

라고 치면

디바이스가 없다고 뜨지 안나?

 

 

root> vi /etc/udev/70-persistent-net.rules

 

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# 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 xxxxxxxxxxxxxx (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="55:66:35:76:28:93", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

 

# PCI device xxxxxxxxxxxxxx (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="99:66:55:44:55:66", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

 

# PCI device xxxxxxxxxxxxxx (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:22:33:66:77", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2


 

 

 

그전에 확인 할게

 

 ###>dmesg | grep -i eth

 

# lspci (-v)

 

# lsmod

 

해당 명령어로 확인 합시다.


공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함