Teaming
Getting ready
$ vagrant up
$ vagrant ssh
How to do it
From the man pages teamd, it team network device control daemon. check the device
$ ifconfig
create teaming
$ sudo nmcli connection add type team con-name Team0 ifname Team0 config '{"runner": {"name": "activebackup"}}'
Connection 'Team0' (3da1c437-21d4-468d-b50e-493a14e135f8) successfully added.
$ sudo nmcli connection modify Team0 ipv4.addresses "192.168.12.124/24" ipv4.method manual
$ sudo nmcli connection add type team-slave con-name Team0-port1 ifname enp0s8 master Team0
Connection 'Team0-port1' (86e5f346-3156-45d5-82ff-224ecfc6c969) successfully added.
$ sudo nmcli connection add type team-slave con-name Team0-port2 ifname enp0s9 master Team0
Connection 'Team0-port2' (0157eef4-6f75-4790-93ea-a50001323e0f) successfully added.
$ sudo teamdctl Team0 state
setup:
runner: activebackup
runner:
active port:
$ sudo nmcli connection up Team0
Connection successfully activated (master waiting for slaves) (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/4)
$ sudo nmcli connection up Team0-port1
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5)
$ sudo nmcli connection up Team0-port2
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)
$ sudo teamdctl Team0 state
setup:
runner: activebackup
ports:
enp0s8
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
enp0s9
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
runner:
active port: enp0s8
$ ping -c3 192.168.12.124
PING 192.168.12.124 (192.168.12.124) 56(84) bytes of data.
64 bytes from 192.168.12.124: icmp_seq=1 ttl=64 time=0.059 ms
64 bytes from 192.168.12.124: icmp_seq=2 ttl=64 time=0.062 ms
64 bytes from 192.168.12.124: icmp_seq=3 ttl=64 time=0.062 ms
--- 192.168.12.124 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.059/0.061/0.062/0.001 ms
check the team device
$ sudo teamnl Team0 ports
4: enp0s9: up 1000Mbit FD
3: enp0s8: up 1000Mbit FD
$ sudo teamnl Team0 options
queue_id (port:enp0s9) 0
priority (port:enp0s9) 0
user_linkup_enabled (port:enp0s9) false
user_linkup (port:enp0s9) true
enabled (port:enp0s9) false
queue_id (port:enp0s8) 0
priority (port:enp0s8) 0
user_linkup_enabled (port:enp0s8) false
user_linkup (port:enp0s8) true
enabled (port:enp0s8) true
activeport 3
mcast_rejoin_interval 0
mcast_rejoin_count 1
notify_peers_interval 0
notify_peers_count 1
mode activebackup