
12-234
Parameter:
static
:
Enable the aging of the static MAC address configured on the specified interface.
time <
value
>
:
Specify MAC aging time of the interface, its range from 1 to 1440mins. The default value is 0, that
means disable the aging.
type
:
Specify the aging type
absolute
:
The expiration of the aging timer on the interface, all secure MACs of the interfaces will get aged and be
removed from the MAC table.
inactivity
:
The expiration of the aging timer on the interface, the entries will get aged without the traffic, the entries
are still kept in the aging period with the traffic.
Default:
Do not enable port-security aging, the default aging time is 0.
Aging mode is absolute by default.
The static entries are not aged by default.
Command Mode:
Port mode
Usage Guide:
None.
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
12.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-address
:
Configure the specified MAC address as the static secure MAC.
vlan-id
:
The specified VLAN of the MAC address, it only takes effect on trunk and hybrid interfaces.