2014년 3월 7일 금요일

linux 에서 추가 설치했던 lan driver 삭제

머, 정확히는 잘 모르겠지만,
기존에 쓰던 via-rhine lan card 가 장착된 pc
여기서 realtek lan card 를 하나 더 장착, 8139too 로 올라온다
근데 이넘이 드라이버는 다 올라온거 같은데, rx 쪽이 전부 error 로 떨어진다
shutdown 하고, realtek 빼고, 다른 realtek 장착

lsmod | grep 8139 하니, 8139too, 8139cp 요렇게 2개 보인다

ifconfig 하면 기존 via card 만 보인다

그래서 기존 꺼 삭제 rmmod -f 8139too

[root@localhost network-scripts]# lspci | grep -i Ethernet
00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78)

이제 2개가 보이는데, ifconfig 하면 eth1은 없고, eth2 가 생겼다

vi /etc/udev/rules.d/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 0x1106:0x3065 (via-rhine)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:16:ec:05:b9:fe", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:c0:26:73:a4:03", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ee:b1:02:bf:3b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

rm /etc/udev/rules.d/70-persistent-net.rules

reboot 후 다시 정리되서 eth0, eth1 이 보이고, 설정데로 ping 도 응답하기 시작 했다

아래의 부팅 후 dmesg

[root@localhost ~]# dmesg | grep eth
eth0: RealTek RTL8139 at 0xf820c000, 00:ee:b1:02:bf:3b, IRQ 16
udev: renamed network interface eth0 to eth1
eth0: VIA Rhine II at 0xf6011000, 00:16:ec:05:b9:fe, IRQ 23.
eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 45e1.
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
eth0: no IPv6 routers present
eth1: no IPv6 routers present




댓글 없음: