Bonding

From DWIKI
Revision as of 13:22, 29 December 2025 by Tony (talk | contribs) (Links)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Ethernet bonding (trunking), Link Aggregation (lagg)

Links

Terms and protocols

LACP

Link Aggregation Control Protocol


Commands and tools

ifenslave

ip link set dev bond0 etc etc

ethtool

ethtool bond0

mii-tool

mii-tool SIOCGMIIPHY on eth0 failed: Operation not supported

manpage: The interface in question does not support MII queries. Most likely, it does not have MII transceivers, at all.


Debugging

cat /proc/net/bonding/bond0 
cat /sys/devices/virtual/net/bond*/

link monitoring frequency in milliseconds

cat /sys/class/net/bond0/bonding/miimon

FAQ

change bonding type

only works when the bonding interface is down

ip link set dev bond0 type bond mode active-backup

or

echo 6 > /sys/class/net/bond0/bonding/mode

or

echo balance-alb > /sys/class/net/bond0/bonding/mode

MII Status: down