Use this command to create a static MAC address and enable or disable MAC locking for the specific MAC address and port.
mac-address | Specifies the MAC address for which MAC locking will be created, enabled or disabled. |
port-string | Specifies the port on which to create, enable or disable MAC locking. For a detailed description of possible port-string values, refer to the S-, K-, and 7100 Series Configuration Guide. |
create | enable | disable | Creates, enables or disables MAC locking between the specified MAC address and port. create both creates and enables the specified entry. |
None.
All command modes.
Configuring one or more ports for MAC locking requires globally enabling it on the device first using the set maclock enable command as described in set maclock enable. When globally enabling MAC locking, specifying the port is optional.
In order to statically associate a port to a specific hardware device, create the static configuration using the set maclock mac-address port-string create command. A static MAC lock configuration is active by default.
To set the static MAC lock configuration to inactive, use the set maclock mac-address port-string disable command.
To delete the static configuration, use clear maclock, specifying the MAC-address and port-string of the static configuration to delete.
Up to 64 MAC addresses can be locked per port.
When created and enabled, a static MAC lock configuration allows only the end station designated by the MAC address to participate in frame relay.
This example shows how to enable MAC locking on port ge.2.3 and create a static MAC locking association between MAC address 00-a0-c9-0d-32-11 and port ge.2.3:
System(rw)->set macklock enable ge.2.3 System(rw)->set maclock 00-a0-c9-0d-32-11 ge.2.3 create
This example shows how to set the static MAC locking association between MAC address 00-a0-c9-0d-32-11 and port ge.2.3 to inactive:
System(rw)->set maclock 00-a0-c9-0d-32-11 ge.2.3 disable
This example shows how to reset the static MAC locking association between MAC address 00-a0-c9-0d-32-11 and port ge.2.3 to active:
System(rw)->set maclock 00-a0-c9-0d-32-11 ge.2.3 enable