11.5.3
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
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
Global configuration mode.
● If you exit the Interface configuration mode with the
Privileged EXEC mode.
11.5.3.1
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.
Requirement
You are in the Interface configuration mode.
The command prompt is as follows:
cli(config-if-$$$)#
Syntax
Call the command without parameters:
switchport lock
Result
The learning of MAC addresses is blocked.
Further notes
You enable the learning of MAC addresses with the
You display the configuration with the
SCALANCE XM-400/XR-500 Command Line Interface (CLI)
Configuration Manual, 11/2015, C79000-G8976-C252-10
11.5 Port Access Control List Locked Ports
command to change to this mode.
interface
command, you return to the
exit
command, you return to the
end
no switchport lock
command.
show lock port
Security and authentication
command.
733