Skip to content

Instantly share code, notes, and snippets.

@sulincix
Last active August 30, 2023 06:52
Show Gist options
  • Save sulincix/bf6594d953e4af4d4cefcaf6e6fd6daf to your computer and use it in GitHub Desktop.
Save sulincix/bf6594d953e4af4d4cefcaf6e6fd6daf to your computer and use it in GitHub Desktop.
bond 2 eth cards
modprobe bonding
ip link set eth0 down
ip link set eth1 down
ip link add bond0 type bond mode 802.3ad
ip link set eth0 master bond0
ip link set eth1 master bond0
ip link set bond0 up
ip addr add 42.42.42.5/24 dev bond0
ip route add default via 42.42.42.1 dev bond0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment