MAC Locking Configuration describes how to configure MAC locking on an S- K- and 7100-Series device. All MAC locking commands can be entered in any command mode.
Step | Task | Command(s) |
---|---|---|
1 | Globally enable MAC locking, optionally specifying the port(s) to be enabled. If no port is specified, all ports on the device are enabled. If one or more ports are specified, all unspecified ports remain disabled. | set maclock enable [port_string] |
2 | Optionally, enable static MAC locking configuration on the specified port for the maximum number of MAC addresses specified by value. | set maclock static port_string value |
3 | Optionally, create static MAC locking entries for the specified MAC address and port. | set maclock mac_address port_string {create | enable | disable} |
4 | Optionally, create a dynamic MAC locking configuration, specifying the maximum number MAC addresses allowed for the specified port. | set maclock firstarrival port_string value |
5 | Optionally, move all current dynamic MAC locking configured MACs to static entries. | set maclock move port-string |
6 | Optionally, enable or disable first arrival MAC address aging on the specified port(s). | set maclock agefirstarrival port_string {enable | disable} |
7 | Optionally, enable or disable MAC lock trap messaging. | set maclock trap port_string {enable | disable} |
Managing MAC Locking describes how to manage MAC locking on an S- K- and 7100-Series port. All MAC locking commands can be entered in any command mode.
Step | Task | Command(s) |
---|---|---|
1 | Display MAC locking configuration information for dynamic configurations, static configurations or by port. | show maclock [stations [firstarrival | static]] [port_string] |
2 | Clear dynamic MAC locking configuration by port. | clear maclock firstarrival port-string |
3 | Clear static MAC locking configuration by port. | clear maclock static port_string |
4 | Clear MAC locking from one or more static MAC addresses. | clear maclock {all | mac-address} port-string |