RHCAS配置链路聚合
168 nmcli connection add con-name team0 type team ifname team0 config '{"runner": {"name": "activebackup"}}' //创建新的聚合连接虚拟网卡
man帮助输入 man teamd.conf搜索EXAMPLES 大约在300行 找到"runner": {"name": "activebackup"} 写在最后的 config'{ }'里面
169 nmcli connection add con-name team0-1 type team-slave ifname eth1 master team0
170 nmcli connection add con-name team0-2 type team-slave ifname eth2 master team0
// 给新的聚合连接网卡加入两张真网卡,组建聚合连接
171 nmcli connection modify team0 ipv4.method manual ipv4.addresses "172.16.3.20/24" connection.autoconnect yes
//为聚合连接网卡配置IP地址
172 nmcli connection modify team0-1 connection.autoconnect yes
173 nmcli connection modify team0-2 connection.autoconnect yes
//允许成员连接自动启用
174 nmcli connection up team0
//激活聚合连接
175 teamdctl team0 state
//确认连接状态
发表评论