Configure Port Lock
Configure port lock to administratively lock a port or ports to prevent other users from changing port parameters or modifying port action. You cannot modify a locked port until you unlock the port.
Procedure
Example
Switch:1> enable Switch:1# configure terminal
Log on to GigabitEthernet Interface Configuration mode:
Switch:1(config)# interface GigabitEthernet 1/1
Lock port 1/1:
Switch:1(config-if)# lock port 1/1 enable
Unlock port 1/1:
Switch:1(config-if)# no lock port 1/1 enable
Variable Definitions
The following table defines parameters for the interface gigabitethernet command.
Variable |
Value |
---|---|
{slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} |
Identifies the
slot and port in one of the following formats:
|
The following table defines parameters for the lock port command.
Variable |
Value |
---|---|
{slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} |
Specifies the port you want to lock. Identifies the
slot and port in one of the following formats:
The default is disabled. |