centos7的双网卡绑定
作者:
平凡的运维之路 | 来源:发表于
2022-01-12 11:16 被阅读0次centos7的双网卡绑定
systemcstl stop NetworkManager
systemctl disable NetworkManager
vim ifcfg-bond0
DEVICE=bond0
TYPE=bond
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.100.0.30
NETMASK=255.255.255.0
GATEWAY=10.100.0.254
BONDING_OPTS="mode=1 miion=100"
BONDING_MASTER=yes
vim ifcfg-em1
TYPE=Ethernet
BOOTPROTO=none
DEVICE=em1
MASTER=bond0
SLAVE=yes
ONBOOT=yes
vim ifcfg-em2
TYPE=Ethernet
BOOTPROTO=none
DEVICE=em2
MASTER=bond0
SLAVE=yes
ONBOOT=yes
systemctl restart network
ifconfig
本文标题:centos7的双网卡绑定
本文链接:https://www.haomeiwen.com/subject/kofwcrtx.html
网友评论