特点:只有一个设备处于活动状态,当一个宕掉另一个马上由备份转换为主设备。mac地址是外部可见得,从外面看来,bond的MAC地址是唯一的,以避免switch(交换机)发生混乱。此模式只提供了容错能力;由此可见此算法的优点是可以提供高网络连接的可用性,但是它的资源利用率较低,只有一个接口处于工作状态,在有 N 个网络接口的情况下,资源利用率为1/N
root@ubuntu:~# cat /proc/net/bonding/bond6 Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: IEEE 802.3ad Dynamic link aggregation Transmit Hash Policy: layer3+4 (1) MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 802.3ad info LACP rate: fast Min links: 0 Aggregator selection policy (ad_select): stable System priority: 65535 System MAC address: c6:f0:56:6c:9a:b4 Active Aggregator Info: Aggregator ID: 1 Number of ports: 2 Actor Key: 9 Partner Key: 4 Partner Mac Address: 80:05:88:f1:9a:26 Slave Interface: enp8s0 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 4 Permanent HW addr: 00:13:92:09:05:4d Slave queue ID: 0 Aggregator ID: 1 Actor Churn State: none Partner Churn State: none Actor Churned Count: 1 Partner Churned Count: 3 details actor lacp pdu: system priority: 65535 system mac address: c6:f0:56:6c:9a:b4 port key: 9 port priority: 255 port number: 1 port state: 63 details partner lacp pdu: system priority: 4096 system mac address: 80:05:88:f1:9a:26 oper key: 4 port priority: 32768 port number: 53 port state: 63 Slave Interface: enp7s0 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 3 Permanent HW addr: 00:13:92:09:05:4c Slave queue ID: 0 Aggregator ID: 1 Actor Churn State: none Partner Churn State: none Actor Churned Count: 3 Partner Churned Count: 3 details actor lacp pdu: system priority: 65535 system mac address: c6:f0:56:6c:9a:b4 port key: 9 port priority: 255 port number: 2 port state: 63 details partner lacp pdu: system priority: 4096 system mac address: 80:05:88:f1:9a:26 oper key: 4 port priority: 32768 port number: 21 port state: 63 root@ubuntu:~#