CentOS7 网卡bond

2025-05-15 12:38:16

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
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢