This is an old revision of the document!
switch#show port-security
Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action
(Count) (Count) (Count)
---------------------------------------------------------------------------
Te1/0/1 1 0 0 Shutdown
---------------------------------------------------------------------------
Total Addresses in System (excluding one mac per port) : 0
Max Addresses limit in System (excluding one mac per port) : 4096
switch#show port-security interface tenGigabitEthernet 1/0/1 Port Security : Enabled Port Status : Secure-up Violation Mode : Shutdown Aging Time : 1 mins Aging Type : Absolute SecureStatic Address Aging : Disabled Maximum MAC Addresses : 1 Total MAC Addresses : 0 Configured MAC Addresses : 0 Sticky MAC Addresses : 0 Last Source Address:Vlan : 0000.0000.0000:0 Security Violation Count : 0
switch(config-if)#switchport port-security aging time ? <1-1440> Aging time in minutes. Enter a value between 1 and 1440
switch(config-if)#switchport port-security aging type ? absolute Absolute aging (default) inactivity Aging based on inactivity time period
switch(config-if)#switchport port-security aging static
switch(config-if)#switchport port-security mac-address sticky ? H.H.H 48 bit mac address <cr> <cr>
switch(config-if)#switchport port-security mac-address sticky 1234.1234.1234
no switchport port-security mac-address sticky
switch#show mac address-table secure
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
switch(config)#errdisable detect cause all
switch(config)#errdisable detect cause <cause name>
switch(config)#errdisable detect cause link-flap
switch(config)#no errdisable detect cause all
switch(config)#no errdisable detect cause <cause name>
switch(config)#no errdisable detect cause link-flap
switch(config)#errdisable recovery cause all
switch(config)#errdisable recovery cause mac-limit
switch(config-line)#int te 1/0/1 switch(config-if)#shut *Nov 23 06:47:22.720: %LINK-5-CHANGED: Interface TenGigabitEthernet1/0/1, changed state to administratively down switch(config-if)#no shut *Nov 23 06:47:30.749: %LINK-3-UPDOWN: Interface TenGigabitEthernet1/0/1, changed state to up
switch(config)#errdisable recovery interval ? <30-86400> timer-interval(sec)
switch(config)#errdisable recovery interval 30