P_AUTOTRAIN
code: 129
# set
<module-index>/<port-index> P_AUTOTRAIN <interval>
# get
<module-index>/<port-index> P_AUTOTRAIN ?
Description
The interval between sending out training packets, allowing a switch to learn the port’s MAC address. Layer-2 switches configure themselves automatically by detecting the source MAC addresses of packets received on each port. If a port only receives, and does not itself transmit test traffic, then the switch will never learn its MAC address. Also, if transmission is very rare the switch will age-out the learned MAC address. By setting the auto-train interval you instruct the port to send switch training packets, independent of whether the port is transmitting test traffic.
Actions
set, get
Parameters
interval
: integer, the interval between sending out training packets of the port
Example
# set
input: 0/1 P_AUTOTRAIN 1
output: <OK>
# get
input: 0/1 P_AUTOTRAIN ?
output: 0/1 P_AUTOTRAIN 1