Switchport - Cisco ME 3400 Command Reference Manual

Ethernet access switch
Table of Contents

Advertisement

Chapter 2 Cisco ME 3400 Ethernet Access Switch Cisco IOS Commands

switchport

Use the switchport interface configuration command with no keywords to put an interface that is in
Layer 3 mode into Layer 2 mode for Layer 2 configuration. Use the no form of this command to put an
interface in Layer 3 mode.
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
Release
12.2(25)EX
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, 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 change an interface from a Layer 2 (switching) port to a Layer 3 (routed)
port.
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.
OL-9640-07
switchport
no switchport
Modification
This command was introduced.
Cisco ME 3400 Ethernet Access Switch Command Reference
switchport
2-605

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents