The following methods of link state monitoring are available. To implement one of the methods, add the JSON format string to the team JSON format configuration file using an editor running with root
privileges.
5.12.7.1. Configure Ethtool for link-state Monitoring
To add or edit an existing delay, in milliseconds, between the link coming up and the runner being notified about it, add or edit a section as follows:
"link_watch": {
"name": "ethtool",
"delay_up": 2500
}
To add or edit an existing delay, in milliseconds, between the link going down and the runner being notified about it, add or edit a section as follows:
"link_watch": {
"name": "ethtool",
"delay_down": 1000
}
5.12.7.2. Configure ARP Ping for Link-state Monitoring
The team daemon teamd
sends an ARP REQUEST to an address at the remote end of the link in order to determine if the link is up. The method used is the same as the arping utility but it does not use that utility.
Prepare a file containing the new configuration in JSON format similar to the following example:
{
"device": "team0",
"runner": {"name": "activebackup"},
"link_watch":{
"name": "arp_ping",
"interval": 100,
"missed_max": 30,
"source_host": "192.168.23.2",
"target_host": "192.168.23.1"
},
"ports": {
"em1": {
"prio": -10,
"sticky": true
},
"em2": {
"prio": 100
}
}
}
This configuration uses
arp_ping as the link watcher. The
missed_max
option is a limit value of the maximum allowed number of missed replies (ARP replies for example). It should be chosen in conjunction with the
interval
option in order to determine the total time before a link is reported as down.
To load a new configuration for a team port
em2, from a file containing a JSON configuration, issue the following command as
root
:
~]# port config update em2 JSON-config-file
Note that the old configuration will be overwritten and that any options omitted will be reset to the default values. See the
teamdctl(8)
man page for more team daemon control tool command examples.
5.12.7.3. Configure IPv6 NA/NS for Link-state Monitoring
{
"device": "team0",
"runner": {"name": "activebackup"},
"link_watch": {
"name": "nsna_ping",
"interval": 200,
"missed_max": 15,
"target_host": "fe80::210:18ff:feaa:bbcc"
},
"ports": {
"em1": {
"prio": -10,
"sticky": true
},
"em2": {
"prio": 100
}
}
}
To configure the interval between sending NS/NA packets, add or edit a section as follows:
"link_watch": {
"name": "nsna_ping",
"interval": 200
}
Value is positive number in milliseconds. It should be chosen in conjunction with the
missed_max
option in order to determine the total time before a link is reported as down.
To configure the maximum number of missed NS/NA reply packets to allow before reporting the link as down, add or edit a section as follows:
"link_watch": {
"name": "nsna_ping",
"missed_max": 15
}
Maximum number of missed NS/NA reply packets. If this number is exceeded, the link is reported as down. The
missed_max
option is a limit value of the maximum allowed number of missed replies (ARP replies for example). It should be chosen in conjunction with the
interval
option in order to determine the total time before a link is reported as down.
To configure the host name that is resolved to the
IPv6
address target address for the NS/NA packets, add or edit a section as follows:
"link_watch": {
"name": "nsna_ping",
"target_host": "MyStorage"
}
The
“target_host” option contains the host name to be converted to an
IPv6
address which will be used as the target address for the NS/NA packets. An
IPv6
address can be used in place of a host name.
Please see the teamd.conf(5)
man page for more information.