Specifications
2-445
Cisco ME 2400 Ethernet Access Switch Command Reference
OL-9643-03
Chapter 2 Cisco ME 2400 Ethernet Access Switch Cisco IOS Commands
switchport
switchport
Use the switchport interface configuration command with no keywords to put an interface that was
processing traffic through the CPU into normal switching mode. Use the no form of this command to
put an interface in Layer 3 mode.
switchport
no switchport
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 so that traffic on the interface
is processed by the CPU. You must enter the no switchport command and then assign an IP address to
the port.
If an interface is configured 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.
Examples This example shows how to cause an interface to stop operating as a switching port and process traffic
on the port through the CPU.
Switch(config-if)# no switchport
This example shows how to return the port to switching mode:
Switch(config-if)# switchport
You can verify the switchport status of an interface by entering the show running-config privileged
EXEC command.
Release Modification
12.2(25)EX This command was introduced.