双网卡bond模式

]# nmcli connection add type bond ifname bond0 mode 0

]# nmcli connection add type bond-slave ifname ens33 master bond0

]# nmcli connection add type bond-slave ifname ens38 master bond0

 

]# vim /etc/sysconfig/network-scripts/ifcfg-bond-bond0

BONDING_OPTS=mode=balance-rr

TYPE=Bond

BONDING_MASTER=yes

PROXY_METHOD=none

BROWSER_ONLY=no

BOOTPROTO=none    #dhcp关掉

DEFROUTE=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=yes

IPV6_AUTOCONF=yes

IPV6_DEFROUTE=yes

IPV6_FAILURE_FATAL=no

IPV6_ADDR_GEN_MODE=stable-privacy

NAME=bond-bond0

UUID=d064e805-c724-4436-be84-591612c921b5

DEVICE=bond0

ONBOOT=yes

IPADDR="192.168.100.205"

ENTMASK="24"

GATEWAY="192.168.100.2"

DNS1="192.168.100.2"

 

]# systemctl restart network

]# ip a

 

posted @ 2023-06-16 15:52  虞岩  阅读(33)  评论(0编辑  收藏  举报