centos6多网卡bonding

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ssxueyi/article/details/85261193

绑定bond步骤:

1.进入/etc/sysconfig/network-scripts/目录;

2.创建(或复制重命名)bond0配置文件:

#cp ifcfg-eth1 ifcfg-bond0

3.修改ifcfg-bond0:

#vi ifcfg-bond0

DEVICE=bond0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
BONDING_OPTS="miimon=100 mode=0"
IPADDR=192.168.1.100
NETMASK=255.255.255.0  

4.修改需要绑定的其他网卡配置文件:

#vi ifcfg-eth0

TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes 

5.重启network service:

#service network restart

至此,绑定完毕。

查看状态:

#cat /proc/net/bonding/bond0

7种bond模型:

mode=0,(balance-rr) Round-robin policy(平衡抡循环策略)

mode=1,(active-backup) Active -backup policy(主-备份策略)

mode=2,(balance-xor) XOR policy(平衡策略)

mode=3,broadcast(广播策略)

mode=4,(802.3ad) IEEE 802.3ad Dynamic link aggregation(IEEE 802.3ad 动态链接聚合)

mode=5,(balance-tlb) Adaptive transmit load balancing(适配器传输负载均衡)

mode=6,(balance-alb) Adaptive load balancing(适配器适应性负载均衡)

猜你喜欢

转载自blog.csdn.net/ssxueyi/article/details/85261193