Skip to content

Networking

Jay Ovalle edited this page Dec 25, 2020 · 3 revisions

Networking

Bonding

Found the gigabit PCI NIC I bought a while back to play with ESXi (long story short: Realtek is a real pain). Slapped it onto Cerberus to double the bandwidth. Luckily 802.3ad support all around for proper link aggregation!

auto lo
iface lo inet loopback

iface enp5s0 inet manual
iface enp7s0 inet manual

auto bond0
iface bond0 inet manual
        bond-slaves enp5s0 enp7s0
        bond-miimon 100
        bond-mode 802.3ad
        bond-xmit-hash-policy layer2+3

auto vmbr0
iface vmbr0 inet static
        address 192.168.0.3/24
        gateway 192.168.0.1
        bridge_ports bond0
        bridge_stp off
        bridge_fd 0

Non-bridged

auto enp0s31f6
iface enp0s31f6 inet manual
  bond-master bond0

auto enp4s0
iface enp4s0 inet manual
  bond-master bond0

auto bond0
iface bond0 inet static
  address                192.168.0.3/24
  gateway                192.168.0.1
  bond-mode              802.3ad
  bond-miimon            100
  bond-slaves            none
  bond-lacp-rate         1
  bond-updelay           800
  bond-downdelay         400
  bond_xmit_hash_policy layer2+3

Clone this wiki locally