Linux網卡team

1 啟用 team
cat <>/etc/modprobe.conf
alias bond0 bonding
EOF

2 設置 網卡eth0為team模式
cat </etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=none
DEVICE=eth0
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
EOF

3 設置 網卡eth1為team模式
cat </etc/sysconfig/network-scripts/ifcfg-eth1
BOOTPROTO=none
DEVICE=eth1
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
EOF

4 設置 team網卡及team相關參數
cat </etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
STARTMODE="onboot"
BONDING_MASTER="yes"
BONDING_MODULE_OPTS="mode=1 miimon=50"
BONDING_SLAVE0="eth0"
BONDING_SLAVE1="eth1"
IPADDR=10.204.54.50
NETMASK=255.255.254.0
GATEWAY=10.204.54.1
EOF

请使用浏览器的分享功能分享到微信等