Switches, Hubs, and Modems
Showing results for 
Search instead for 
Did you mean: 

MAC address lockdown

Go to solution
Occasional Contributor

MAC address lockdown

Hello, how do I have to configure MAC lockdown on Procurve 5304xl, 2650, 2824 and 2626 switches? Is there a way to manage this centralized?
Manfred Arndt
Valued Contributor

Re: MAC address lockdown

Here's links to the online manuals that has lots of good info.

See section 9-25 for the 2600 and 2800 switches:


See section 11-21 for the 5300:


Good luck
Sergej Gurenko
Trusted Contributor

Re: MAC address lockdown

"port-security XX learn-mode static action send-disable" provides some kind of centralized management.
All MAC addresses are learned dynamically and stored to config. In case of any user insert other device to a switch you will receive Alarm and port will stay blocked. User will need to contact sysadmin to unblock the port.

You can also look for 802.1X. This is 95% more centralized solution.

Both 802.1X and MAC lockdown do not protect from recent attacks (APR poisoning)
Jonathan Axford
Trusted Contributor

Re: MAC address lockdown

Hi, We use the port-security feature here at the college.

It works fairly well, the only down side is it can be hard to manage if you have a lot of devices.

We use it because students like to plug there own laptops in and try and gain access to the network, If they try this now then the port is disabled until IT re-enables it.

We use :

Switch(Config)#port-security xx-xx learn-mode static action send-disable address-limit 1

xx-xx is the port range that you want to enable it on. Learn-mode static means it does not continuously learn MAC addresses and we have set the address-limit to 1 so it only learns 1 address per port.
The action command sends an alert to our PCM+ software and disbales the port if an alien MAC address is detected.

I would recommend using this if you don't want to go the 802.1x route and if your environment remains fairly static. If you change PC's/Move PC's a lot then it can be a real nightmare staying on top of it!
Where there is a will there is a way...

Re: MAC address lockdown

hi may I know how can you enable again the port? because when you enable it the old mac address is still there and the port is block again.
Jonathan Axford
Trusted Contributor

Re: MAC address lockdown

Hi, here is how to clear the MAC address :

Delete the address by using 'no port-security macaddress

(From Matt's post previoulsy....)

You should then be able to enable the port and it will pick up the new MAC address.
Where there is a will there is a way...