linux 网卡冗余设置

原创 Aorsking     发表于  2021-11-10 08:59       2
原文链接:

1、yum erase libvirt

2、echo "alias bond0 bonding" >> /etc/modprobe.conf

3、echo "options bond0 mode=1" >> /etc/modprobe.conf

4、vi /etc/sysconfig/network-scripts/ifcfg-eth0

BOOTPROTO=none

SLAVE=yes

DEVICE=eth0

MASTER=bond0

USERCTL=no

ONBOOT=yes

5、vi /etc/sysconfig/network-scripts/ifcfg-eth1

BOOTPROTO=none

SLAVE=yes

DEVICE=eth0

MASTER=bond0

USERCTL=no

ONBOOT=yes

6、vi /etc/sysconfig/network-scripts/ifcfg-bond0

BOOTPROTO=none

DEVICE=bond0

NETMASK=$netmask

IPADDR=$ip

GATEWAY=$gateway

USERCTL=no

ONBOOT=yes

7、reboot

相关文章

公众号