
4
CLI
description WORD<1-"
SYS_STR_CONST(SY
S_PORTDESC_STR_L
EN) ">
Admin EXEC
Use "description" com-
mand to give the port a
name to identify it easily.
If description includes
space character, please use
double quotes to wrap it.
This example shows how to
modify port descriptions.
switch(config)# interface fa2
switch(config-if)# description
"uplink port"
no description
Admin EXEC
Use no form to restore
description to empty string.
[no] protected
Admin EXEC
Use "protected" command
to protect port. Protected
port is only allowed to com-
municate with unprotected
port. In other words, pro-
tected port is not allowed to
communicate with another
protected port.
Use no form to make port
unprotected
This example shows how to
configure ports fa1 and fa2 as
protected ports.
switch(config)# interface range
fa1-2
switch(config-if-range)# pro-
tected
MAC Address Table
Table 5: MAC Address Table
Function
Privilege
Description
Example
show mac address-table
aging-time
User EXEC
View the aging time of the
address table.
switch# show mac address-
table aging-time
show mac address-table
A:B:C:D:E:F [vlan <1-
4094>]
User EXEC
Displays entries for a spe-
cific MAC address (for all or
VLAN).
switch# show mac address-
table 0:1:2:3:4:5 vlan 1
show mac address-table
[vlan <1-4094>] [inter-
faces IF_PORTS]
User EXEC
View MAC entry on speci-
fied interface or VLAN or all
dynamic MAC entries in
MAC address table.
switch# show mac address-
table vlan 1 interface fa5
show mac address-table
static [vlan <1-4094>]
[interfaces IF_PORTS]
User EXEC
View static MAC entry on
specified interface or VLAN
or all dynamic MAC entries
in MAC address table.
switch# show mac address-
table static vlan 1 interface fa5
show mac address-table
dynamic [vlan <1-4094>]
[interfaces IF_PORTS]
User EXEC
View dynamic MACentry on
specified interface or VLAN
or all dynamic MAC entries
in MAC address table.
switch# show mac address-
table dynamic vlan 1 interface
fa5
show mac address-table
counters
User EXEC
Display the number of
addresses present in MAC
address table.
switch# show mac address-
table counters
clear mac address-table
dynamic [interfaces
IF_PORTS]
Admin EXEC
Delete dynamic MAC entry
on specified interface or all
dynamic MAC entries in
MAC address table.
switch(config)# clear mac
address-table dynamic inter-
faces fa5
clear mac address-table
dynamic vlan <1-4094>
Admin EXEC
Delete dynamic MAC entry
on specified VLAN dynamic
MAC entry in MAC address
table.
switch(config)# clear mac
address-table dynamic vlan 1
Table 4: Port Configuration (Continued)
Function
Privilege
Description
Example