
9.4 MAC Lock Commands
9.4.1 mac-lock
This command adds the specified MAC address with
<vlanid>
to a specified interface. The
<macaddr>
parameter must be specified as a 6-byte hexadecimal number in the format of b1:b2:b3:b4:b5:b6.
The
<vlanid>
parameter must identify a valid VLAN.
▫
Format
mac-lock <vlanid> <macaddr>
▫
Mode
Interface Config
9.4.1.1 no mac-lock
This command removes the MAC address with the MAC address of <macaddr> and VLAN of <vlanid>
locked by the specified interface.
▫
Format
mac-lock <vlanid> <macaddr>
▫
Mode
Interface Config
9.4.2 show mac-lock
This command displays the vlan id and mac addresses that are locked at the specified interface for one
or all interfaces.
▫
Format
show mac-lock {<slot/port> | all}
▫
Mode
Privileged EXEC and User EXEC