cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
690
Views
0
Helpful
2
Replies

Port Security on 2950

jfraasch
Level 3
Level 3

I have the following setup on a port on my 2950:

interface FastEthernet0/23

switchport mode access

switchport port-security

switchport port-security mac-address 0009.4302.5614

duplex half

speed 10

I have the port-security violation shutdown enabled as well.

DAX_Rack_5#sh port-security

Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action

(Count) (Count) (Count)

-------------------------------------------------------------------------------

Fa0/23 132 2 0 Shutdown

Problem is, it doesnt seem to work. When I change the cable plugged in it still comes up just fine. I thought it was supposed to go ERRDISABLE or something like that?

Thoughts?

James

1 Accepted Solution

Accepted Solutions

Peter Paluch
Cisco Employee
Cisco Employee

Hello James,

If I am interpreting your "show port-security" output correctly then the Fa0/23 port seems to have 132 secure MAC addresses allowed. As you have defined one static secure MAC address, there is still space for 131 secure MAC addresses. Until the space is exhausted, the switch will happily learn new MAC addresses withouth causing a security violation.

Try to add this command to your Fa0/23 configuration:

switchport port-security maximum 1

Best regards,

Peter

View solution in original post

2 Replies 2

Peter Paluch
Cisco Employee
Cisco Employee

Hello James,

If I am interpreting your "show port-security" output correctly then the Fa0/23 port seems to have 132 secure MAC addresses allowed. As you have defined one static secure MAC address, there is still space for 131 secure MAC addresses. Until the space is exhausted, the switch will happily learn new MAC addresses withouth causing a security violation.

Try to add this command to your Fa0/23 configuration:

switchport port-security maximum 1

Best regards,

Peter

Dang, you are right. I had taken it off and forgot to put it back on. The 132 should have been a bit of a clue, eh!

Thanks!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card