配置链路聚合

模拟环境
在 server0.example.com主机上按以下要求配置一个链路 team0:
 此链路使用接口 eth1 和 eth2
 此链路在一个接口失效时仍然能工作
 此链路在 server0 使用下面的地址 172.16.3.20/255.255.255.0
 此链路在系统重启之后依然保持正常状态

步骤:
1.[root@server0 ~]#nmcli connection show
#获知链接名称
[root@server0 ~]# nmcli connection add type team con-name team0 ifname team0 config ‘{“runner”:{“name”:“activebackup”} }’
#建立新的聚合链接
以上格式可以 man teamd.conf ----> 在末行模式下 /runner 以及 man nmcli-examples ----> 在末行模式下 /team1 即可查看复制
[root@server0 ~]# nmcli connection add type team-slave con-name team0-1 eth1 master team0 ifname
#指定成员网卡 1
[root@server0 ~]# nmcli connection add type team-slave con-name team0-2 ifname eth2 master team0
#指定成员网卡 2
[root@server0 ~]# nmcli connection modify team0 ipv4.addresses “172.16.3.20/24” connection.autoconnect yes ipv4.method manual
#为聚合链路配置 IP 地址
[root@server0 ~]# nmcli connection up team0 #激活聚合链接
[root@server0 ~]# nmcli connection up team0-1 #激活成员链接 1(备用)
[root@server0 ~]# nmcli connection up team0-2 #激活成员链接 2(备用)
[root@server0 ~]# teamdctl team0 state

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值