配置聚合链接 思路
1.创建虚拟机网卡team0 #config ‘{}‘新开终端man teamd.conf--》/example
2.为team0添加两个成员 #记住是eth1
3.为team0配置IP地址
4.激活配置
5.查看 #teamdctl team0 state
#############################################################################
聚合连接(链路聚合)
备份网卡eth1 + eth2 ----》虚拟网卡team0 192.168.1.1
nmcli connection 添加 类型 team(组)
配置文件名 team0 网卡名 team0
每次开机自动启用
工作模式为 热备份
--------------------------------------------------------------------------------
配置聚合链接
1.添加组(创建虚拟网卡team0)
config ‘{}‘ 新开终端man teamd.conf--》/example
nmcli connection add type team
con-name team0 ifname team0
autoconnect yes
config ‘{"runner": {"name": "activebackup"}}‘
ifconfig
nmcli connection delete team0 #删除team0配置
---------------------------------------------------------------------------------
2.添加成员
nmcli connection 添加 类型 team-成员
配置文件名 team0-1 网卡名 eth1 #记住是eth1 !!!!!!
主设备 为team0
nmcli connection add type team-slave
con-name team0-1 ifname eth1
master team0 #把team0-1和eth1,改为team0-2,eth2,添加成员2
nmcli connection delete team0-1 #如果设置错误,要删除对应的成员-----------------------------------------------------------------------------------3.为组team0(虚拟网卡)配置IP地址nmcli connection modify team0 ipv4.method manual ipv4.addresses 192.168.1.1/24 connection.autoconnect yes------------------------------------------------------------------------------------4.激活(先组,再成员)nmcli connection up team0 #再激活team0-1,team0-2-------------------------------------------------------------------------------------5.查看聚合连接的命令teamdctl team0 state ifconfig eth1 down