10.7.5 Displaying Information About Teams

To display the network state of the teamed interface, use the ip command:

# ip addr show dev team0
7: team0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP 
    link/ether 08:00:27:15:7a:f1 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.5/24 scope global team0
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe15:7af1/64 scope link 
       valid_lft forever preferred_lft forever

You can use the teamnl command to display information about the component ports of the team:

# teamnl team0 ports
 5: em4: up 1000Mbit FD 
 4: em3: up 1000Mbit FD 

To display the current state of the team, use the teamdctl command, for example:

# teamdctl team0 state
setup:
  runner: activebackup
ports:
  em3
    link watches:
      link summary: down
      instance[link_watch_0]:
        name: ethtool
        link: down
  em4
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
runner:
  active port: em4

You can also use teamdctl to display the JSON configuration of the team and each of its constituent ports:

# teamdctl team0 config dump
{
    "device": "team0",
    "link_watch": {
        "name": "ethtool"
    },
    "mcast_rejoin": {
        "count": 1
    },
    "notify_peers": {
        "count": 1
    },
    "ports": {
        "em3": {
            "prio": -10,
            "sticky": true
        },
        "em4": {
            "prio": 100
        }
    },
    "runner": {
        "name": "activebackup"
    }
}

For more information, see the teamdctl(8) and teamnl(8) manual pages.