mac

Commands for PORT SECURITY
161
Example: Configure the aging time of the secure MAC as 1 second on the interface.
Switch (config-if- ethernet1/1)# switchport port-security aging time 1
11.5 switchport port-security mac-address
Command: switchport port-security mac-address <mac-address> [vlan <vlan-id>]
no switchport port-security mac-address <mac-address> [vlan
<vlan-id>]
Function: Configure the static secure MAC on the interface, the no command cancels
the configuration.
Parameter: mac-addressConfigure the specified MAC address as the static secure
MAC.
vlan-idThe specified VLAN of the MAC address, it only takes effect on
trunk and hybrid interfaces.
Default: No secure MAC is bound by the interface.
Command Mode: Port mode
Usage Guide: When configuring the static secure MAC, pay attention to the number of
the current secure MAC whether exceed the maximum MAC limit allowed by the
interface. If exceeding the maximum MAC limit, it will result in violation operation.
Example: Configure the secure MAC address on the interface.
Switch (config-if- ethernet1/1)# switchport port-security mac-address 00-00-00-00-00-01
11.6 switchport port-security mac-address sticky
Command: switchport port-security mac-address sticky [mac-address] [vlan
<vlan-id>]
no switchport port-security mac-address sticky [mac-address] [vlan
<vlan-id>]
Function: Configure the static secure MAC with the sticky type on the interface, the no
command cancels the configured secure MAC.
Parameter: mac-addressConfigure the specified MAC address as the static secure
MAC with the sticky type.
vlan-idThe specified VLAN of the MAC address, it only takes effect on
trunk and hybrid interfaces.
Default: No secure MAC is bound by the interface with the sticky type.
Command Mode: Port mode
Usage Guide: When configuring the static secure MAC with sticky type, pay attention to