A structured lesson workspace with readable content, hands-on examples, and a clean path to completion.
Every Layer 3 switch port can be configured two ways: as a switched port (part of a VLAN, forwarding at Layer 2), or as a routed port (with its own IP, forwarding at Layer 3). Most engineers default to SVIs and forget routed ports exist. That's a shame, because routed ports are the right answer for uplinks between Layer 3 switches.
| Feature | Routed port | SVI |
|---|---|---|
| What it is | Physical port with an IP, no VLAN | Logical interface tied to a VLAN |
| Command to enable | `no switchport` | `interface vlan N` |
| Layer 2 capability | None — Layer 3 only | Full switching for the VLAN |
| STP participation | No (not a switched port) | Yes (participates in STP for its VLAN) |
| Typical use | Point-to-point links between L3 devices | Gateway for hosts in a VLAN |
The distinction matters because routed ports don't participate in STP — they're not switched. On a link between two Layer 3 switches where you want routing, a routed port is cleaner and slightly faster than an SVI. On a port facing user devices, an SVI (via VLAN membership) is what you want.
! Enable IP routing globallySW1(config)# ip routing! Convert a switchport to a routed portSW1(config)# interface gigabitEthernet0/1SW1(config-if)# description Link-to-Core-L3SW1(config-if)# no switchportSW1(config-if)# ip address 10.0.0.1 255.255.255.252SW1(config-if)# no shutdownSW1(config-if)# exit! VerifySW1# show ip interface brief | include Gi0/1
The `no switchport` command is the key — it converts the port from Layer 2 to Layer 3. Without it, `ip address` will be rejected on a switch port. With it, the port behaves like a router interface: no VLANs, no trunking, no STP, just IP forwarding.
`no switchport` is a one-way conversion in most IOS versions — you need `switchport` to revert. When reverting, existing IP config is dropped. Plan accordingly.
Point-to-point routed ports between switches are usually configured as /30 or /31 subnets. A /30 gives two usable addresses for two endpoints — exactly what you need. A /31 (RFC 3021) gives two usable addresses with a tighter mask — modern IOS supports this and it's becoming standard.
Finish the lesson once you have worked through the material. This awards ★ 30 XP.