Bonding: Difference between revisions

From DWIKI
Tony (talk | contribs)
mNo edit summary
Tony (talk | contribs)
Tag: wikieditor
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
Ethernet bonding (trunking)
Ethernet bonding (trunking), Link Aggregation (lagg)


=Links=
=Links=
*[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-using_channel_bonding RHEL doc about bonding]
*[https://wiki.linuxfoundation.org/networking/bonding bonding]
*[https://wiki.linuxfoundation.org/networking/bonding bonding]
*[https://wiki.centos.org/TipsAndTricks/BondingInterfaces Bonding interfaces]
*[https://wiki.debian.org/Bonding Bonding on Debian]
*[https://wiki.debian.org/Bonding Bonding on Debian]
*[http://linux-ip.net/html/ether-bonding.html Link Aggregation and High Availability with Bonding]
*[https://docs.bisdn.de/network_configuration/link_aggregation.html Link Aggregation]


=Debug info=
=Terms and protocols=
==LACP==
'''Link Aggregation Control Protocol'''
===Links===
*[https://netrouting.com/knowledge_base/configuring-bonding-on-ubuntu-with-netplan/ Configuring Bonding on Ubuntu with Netplan]
 
 
=Commands and tools=
==ifenslave==
 
==ip link ==
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 /proc/net/bonding/bond0  


/sys/devices/virtual/net/bond*/
cat /sys/devices/virtual/net/bond*/
 
link monitoring frequency in milliseconds
cat /sys/class/net/bond0/bonding/miimon


=FAQ=
=FAQ=
==change bonding type==
==change bonding type==
only works when the interface are down
only works when the bonding interface is down
  ip link set dev bond0 type bond mode active-backup
  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==
==bond0: link status definitely down for interface ens1f0, disabling it==
[[Category:Networking]]

Latest revision as of 13:22, 29 December 2025

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