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
