Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


archlinux_bonding

Archlinux - LACP 802.3AD Bonding / VLANs

Configure bonding with netctl

  • Make sure you can access the server over serial.
  • Configure LACP on your switch.
  • Edit /etc/modprobe.d/bonding.conf:
    options bonding mode=802.3ad miimon=100
  • Create /etc/netctl/bonding:
    Description='Bond Interface'
    Interface='bond0'
    Connection=bond
    BindsToInterfaces=('eno1' 'enp4s0' 'enp2s0f0' 'enp2s0f1')
    IP=no
  • Enable the new profile, for example:
    netctl enable bonding
  • Test bonding mode:
    less /proc/net/bonding/bond0

Add VLANs

  • Create /etc/netctl/vlan10, for example:
    Description='VLAN 10'
    Interface=bond0.10
    Connection=vlan
    BindsToInterfaces=bond0
    VLANID=10
    IP=static
    Address="192.168.0.100/24"
    Gateway="192.168.0.1"
    DNS=("192.168.0.2")
    Hostname="myhost"
    DNSDomain="mydomain.com"
    DNSSearch="mydomain.com"
archlinux_bonding.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1