I am trying to set up HP procurve routers (25xx and 26xx) with port-security. Goal is to allow client devices and routers. But to disallow a switch, AP or a router in bridge mode. This should be accomplished by:
- Limit MAC to 1 per switch port at any given time
- Any MAC is allowed (as long as just one at the time)
- It is OK to change device/MAC at any time
I have not tried yet. But is this accomplished doing this in the web interface security -> port-security (or similar cli command)
learn-mode: static address-limit: 1 Violation Action: none
I am quite sure that it will limit the port to only 1 MAC. But will that be remembered "static" when the user change to another device?
Updated with solution, version 2
It need to be learn mode : limited-continuous. Action: none
It works just fine. It can be done from CLI for multiple ports at once. This line for port 1-23:
port-security 1-23 address-limit 1 learn-mode limited-continuous action none
If 'limited-continuous' is specified, the first 'address-limit' source MAC addresses heard on this port become the authorized addresses. When new authorized addresses are learned, they are stored in a table. When the table has reached its 'address-limit', any new source MAC addresses received on the port constitutes an intrusion. The authorized addresses in this mode will age out of the system, therefore the list of authorized addresses can be dynamic over time.