[root@localhost network-scripts]# cat ifcfg-ens33
IPV6_ADDR_GEN_MODE=stable-privacy
UUID=d4b12e80-6ec8-457d-ba76-dc31954e3f82
[root@localhost network-scripts]# cat ifcfg-ens36
IPV6_ADDR_GEN_MODE=stable-privacy
UUID=19913d53-329d-341b-b096-e8258444e990
用ip a 查看是否配置成功,配置成功后,配置bond文件,如果没有,则创建
[root@localhost network-scripts]# cat ifcfg-bond0
BONDING_OPTS="mode=1 miimon=100"
IPV6_ADDR_GEN_MODE=stable-privacy
UUID=d4b12e80-6ec8-457d-ba76-dc31954e3f82
IPV6_ADDR_GEN_MODE=stable-privacy
UUID=19913d53-329d-341b-b096-e8258444e990
主要区别在于bond的配置文件中:(区别于fail_over_mac=1)
[root@localhost network-scripts]# cat ifcfg-bond0
BONDING_OPTS="mode=1 miimon=100 fail_over_mac=1"
绑定ens33和ens36,绑定的网卡叫做team-eth0
nmcli connection add type team con-name team0 ifname team-eth0 config '{"runner":{"name":"activebackup"}}'
[root@localhost ~]# nmcli connect modify team0 ipv4.addresses "192.168.76.8/24"
[root@localhost ~]# nmcli connect modify team0 ipv4.gateway "192.168.76.2"
[root@localhost ~]# nmcli connect modify team0 ipv4.dns "8.8.8.8"
[root@localhost ~]# nmcli connect modify team0 ipv4.method manual
[root@localhost ~]# nmcli connection add type team-slave con-name team0-port1 ifname ens33 master team0
连接 "team0-port1" (50dd2ff5-f1db-47e5-b34a-2a9d5b2cbeb9) 已成功添加。
[root@localhost ~]# nmcli connection add type team-slave con-name team0-port2 ifname ens36 master team0
连接 "team0-port2" (99cfcc2c-6d21-4078-ad84-db6dc71d4993) 已成功添加。
[root@localhost ~]# nmcli con up team0-port1
连接已成功激活(D-Bus 活动路径:/org/freedesktop/NetworkManager/ActiveConnection/7)
[root@localhost ~]# nmcli con up team0-port2
连接已成功激活(D-Bus 活动路径:/org/freedesktop/NetworkManager/ActiveConnection/8)
[root@localhost ~]# nmcli con up team0
连接已成功激活(master waiting for slaves)(D-Bus 活动路径:/org/freedesktop/NetworkManager/ActiveConnection/6)
标签:负载,8.8,team0,yesIPV6,192.168,centos7,root,localhost,bond From: https://www.cnblogs.com/waacode/p/17539418.html