mac
Commands for the Number Limitation Function of MAC in Port
456
Parameters: <vlan-id> display the specified VLAN ID. This option is not supported by
switch.
<portName> is the name of layer-2 port.
Command Mode: Any mode
Usage Guide: Use this command to display the number of dynamic MAC of
corresponding port.
Examples: Display the number of dynamic MAC of the port which are configured with
number limitation function of MAC.
Switch(config)# show mac-address dynamic count interface ethernet 1/3
Port MaxCount CurrentCount
-----------------------------------------------------------------------------------------------------
Ethernet1/3 5 1
-----------------------------------------------------------------------------------------------------
39.5 switchport mac-address dynamic maximum
Command: switchport mac-address dynamic maximum <value>
no switchport mac-address dynamic maximum
Function: Set the max number of dynamic MAC address allowed by the port, and, at the
same time, enable the number limitation function of dynamic MAC address on the port;
“no switchport mac-address dynamic maximum” command is used to disable the
number limitation function of dynamic MAC address on the port.
Parameters: <value> upper limit of the number of dynamic MAC address of the port,
ranging from 1 to 4096.
Default Settings: The number limitation function of dynamic MAC address on the port is
disabled.
Command Mode: Port mode.
Usage Guide: When configuring the max number of dynamic MAC address allowed by
the port, if the number of dynamically learnt MAC address on the port is already larger
than the max number of dynamic MAC address to be set, the extra dynamic MAC
addresses will be deleted. This function is mutually exclusive to functions such as dot1x,
MAC binding, if the functions of dot1x, MAC binding or TRUNK are enabled on the port,
this function will not be allowed.
Examples:
Enable the number limitation function of dynamic MAC address in port 1/2 mode, the
max number to be set is 20
Switch(config)#interface ethernet 1/2
Switch(Config-If-Ethernet1/2)# switchport mac-address dynamic maximum 20










