CentOS7 网卡bond

时间:2026-02-14 09:26:54

1、编辑网卡ens37的配置文件

CentOS7 网卡bond

CentOS7 网卡bond

2、编辑网卡ens38的配置文件

CentOS7 网卡bond

CentOS7 网卡bond

3、配置虚拟网卡 bond vi /etc/sysconfig/network-scripts/ifcfg-bond0

CentOS7 网卡bond

CentOS7 网卡bond

4、重启网新搁泪络服务systemctl restart network

CentOS7 网卡bond

5、查看网络状态,看到了bond0已经生效了,并且为刚才配置的地址。网上有例艺蹲子说CentOS7需要手动加载bond模块,我这里并没有加载,应该是系统已经加载了。

CentOS7 网卡bond

6、查看bond状态 cat /proc/net/bonding/bond0

CentOS7 网卡bond

7、在客户端ping bond 地址是侧排通的

CentOS7 网卡bond

8、为了测试bond效果,将bond的网卡断掉一个,查看联通性,并不受影响

CentOS7 网卡bond

CentOS7 网卡bond

© 2026 海能知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com