Skip to content

Instantly share code, notes, and snippets.

@JosiahKerley
Created August 12, 2023 19:56
Show Gist options
  • Save JosiahKerley/f50fb674c47422643d7cc88da15a2678 to your computer and use it in GitHub Desktop.
Save JosiahKerley/f50fb674c47422643d7cc88da15a2678 to your computer and use it in GitHub Desktop.
QAD DHCP Bond-on-a-Bridge
nmcli --terse con show | cut -d':' -f2 | xargs -I {} nmcli con delete {}
nmcli con add type bridge con-name bridge0 ifname bridge0
nmcli con add type bond con-name bond0 ifname bond0 bond.options "downdelay=100,miimon=100,mode=active-backup,updelay=100" master bridge0
nmcli device status | awk '/ethernet/{print $1}' | xargs -I {} nmcli con add type ethernet con-name {} ifname {} master bond0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment