-
x86 dell emc R750, 650서버 리눅스 본딩(A-S) 핑 빠짐 현상IT이야기 2022. 9. 21. 12:00
최근에 서버 구축 중 네트웍 이중화 구성 중 기이한 일을 발견하여 공유드리고자 합니다.
현상1 : 1번과 2번 슬롯의 NIC 를 본딩 구성 후 핑이 중간에 빠짐을 반복
예시) ping 172.xx.xx.xx
PING 172.xx.xx.xx (172.xx.xx.xx) 56(84) bytes of data
64 bytes from 172.xx.xx.xx: icmp_seq=1 ttl=254 time=0.368 ms
64 bytes from 172.xx.xx.xx: icmp_seq=2 ttl=254 time=0.393 ms
64 bytes from 172.xx.xx.xx: icmp_seq=3 ttl=254 time=0.262 ms
64 bytes from 172.xx.xx.xx: icmp_seq=4 ttl=254 time=0.388 ms
Request timout for icmp_seq 1
Request timout for icmp_seq 2
Request timout for icmp_seq 3
Request timout for icmp_seq 4
64 bytes from 172.xx.xx.xx: icmp_seq=9 ttl=254 time=0.026 ms
현상2 : 1번과 2번 NIC 카드를 교체한 후 본딩 구성 후에도 여전히 핑 빠지는 현상 발생
현상3 : 서버와 연결된 백본에서 서버의 MAC이 1개가 아닌, 2개로 보임
임시조치 : 1번과 2번 NIC 슬롯이 아닌 1번과 3번 혹은 2번과 4번 본딩 구성시 핑 빠짐이 일어나지 않는다
대응조치1 : 1번과 2번 NIC 슬롯이 장착된 라이저카드를 교체 후 본딩 재구성을 하니, 핑 빠짐이 일어나지 않는다
본딩 CLI 재구성 예시)
- 본딩 마스터 파일 구성 : nmcli con add type bond con-name bond0 ifname bond0 bond.options "mode-1,miimon-1000"
- 1번 NIC 포트 슬레이브 구성 : nmcli con add type bond-slave con-name bond0-eth0 ifname eth0 master bond
- 2번 NIC 포트 슬레이브 구성 : nmcli con add type bond-slave con-name bond0-eth1 ifname eth1 master bond
- 본딩 설정 : nmcli con mod bond ipv4.addresses 172.xx.xx.xx/24 ipv4.gateway 172.xx.xx.1 ipv4.method manual con.autoconnect "yes"
- 네트워크 설정 불러옴 : nmcli con reload bond
- 서버 리부팅 없이 네트워크 재시작 : nmcli networking off && nmcli networking on
대응조치2 : 본딩 파일 설정에 fail_over_mac 값을 넣어준다
- 파일경로 : /etc/sysconfig/network-scripts/ifcfg-bond
- 파일수정 : BONDING_OPTS="miimon=1000 mode=active-backup fail_over_mac=1"
- 적용 : nmcli networking off && nmcli networking on
'IT이야기' 카테고리의 다른 글
esxi 서버 보안취약점 조치 - 로그관리 (0) 2022.09.28 esxi 서버 보안 취약점 조치 - 패스워드 관리 (0) 2022.09.23 esxi 서버 보안취약점 조치 - 계정관리 (0) 2022.09.22 서버 구축시 아키텍처 이행 체크리스트 (0) 2022.09.20 IT SI프로젝트 수행시 아키텍처 설계 체크리스트 (0) 2022.09.16