cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
263
Views
0
Helpful
4
Replies

port security with different MAC Address

 

there is problem as  the Configuration under interfaces with this commands ,

 

switchport port-security maximum 1
 switchport port-security violation shutdown
 switchport port-security mac-address sticky
 switchport port-security

 

Here the question if user put its PC’s port into switch port so this only pc will be learned on that port and if I changed the PC with another one it will block the port ,, what if I want to plug any pc on that port and to be  work , is that possible ? if yes ,how ?

4 Replies 4

Reza Sharifi
Hall of Fame
Hall of Fame

what if I want to plug any pc on that port and to be  work , is that possible ? if yes ,how ?

Yes, it is possible. Just remove this command from your config

no switchport port-security mac-address sticky

After removing this command, any PC can plug in to this port for a maximum of 1.

HTH

is that the only solution ?

If you want any PC to be able to connect to that port, yes.

HTH

You can also add a limit to the switchport sticky command. Lets say you configure it to learn 3 mac addresses dynamically so after it hits that limit, the switch will not learn any more MACs on that switchport unless you manually delete one of the sticky mac addresses from that switchport.

Here is the command if it helps:

switchport port-security maximum 3

Review Cisco Networking for a $25 gift card