본문으로 바로가기

[RHEL7] Bonding 수동으로 절체 방법

category Linux/RHEL7 & 8 2021. 7. 1. 14:15
반응형

Bonding 인터페이스를 수동으로 절체하는 방법.

 

1. Bonding 상태 및 Master 인 인터페이스 확인

Currently Active Slave: ens1f1 인터페이스가 Master인 것을 확인할 수 있다.

[root@test ~]# cat /proc/net/bonding/bond2
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: ens1f1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: ens1f1
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: d4:f5:ef:30:ed:28
Slave queue ID: 0

Slave Interface: ens4f1
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: d4:f5:ef:30:ca:e8
Slave queue ID: 0

 

2. 수동으로 ens4f1로 절체

ifenslave -c bond2 ens4f1

 

3. ens4f1가 master 되었는지 확인

Currently Active Slave: ens4f1

[root@test ~]# cat /proc/net/bonding/bond2
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: ens4f1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

 

728x90