Skip to main content

r8169 랜카드 설정 on Linux

랜카드 설정 때문에 참 애 먹었다.
답은 mii-tool를 이용해서 강제로 랜카드의 연결속도와 duplex를 설정한다.

mii-tool -F 100baseTx-FD eth0


ethtool eth1


Settings for eth1:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
        Link detected: yes
여기서, Link detected가 no로 되어 있었다.

먼저, r8169를 설치하고, linux기동하면
lsmod | grep r8169시
r8169랑
mii가 표시된다.

이 것을 다 지우고 (안 지워고 mii-tool로도 가능할 수 도 있음),
r8169드라이버를 다운 받아
make clean modules
make install
depmod -a (모듈의존성을 검사 한 뒤 module.dep갱신, kernald, modprobe실행 전에 꼭 실행)
modprobe r8169로 모듈적제


Comments