월간 인기 게시물

게시물 160건
   
ethtool -s eth1 speed 100 duplex full autoneg off
글쓴이 : 최고관리자 날짜 : 2018-11-28 (수) 09:28 조회 : 41458
글주소 :
                          

증상) eth1 장치가 잦은 Down

# ethtool eth0
Settings for eth0:
Supported ports: [ FIBRE ]
Supported link modes:   10000baseT/Full 
Supported pause frame use: No
Supports auto-negotiation: No
Advertised link modes:  10000baseT/Full 
Advertised pause frame use: No
Advertised auto-negotiation: No
Speed: 10000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: external
Auto-negotiation: off
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
       drv probe link
Link detected: yes


# ethtool eth1
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes:   10baseT/Half 10baseT/Full 
                        100baseT/Half 100baseT/Full 
                        1000baseT/Half 1000baseT/Full 
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full 
                        100baseT/Half 100baseT/Full 
                        1000baseT/Full 
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                     100baseT/Half 100baseT/Full 
                                     1000baseT/Half 1000baseT/Full 
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
       drv probe ifdown ifup
Link detected: yes


# mii-tool eth1
eth1: negotiated 1000baseT-FD flow-control, link ok


speed 1000 설정적용이 안됨 
# ethtool -s eth1 speed 1000 duplex full autoneg off
Cannot set new settings: Invalid argument
  not setting speed
  not setting duplex
  not setting autoneg


# ethtool -s eth1 speed 100 duplex full autoneg off

# dmesg -T 
......................
[수 11월 28 09:20:57 2018] r8169 0000:18:00.0 eth1: link down
[수 11월 28 09:21:00 2018] r8169 0000:18:00.0 eth1: link up
[수 11월 28 09:22:30 2018] r8169 0000:18:00.0 eth1: link up



# ethtool eth1
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes:   10baseT/Half 10baseT/Full 
                        100baseT/Half 100baseT/Full 
                        1000baseT/Half 1000baseT/Full 
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes:  Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
       drv probe ifdown ifup
Link detected: yes


※ 주의 
# ethtool -s eth0 autoneg off

스피드와 duplex를 같이 셋팅하지 않고 위와 같이 명령 내리면, 드라이버가 자동으로 다시 Auto Negotiation을 Enable 시켜 버림



NIC CONFIG 설정 
........
ETHTOOL_OPTS="speed 100 duplex full autoneg off"



ethtool 외에 modprobe 로 e1000 드라이버에 대한 옵션을 아래와 같은 형태로 설정할 수 가 있다.
modprobe e1000 [<option>=<VAL1>,<VAL2>,...]

다음은 Duplex 를 0 으로 설정한 예이다. 
# modprobe e1000 Duplex=0  (0=auto-negotiate, 1=half, 2=full)

이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.