statistics on interfcae bond0 linux





ip -s -s link show dev bond0
repeat commandwatch

watch -n 1 ip -s -s link show dev bond0


netplan

netplan config
more /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
  ethernets:
    eno1:
      dhcp4: false
      dhcp6: false
    eno2:
      dhcp4: false
      dhcp6: false
 . . . 
  bonds:
    bond0:
      addresses:
        - 10.0.0.1/24
      interfaces:
        - eno1
        - eno2
      parameters:
        mode: 802.3ad
        lacp-rate: slow
        transmit-hash-policy: layer3+4
        mii-monitor-interval: 1
  version: 2


lacp-rate: slow:
  • This setting sends LACPDUs every 30 seconds.

lacp-rate: fast:

  • This setting sends LACPDUs every 1 second.