bonding配置案例

2019-04-23  本文已影响0人  花泽菠菜xqc

bonding配置案例:
bond在企业中属于网络优化的一部分

  1. 接口配置文件
DEVICE=bond0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=172.16.8.100
PREFIX=24
IPV6INIT=no
USERCTL=no
GATEWAY=(网关)     
DNS1=8.8.8.8      ping通www.



[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 ~]# vi /etc/modprobe.d/bond0.conf 
加入 alias  bond0 bonding
     options bonding mode=0 miimon=100

3. 重启网络服务 
[root@install ~]# systemctl restart work
[root@install ~]# ip a

[root@install ~]# cat /proc/net/bonding/bond0 
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)

如果xshell掉了  可能是networkmanager 冲突

    modprobe --first-time bonding
上一篇 下一篇

猜你喜欢

热点阅读