I thought that each mode <protect>, <restrict> and <shutdown> are suppose to disregard offending mac-address's traffic to the incoming switch port. I'm only able to get <shutdown> to stop offending traffic from reaching the layer 3 Vlan1 address of my switch.
As I understand this:
- Protect disregards offending mac-address traffic on the incoming port, doesn't send any SNMP trap messages and doesn't increment security violation counter.
- Restrict disregards offending mac-address traffic on the incoming port, send an SNMP trap messages and increment security violation counter.
- Shutdown shuts down the port, send an SNMP trap messages and increment security violation counter.
When I use protect, nothing happens.. I'm able to SSH into the switches Vlan1 management IP interface successfully
When I use Restrict I receive SNMP for the violation, the counter increments but I'm still able to SSH into the switch
Shutdown works as expected..
What gives? I thought the offending mac-address traffic were suppose to be dropped..
Code:
SW3#show running | be 0/1
interface FastEthernet0/1
switchport mode access
switchport port-security
switchport port-security violation restrict
switchport port-security mac-address 0000.1111.2222
Code:
SW3#show port-security address
Secure Mac Address Table
-------------------------------------------------------------------
Vlan Mac Address Type Ports Remaining Age
(mins)
---- ----------- ---- ----- -------------
1 0000.1111.2222 SecureConfigured Fa0/1 -
-------------------------------------------------------------------
Total Addresses in System (excluding one mac per port) : 0
Max Addresses limit in System (excluding one mac per port) : 1024
Code:
SW3#show mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
All 000d.29ac.9300 STATIC CPU
All 0100.0ccc.cccc STATIC CPU
All 0100.0ccc.cccd STATIC CPU
All 0100.0cdd.dddd STATIC CPU
1 0000.1111.2222 STATIC Fa0/1
Total Mac Addresses for this criterion: 5
Code:
SW3#show port-security interface fastEthernet 0/1
Port Security : Enabled
Port Status : Secure-up
Violation Mode : Restrict
Aging Time : 0 mins
Aging Type : Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses : 1
Total MAC Addresses : 1
Configured MAC Addresses : 1
Sticky MAC Addresses : 0
Last Source Address : 0022.6856.1294
Security Violation Count : 104