Page 22
6.1.6
MAC Table (MACTABLE)
The
mactable
command provides the ability to clear and display the MAC addresses learned by the switch.
To display the MAC addresses, use the
mactable
command from the CLI prompt. A list of options is
displayed when the
mactable -h
command is entered.
> mactable
Description:
mactable - mac table status
Syntax:
mactable [-h]
mactable -s [-ver] [-p pNum]
mactable -clr
mactable -aging ageTime
Switches:
-aging mac table aging time in sec, [ageTime]: {10..630} dflt 300
-clr clear (flushes) the learned MAC addresses
-h display help information
-p port number, [pNum]: {F1|F2|1..8|all}
-s show current status
-ver verbose show
>
NOTE: Port number selection will vary depending on the model.
The options available using the
mactable
command are shown below.
The
-aging
switch defines the time before a MAC address expires. The default value is 300 seconds.
The
-clr
switch clears the learned MAC addresses.
The
-h
switch displays the help screen presented above. It is static and provides help information for the
specific command.
The
-p
switch selects the port number.
The
-s
switch displays the MAC table.
The
-ver
switch displays the extended show.
To display the learned MAC addresses on the switch, use the
mactable -s
command.
>mactable -s
MAC aging = 300s
Retrieving MAC Table information - please wait
1 out of 16384 entries allocated
[0001] 00-80-f0-a9-ac-80 (P5);
>