Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


archlinux_bonding

This is an old revision of the document!


Archlinux - LACP 802.3AD Bonding / VLANs

~~TOC~~

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=50
    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.1417430408.txt.gz · Last modified: 2014/12/01 10:40 by admin