The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
To configure the interface as a Layer 3 Ethernet interface, use the no switchport command.
no switchport
This command has no arguments or keywords.
None
Interface configuration mode
Release |
Modification |
---|---|
5.0(3)N1(1) |
This command was introduced. |
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 example shows how to enable an interface as a Layer 3 routed interface:
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(config)# interface ethernet 1/5 switch(config-if)# switchport switch(config-if)#
Command |
Description |
---|---|
copy running-config startup-config |
Saves the running configuration to the startup configuration file. |
interface ethernet (Layer 3) |
Configures an Ethernet routed interface or subinterface. |
inteface loopback |
Configures a loopback interface. |
interface port-channel |
Configures an EtherChannel interface or subinterface. |
ip address |
Sets a primary or secondary IP address for an interface. |
show interfaces |
Displays interface information. |