Last active
August 30, 2023 06:52
-
-
Save sulincix/bf6594d953e4af4d4cefcaf6e6fd6daf to your computer and use it in GitHub Desktop.
bond 2 eth cards
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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