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#show interfaces te1/0/1 switchport Name: Te1/0/1 Switchport: Enabled Administrative Mode: static access switch(config)#int te 1/0/1 switch(config-if)#switchport port-security
switch#show interfaces te1/0/3 switchport Name: Te1/0/3 Switchport: Enabled Administrative Mode: trunk switch(config)#int t 1/0/3 switch(config-if)#switchport port-security
switch(config-if)#do show int t1/0/2 switchport Name: Te1/0/2 Switchport: Enabled Administrative Mode: dynamic auto switch(config-if)#switchport port-security Command rejected: TenGigabitEthernet1/0/2 is a dynamic port.
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 violation ? protect Security violation protect mode restrict Security violation restrict mode shutdown Security violation shutdown mode
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
switch#show interfaces t1/0/1 | i line protocol TenGigabitEthernet1/0/1 is down, line protocol is down (notconnect)
switch#show interfaces status err-disabled
switch#sh errdisable recovery ErrDisable Reason Timer Status ----------------- -------------- arp-inspection Enabled bpduguard Enabled channel-misconfig Enabled dhcp-rate-limit Enabled dtp-flap Enabled gbic-invalid Enabled inline-power Enabled l2ptguard Enabled link-flap Enabled mac-limit Enabled link-monitor-failure Enabled loopback Enabled oam-remote-failure Enabled pagp-flap Enabled port-mode-failure Enabled pppoe-ia-rate-limit Enabled psecure-violation Enabled security-violation Enabled sfp-config-mismatch Enabled storm-control Enabled udld Enabled vmps Enabled psp Enabled dual-active-recovery Disabled evc-lite input mapping fa Disabled Timer interval: 30 seconds Interfaces that will be enabled at the next timeout:
switch(config-if)#switchport mode access
switch(config-if)#switchport port-security mac-address sticky
switch(config-if)#switchport port-security maximum 1
switch(config-if)#switchport port-security violation shutdown
switch(config-if)#switchport port-security
switch#show port-security interface t1/0/1 Port Security : Enabled Port Status : Secure-down Violation Mode : Shutdown Aging Time : 1 mins Aging Type : Inactivity SecureStatic Address Aging : Enabled Maximum MAC Addresses : 1 Total MAC Addresses : 1 Configured MAC Addresses : 0 Sticky MAC Addresses : 1 Last Source Address:Vlan : 0000.0000.0000:0 Security Violation Count : 0
switch(config)#errdisable recovery cause all
switch(config)#errdisable recovery interval 30 switch#show errdisable recovery | i interval Timer interval: 30 seconds