Chapter
Unicast Routing Commands
no switchport
To configure the interface as a Layer 3 Ethernet interface, use the no switchport command.
Syntax Description
This command has no arguments or keywords.
Command Default
None
Command Modes
Interface configuration mode
Command History
Release
5.0(3)A1(1)
Usage Guidelines
You can configure any Ethernet port as a routed interface. When you configure an interface as a Layer 3
interface, any configuration specific to Layer 2 on this interface is deleted.
If you want to configure a Layer 3 interface for Layer 2, enter the switchport command. Then, if you
change a Layer 2 interface to a routed interface, enter the no switchport command.
This command requires the LAN Base Services license.
Examples
This example shows how to enable an interface as a Layer 3 routed interface:
switch# configure terminal
switch(config)# interface ethernet 1/5
switch(config-if)# no switchport
switch(config-if)#
This example shows how to configure a Layer 3 interface as a Layer 2 interface:
switch# configure terminal
switch(config)# interface ethernet 1/5
switch(config-if)# switchport
switch(config-if)#
Related Commands
Command
copy running-config
startup-config
ip address
show interfaces
OL-27852-01
no switchport
Modification
This command was introduced.
Description
Saves the running configuration to the startup configuration file.
Sets a primary or secondary IP address for an interface.
Displays interface information.
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
no switchport
273