1. /etc/modprobe.d/bonding.conf 생성 및 설정
# vi /etc/modprobe.d/bonding.conf
alias bond0 bonding
alias bond1 bonding // 두개 일 경우
2. 설정파일 수정
# vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
NAME=bond0
BOOTPROTO=none
ONBOOT=yes
IPADDR=xxx.xxx.xxx.xxx
NETMASK=255.255.255.0
GATEWAY=xxx.xxx.xxx.1
BONDING_OPTS="mode=1 miimon=100"
USERCTL=no
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
NAME=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USETCTL=no
# nmcli con reload
# nmcli con down eno1
# systemctl restart NetworkManager
3. 본딩 절체테스트
- 터미널 1번 -
# watch -n1 cat /proc/net/bonding/bond0
- 터미널 2번 -
ping GATEWAY IP
- 이후 네트워크 케이블 절체 시 ping 빠짐 현상 및 인터페이스 전환 확인 -
- ifenslave -c bond0 eth4 // 명령어를 통한 절체도 확인
ex) watch -n1 cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v2.6.3-rh (June 8, 2005)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:24:81:7f:7f:a6
Slave Interface: eth1
MII Status: down
Link Failure Count: 0
Permanent HW addr: 00:24:81:7f:82:6e
'Linux > CentOS & RHEL' 카테고리의 다른 글
[Tip] kill 명령어 예제(kill / pkill) (0) | 2023.05.22 |
---|---|
[Tip] RHEL 8.x Bridge(NetworkManager Ver.) (0) | 2023.05.22 |
[Tip] RHEL8_ nmcli command (0) | 2023.05.22 |
[Tip] tmux(RHEL 8.x) (0) | 2022.08.08 |
[Tip] screen(RHEL 7.x / CentOS 7.x) (0) | 2022.08.08 |