liveBook · Manning

No switchport

As explained in Acing the CCNA Exam: Volume 1 Fundamentals and Protocols

no switchport is a Cisco IOS interface command that converts a multilayer-switch port from switching operation to routed operation.

no switchport converts a multilayer-switch interface from Layer 2 switching to routed operation. The physical port then behaves like a router interface and can receive an IP address. section 12.4.2 section 12.5

Configure a routed port in interface configuration mode:

  • interface g0/1 selects the physical interface. section 12.4.2
  • no switchport removes switching operation and creates routed-port behavior. section 12.4.2
  • ip address 172.16.1.193 255.255.255.252 assigns the Layer 3 address. section 12.4.2
  • Add a static or dynamically learned route before forwarding packets to external destinations. section 12.4.2 section 12.5

Connecting a multilayer switch to a router

SW1 uses G0/1 as a routed link to R1. After configuring the interface address, SW1 learns connected and local routes for 172.16.1.192/30. A default route using R1 at 172.16.1.194 provides external connectivity. section 12.4.2

Figure 12.12 SW1, a multilayer switch, uses a routed port (G0/1) to provide connectivity to external networks (via R1, in this case). Like a router interface, SW1 G0/1 is configured with an IP address: 172.16.1.193.

Shows a multilayer switch using routed port G0/1 to reach external networks through R1. section 12.4.2

How Acing the CCNA Exam: Volume 1 Fundamentals and Protocols covers it

How deep it goes
Explains conversion, addressing, routing-table entries, and default routing, but defers dynamic-routing details.
Examples
Uses SW1 G0/1, address 172.16.1.193/30, R1 next hop 172.16.1.194, and a default route.
What it assumes
Assumes interface configuration and IP addressing basics while distinguishing routed ports from SVIs and switch ports.
What you can do after
Operate/configure a multilayer-switch interface as a routed port and supply routes for external destinations.
How it connects
Connects routed ports with multilayer switching, router interfaces, static routes, dynamic routing protocols, and external connectivity.

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 1 Fundamentals and Protocols. The section links point to the parts of the book it draws on.