centos7的双网卡绑定

2022-01-12  本文已影响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
上一篇 下一篇

猜你喜欢

热点阅读