ablog

不器用で落着きのない技術者のメモ

bondingでActiveなインターフェースの確認方法と変更方法

確認方法

  • /proc/net/bonding/bond0
$ cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008)
 
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth0 ★ eth0 が Primary
Currently Active Slave: eth0 ★ eth0 が Active
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 5000
Down Delay (ms): 0
 
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:5d:d3:40
 
Slave Interface: eth2
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:5d:d3:54

変更方法

  • eth1 を Active にする
# ifenslave -c bond0 eth1