bonding配置案例

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
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容