
12-236
Example:
Configure the secure MAC address on the interface.
Switch(config-if-ethernet1/1)#switchport port-security mac-address sticky 00-00-00-00-00-01
12.7 switchport port-security maximum
Command:
switchport port-security maximum <
value>
[vlan
<vlan-list>
]
no switchport port-security maximum <
value>
[vlan
<vlan-list>
]
Function:
Configure the maximum number of the secure MAC allowed by the interface, if specifying VLAN parameter, it means
the maximum number in the configured VLANs. The no command cancels the maximum number of the secure MAC
configured by the interface.
Parameter:
value
:
Configure the maximum number of the secure MAC allowed by the interface, its range between 1 and 128. It
is determined by the maximum MAC number of the device.
vlan-id:
Configure the maximum value for the specified VLAN, it only takes effect on trunk and hybrid interfaces.
Default:
After enabling port-security, if there is no other configuration, the maximum number of the secure MAC is 1 on the
interface. The interface number in VLAN is no limit by default
Command Mode:
Port mode
Usage Guide:
Pay attention to the coupling relation about the number between the interface and VLAN, set the maximum number
configured by the interface as the standard firstly.
Example:
Configure the maximum number of the secure MAC on the interface.
Switch(config-if- ethernet1/1)# switchport port-security maximum 100