네트워크 카드 Speed가 낮아 부하가 올라갈때 접속이 끊기는 현상이 발생한다.
아래의 설정으로 Speed를 늘려주자
물론, 전체적인 하드웨어가 따라주어야 한다.
[ 설정 전 ]
# ethtool eth0
Settings for eth0:
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: on
Supports Wake-on: umbg
Wake-on: g
Current message level: 0x00000007 (7)
Link detected: yes
#
[ 설정 ]
# ethtool -s eth0 speed 1000 duplex full autoneg off
[ 설정 후 ]
# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: umbg
Wake-on: g
Current message level: 0x00000007 (7)
Link detected: yes
#
[ 재부팅 시 자동 설정 ]
cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Intel Corporation 82545EM Gigabit Ethernet Controller
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:04:23:ba:42:32
ONBOOT=yes
MASTER=bond0
SLAVE=yes
ETHTOOL_OPTS="speed 1000 duplex full autoneg off"
* 부팅시 적용하기
# vi /etc/rc.d/rc.local
제일 하단에 아래내용 추가
ethtool -s eth0 speed 100 duplex full autoneg off
[출처] http://repository.egloos.com/5166190
ethtool | Duplex Setting
ethtool 명령을 이용하여 랜카드 속도 및 전송 모드 지정하는 방법입니다.
아래와 같이 현재 eth0 카드의 설정을 확인합니다.
|
위와같이 현재 스피드가 100M 이고 전송모드는 Full Duplex 임을 확인할 수 있습니다.
ethtool을 이용하면 리눅스에 장착된 NIC의 전송타입 및 속도를 설정할수 있습니다.
[localhost:/root]# ethtool -s eth0 speed 10 duplex half autoneg off
전송속도를 10M 으로 하고 전송모드는 Full Duplex 로 자동 협상기능을 off 합니다.
|
이 상태에서 ethtool -s eth0 autoneg off 명령으로 자동협상기능을 끄고 [출처] ethtool | Duplex Setting|작성자 북두왈츠
ethtool -s eth0 autoneg on 명령으로 다시 켭니다.
그리고 나서 eth0 카드를 확인해 보면 100M Full Duplex 로 바뀌어져 있습니다.
이유는 eth0 카드와 연결된 스위치의 설정이 100M Full Duplex 이기 때문입니다.
사용 방법이 비슷한 mii-tool 이란 도구도 있으니 한번 사용해 보시기 바랍니다.
댓글을 달아 주세요