Skip to content

Instantly share code, notes, and snippets.

@dubcl
Created February 20, 2020 19:53
Show Gist options
  • Save dubcl/dafb2fcd67f13328849ab7549ce10ee7 to your computer and use it in GitHub Desktop.
Save dubcl/dafb2fcd67f13328849ab7549ce10ee7 to your computer and use it in GitHub Desktop.
bridge and bonding examples

bridge

auto br1
iface br1 inet manual
   bridge_ports eth1
   bridge_stp on
   bridge_fd 0.0

brigde through bonding

auto br1
iface br1 inet manual
   bridge_ports bond0
   bridge_stp off
   bridge_fd 0.0
   pre-up ifup bond0
   post-down ifdown bond0
iface bond0 inet manual
   bond_slaves eth1 eth2
   bond_primary eth1
   bond_mode balance-tlb
   bond_miimon 100
   bond_downdelay 400
   bond_updelay 800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment