配置聚合连接(网卡绑定)
team,聚合链接(也称为链路聚合)
有多块网卡(team-slave)一起组建而成的虚拟网卡,即“组队”
作用1:轮询式(roundrobin)的流量负载均衡。
作用2:热备份(activebackup)连接冗余。
热备份配置:{"runner":{"name":"activebackup"} }
man帮助辅助记忆
步骤:man teamd.conf
/example 全文查找example
按n跳转下一个匹配
一、添加team组
nmcil connection add type team con-name team0
ifname team0 config '{"runner":{"name":"activebackup"} }'
cat /etc/sysconfig/network-scripts/ifcfg-team0 查看
ifconfig team0 查看
二、添加组成员
nmcil connection add type team-slave ifname eth1
master team0
nmcil connection add type team-slave ifname eth2
master team0
三、配置team0的IP地址
nmcil connection modify team0 ipv4.method manual
ipv4.addresses 192.68.1.1/24 connection.autoconnect yes
四、激活team0
nmcil connection up team-slave-eth1 激活从设备eth1
nmcil connection up team-slave-eth2 激活从设备eth2
nmcil connection up team0 激活主设备team0
五、验证
teamdctl team0 state 专用于查看team信息
删除:
nmcil connection delete team-slave-eth1
nmcil connection delete team-slave-eth2
配置ipv6地址:
ipv6地址表示:
128个二进制位,冒号分隔的十六进制数。
每段内连接的前置0可省略,连续的多个:可简化为::
nmcil connection modify 'system eth0' ipv6.method
manual ipv6.addresses 2003:ac18::305/64
connection.autoconnect yes
nmcil connection up 'system eth0' 激活网卡
ifconfig eth0 查看
ping6 2003:ac18::305