1 啟用 team
cat <
alias bond0 bonding
EOF
2 設置 網卡eth0為team模式
cat <
BOOTPROTO=none
DEVICE=eth0
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
EOF
3 設置 網卡eth1為team模式
cat <
BOOTPROTO=none
DEVICE=eth1
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
EOF
4 設置 team網卡及team相關參數
cat <
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