码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS7网卡绑定

时间:2019-03-19 23:28:28      阅读:299      评论:0      收藏:0      [点我收藏+]

标签:sla   service   bonding   net   ESS   star   efi   tps   system   

如果原先配置过单网卡,把该网卡配置文件重命名
nmcli con add type bond ifname bond0 mode 1 或者0
nmcli con add type bond-slave ifname em1 master bond0
nmcli con add type bond-slave ifname em2 master bond0

vi ifcfg-bond0
BOOTPROTO=static
IPADDR=
PREFIX=24
GATEWAY=

systemctl restart network.service

启用 bond0 :
ifenslave bond0 eth0 eth1

查看当前哪个网卡状态是active
#cat /proc/net/bonding/bond0

技术图片

切换当前使用网卡eth0
ifenslave -c eth0

CentOS7网卡绑定

标签:sla   service   bonding   net   ESS   star   efi   tps   system   

原文地址:https://blog.51cto.com/wsl12105/2365532

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!