-58
Cisco ME 3800X and ME 3600X Switch Command Reference
OL-28238-01
Chapter
switchport
switchport
To put an interface that is in Layer 3 mode into Layer 2 mode for Layer 2 configuration, use the
switchport command with no keywords in interface configuration mode. To put an interface in Layer 3
mode, use the no form of this command.
switchport
no switchport
Note The switchport commands are not available on interfaces with service instances configured.
Syntax Description This command has no arguments or keywords.
Defaults By default, all interfaces are in Layer 2 (switching) mode.
Command Modes Interface configuration
Command History
Usage Guidelines Use the no switchport command (without parameters) to set the interface to the routed-interface status
and to erase all Layer 2 configurations. You must enter the no switchport command and then assign an
IP address to the routed port.
If an interface is configured as a Layer 3 interface, to process traffic through the CPU, you must first
enter the switchport command with no keywords before configuring switching characteristics on the
port. Then you can enter additional switchport commands with keywords, as shown on the pages that
follow.
Entering the no switchport command shuts the port down and then re-enables it, which might generate
messages on the device to which the port is connected.
When you enter the switchport (or no switchport) command without keywords on an interface, the
configuration information for the affected interface might be lost, and the interface returned to its default
configuration.
The switchport commands are not available on interfaces with service instances configured.
You can verify the switchport status of an interface by entering the show running-config privileged
EXEC command.
Release Modification
12.2(52)EY This command was introduced.