모든 환경이 10g가 가능하도록 되어 있습니다.
이번에 스위치 구매하고 케이블을 새롭게 구매해서 10g환경을 만들었습니다.
구성은 아래와 같습니다.
1G sk --- iptime 1G 공유기 --- 10g switch --- server A
\ server B
server A는 10g로 잘 잡히는데 server B는 1g로 잡힙니다.
혹시몰라 10g switch에서 포트를 바꿔보고, 케이블도 바꿔봤는데 그래도 계속 1g로 잡히네요.
서버는 모두 우분투 환경이고 A는 22.04, B는 18.04 입니다.
B 서버가 10g가 안잡히는 이유가 뭘까요...
설명 추가
10g switch : cisco nexus C3172TQ-10GT
준바이님걸 구매했는데, 역시나 좋은 장비 전 사람이 얼마나 이것저것 세팅을 해놨는지 그냥 스위치모드로 겨는데도 시간 좀 걸렸네요. .껏다 켜면 다시 기존으로 돌아갈 테지만 ㅠㅠ
Server A : 이것 역시 준바이님께 구매한 EPYC서버고 10G nic 이 잘 장착되어 있습니다.
ethtool enp129s0f0
Settings for enp129s0f0:
Supported ports: [ TP ]
Supported link modes: 100baseT/Full
1000baseT/Full
10000baseT/Full
2500baseT/Full
5000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 100baseT/Full
1000baseT/Full
10000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 10000Mb/s
Duplex: Full
Auto-negotiation: on
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
MDI-X: Unknown
netlink error: Operation not permitted
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
Server B : 기존 서버고 메인보드에 장착된 10G nic 입니다.
Settings for eno1:
Supported ports: [ TP ]
Supported link modes: 100baseT/Full
1000baseT/Full
10000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 100baseT/Full
1000baseT/Full
10000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
서버B와 서버A를 직결한뒤, 1G로 잡히면 서버B의 NIC 문제 or OS 셋팅 문제
하지만 다은 분들도 참고 할 만해서 글은 남겨 놓겠습니다.
ethtool -s eth0 speed 1000 duplex full autoneg off
이렇게 강제설정할 수 있는 방법이 있네요. 물론 잘 동작하고 속도도 잘나오네요..
os설정으로 적용하려면
network-scripts로 영구 설정
# vim /etc/sysconfig/network-scripts/ifcfg-eth0
ETHTOOL_OPTS="speed 1000 duplex full autoneg off"
참조 문서
http://www.linuxdata.org/bbs/board.php?bo_table=qa&wr_id=116&sst=wr_datetime&sod=asc&sop=and&page=4&device=pc
이걸 알려줘야지.
그냥 쏙 가셨나 보네요.
해결됬다. ~~~
Server A NIC : Intel® X550-AT2 OCP type 10Gb/s 2-port LAN Card (이건 확실하진 않지만 유추됨)
Server B NIC : Dual LAN with Intel® X550 10GBase-T Ethernet Controller
연결된 NIC 쪽에서 강제 속도 제한 셋팅이 걸려서 그러는 경우가 대부분입니다..
문제는 그런 불편함을 풀려면 스위치 장비나 NIC 의 셋팅 방법을 정확히 그리고 다 알아야 한다는 점입니다..