bonding 配置案例:红色字体修改
网卡配置文件:
cd /etc/sysconfig/network-scripts/
1.接口配置文件
[root@install network-scripts]# cat ifcfg-bond0
DEVICE=bond0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=172.16.8.100
PREFIX=24
IPV6INIT=no
USERCTL=no
GATEWAY=172.16.8.1
[root@install network-scripts]# cat ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPV6INIT=no
USERCTL=no
MASTER=bond0
SLAVE=yes
[root@install network-scripts]# cat ifcfg-eth1
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPV6INIT=no
USERCTL=no
MASTER=bond0
SLAVE=yes
2.bonding 参数
[root@install ~]# vim /etc/modprobe.d/bond0.conf`
alias bond0 bonding
options bonding mode=0 miimon=100
贴到最后一行
3.重启网络服务
[root@install ~]# service network restart
[root@install ~]# ip a
ethtool bond0 查看是否(链路聚合)成功
可以适当 reboot now