双网卡: eth0, eth1
VLan: vlan316
bond: 绑定网卡eth0和eth1为bond1
常用的有三种
mode=0:平衡负载模式,有自动备援,但需要”Switch”支持。
mode=1:自动备援模式,其中一条线若断线,其他线路将会自动备援。
mode=6:平衡负载模式,有自动备援。
一、安装Vlan相关的包
# apt-get install vlan ifenslave
二、加载模块
# modprobe 8021q
# echo "8021q" >> /etc/modules
# echo "bonding" >>/etc/modules
三、 配置bond
# vim /etc/network/interfaces 添加以下内容: