- nmcli con show
- nmcli con add type team con-name Team1 ifname Team1 config '{"runner": {"name": "activebackup"}}'
- nmcli con mod Team1 ipv4.addresses 192.168.23.141/24
- nmcli con mod Team1 ipv4.method manual
- nmcli con add type team-slave con-name Team1-slave1 ifname eno50332208 master Team1
- nmcli con add type team-slave con-name Team1-slave2 ifname eno33554984 master Team1
- nmcli con up Team1
- nmcli con up Team1-slave1
- nmcli con up Team1-slave2
- Checking
- teamdctl Team1 state
- nmcli dev dis eno33554984
- Show available connections
NAME UUID TYPE DEVICE
virbr0 bc621dfb-648e-4f0a-871e-0d0f70c2fbe9 bridge virbr0
Wired connection 1 56c2cc26-fe98-47a8-82eb-2225adcd6cdd 802-3-ethernet --
eno16777736 423c7642-7a55-4f61-a74e-bafefe737cfa 802-3-ethernet eno16777736
Wired connection 3 1f615a9a-cb8d-4b39-9aab-63d5ee8c7020 802-3-ethernet eno50332208
Wired connection 2 d03b442f-9615-4488-98d3-5b58416076df 802-3-ethernet eno33554984
- Create a Team connection name with corresponding mode
- man nmcli-examples <-- look for the example 7
[root@server3 ~]# nmcli con add type team con-name Team1 ifname Team1 config '{"runner": {"name": "activebackup"}}'
Connection 'Team1' (5d14181d-e320-48a1-9dbb-98ff1623180d) successfully added.
- Add IP Address
[root@server3 ~]# nmcli con mod Team1 ipv4.addresses 192.168.23.141/24
- Create a Team Slave
- eno50332208 <-- 1st available connection
- from the result of nmcli con show
- Wired connection 3 1f615a9a-cb8d-4b39-9aab-63d5ee8c7020 802-3-ethernet eno50332208
- eno33554984 - 2nd available connection
- from the result of nmcli con show
- Wired connection 2 d03b442f-9615-4488-98d3-5b58416076df 802-3-ethernet eno33554984
[root@server3 ~]# nmcli con add type team-slave con-name Team1-slave1 ifname eno50332208 master Team1
Connection 'Team1-slave1' (a8bac96b-874d-434f-8753-062ba06af7a7) successfully added.
[root@server3 ~]# nmcli con add type team-slave con-name Team1-slave2 ifname eno33554984 master Team1
Connection 'Team1-slave2' (ffc1d64c-a3ed-458b-b218-00595cd723e8) successfully added.
- Start the team connection
[root@server3 ~]# nmcli con up Team1
Connection successfully activated (master waiting for slaves) (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/7)
[root@server3 ~]# nmcli con up Team1-slave1
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/14)
[root@server3 ~]# nmcli con up Team1-slave2
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/15)
- Checking
[root@server3 ~]# teamdctl Team1 state
setup:
runner: activebackup
ports:
eno33554984
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
eno50332208
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
runner:
active port: eno50332208
No comments:
Post a Comment