linux配置自动获取ip地址 linux自动获取ip地址命令( 三 )

查看team配置
teamdctl team0 statesetup:runner: activebackupports:ens160link watches:link summary: upinstance[link_watch_0]:name: ethtoollink: updown count: 0ens256link watches:link summary: upinstance[link_watch_0]:name: ethtoollink: updown count: 0runner:active port: ens1604.6 .2手工配置lacp (此模式下上连交换机也要配置端口聚合)
nmcli connection addtype team con-name tema1 ifname team1 team.runner lacp 192.168.10.21/24 ipv4.method mannmcli con add con-name team1-port1 ifname ens160 type team-slave master team1nmcli con add con-name team1-port2 ifname ens265 type team-slave master team1nmcli con up team1-port1nmcli con up team1-port2nmcli con up team1[[email protected] ~]# teamdctl team1 statesetup:runner: lacpports:ens160link watches:link summary: upinstance[link_watch_0]:name: ethtoollink: updown count: 0runner:aggregator ID: 5, Selectedselected: yesstate: currentens265link watches:link summary: upinstance[link_watch_0]:name: ethtoollink: updown count: 0runner:aggregator ID: 5, Selectedselected: yesstate: currentrunner:active: yesfast rate: no注意: man nmcli-example 里的信息还没更新, 您也可以按linux7 的方式配置 。
man nmcli-examplesExample 8. Adding a bonding master and two slave connection profiles$ nmcli con add type bond ifname mybond0 mode active-backup$ nmcli con add type ethernet ifname eth1 master mybond0$ nmcli con add type ethernet ifname eth2 master mybond0This example demonstrates adding a bond master connection and two slaves. The first command adds a master bondconnection, naming the bonding interface mybond0 and using active-backup mode. The next two commands add slavesconnections, both enslaved to mybond0. The first slave will be bound to eth1 interface, the second to eth2.Example 9. Adding a team master and two slave connection profiles$ nmcli con add type team con-name Team1 ifname Team1 config team1-master-json.conf$ nmcli con add type ethernet con-name Team1-slave1 ifname em1 master Team1$ nmcli con add type ethernet con-name Team1-slave2 ifname em2 master Team1man teamd.conf {"device": "team0","runner": {"name": "activebackup"},"link_watch": {"name": "ethtool","delay_up": 2500,"delay_down": 1000},"ports": {"eth1": {"prio": -10,"sticky": true},"eth2": {"prio": 100}}}4.6 .3下面的语法是linux 7 的配置, linux8 也应该支持,感兴趣的小伙伴可以试试
nmcli connection addtype team con-name tema0 ifname team0 config '{"runner": {"name": "activebackup"}'nmcli con add con-name team0-port1 ifname ens160 type team-slave master team0nmcli con add con-name team0-port2 ifname ens256 type team-slave master team0nmcli con up team0nmcli con up team0-port1nmcli con up team0-port2


以上关于本文的内容,仅作参考!温馨提示:如遇健康、疾病相关的问题,请您及时就医或请专业人士给予相关指导!

「四川龙网」www.sichuanlong.com小编还为您精选了以下内容,希望对您有所帮助: