Security and authentication
11.5 Port Access Control List Locked Ports
SCALANCE XM-400/XR-500 Command Line Interface (CLI)
Configuration Manual, 11/2015, C79000-G8976-C252-10
733
Commands in the interface configuration mode
This section describes commands that you can call up in the interface configuration mode.
Depending on the Interface selected, various command sets are available.
In the Global configuration mode, enter the
interface command to change to this mode.
Commands relating to other topics that can be called in the interface configuration mode can
be found in the relevant sections.
● If you exit the Interface configuration mode with the
exit command, you return to the
Global configuration mode.
● If you exit the Interface configuration mode with the
end command, you return to the
Privileged EXEC mode.
switchport lock
Description
With this command, you block the learning of MAC entries. Only the static address entries of
the MAC address list are used on the port.
You are in the Interface configuration mode.
The command prompt is as follows:
cli(config-if-$$$)#
Call the command without parameters:
switchport lock
The learning of MAC addresses is blocked.
You enable the learning of MAC addresses with the no switchport lock command.
You display the configuration with the
show lock port command.