nmcli网络配置链路聚合命令详解

链路聚合

输入 #所有的帮助信息中查找example

$ man teamd.conf      #man  teamd.conf ,搜索 /example找出需要的聚合模式
$ nmcli connection add type team autoconnect yes  ifname team0 con-name team0 config '{"runner": {"name": "activebackup"}}'   

$ nmcli connection add type team-slave ifname eth1 con-name team0-1 autoconnect yes master team0 

$ nmcli connection add type team-slave ifname eth2 con-name team0-2 autoconnect yes master team0 

$ nmcli connection modify team0 ipv4.method manual ipv4.addresses 192.168.1.1/24 connection.autoconnect yes 

$ nmcli connection up team0

$ nmcli connection up team0-1

$ nmcli connection up team0-2

$ ifconfig team0     

$ nmcli connection delete team0 

$ nmcli connection delete team0-1

$ nmcli connection delete team0-2

配置IPv6

$ nmcli connection modify 'System eth0' ipv6.method manual ipv6.addresses 2003:ac18::305/64 connection.autoconnect  yes

$ nmcli connection up 'System eth0'

参考链接:
https://www.cnblogs.com/liuhedong/p/10695969.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ghostwritten

口渴,请赏一杯下午茶吧

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值