龙空技术网

详解centos7下双网卡绑定

波波聊运维 296

前言:

现时咱们对“centos网络bond类型”大体比较着重,你们都需要分析一些“centos网络bond类型”的相关内容。那么小编也在网上搜集了一些有关“centos网络bond类型””的相关资讯,希望我们能喜欢,大家快快来学习一下吧!

一、进入网卡配置目录

cd /etc/sysconfig/network-scripts

二、备份原有网卡

mv ifcfg-em* /tmp/

三、配置双网卡

nmcli con add type bond ifname bond0 mode active-backup

nmcli con add type bond-slave ifname ens33 master bond0 (ens33是网卡的名字,写的时候确认一下是否叫这个名字)

nmcli con add type bond-slave ifname ens37 master bond0 (要绑定的第二个网卡)

四、配置bond0 IP

vim ifcfg-bond-bond0

五、重启网卡

/etc/init.d/network restart

六、测试网卡是否正常

watch -n 1 ifconfig bond0

watch -n 1 ifconfig ens33

watch -n 1 ifconfig ens37

如若网卡能够正常接收流量,则双网卡配置成功

后面小编会分享更多运维方面的干货,感兴趣的碰头走一波关注哩~

标签: #centos网络bond类型