Access, voice, and inter-VLAN
An access port can carry untagged data in one VLAN and tagged voice in a voice VLAN for a compatible phone. In an IOS XE example, switchport access vlan 20 and switchport voice vlan 30 separate the two classes; they do not create a general trunk for any VLAN.
Cisco-specific CDP and standardized LLDP advertise L2 neighbor information; LLDP-MED can carry voice policies. show cdp neighbors detail and show lldp neighbors detail help compare devices and ports with the diagram. An advertised neighbor proves neither routing nor authenticated identity.
Inter-VLAN traffic needs an L3 function: suitably addressed SVIs with routing on an L3 switch, or 802.1Q subinterfaces on a router. The VLAN must exist and have an operational path; creating a gateway address alone is insufficient.
STP protections by purpose
PortFast accelerates entry into forwarding on an appropriate access port. BPDU guard reacts to BPDUs where they are not expected. Root guard prevents a neighbor in that direction from introducing a superior root; root-inconsistent differs from permanently disabling a device.
Loop guard protects root/alternate ports from incorrectly becoming designated when BPDUs stop arriving. BPDU filtering can suppress STP information; applying it indiscriminately between switches removes protection against loops. Select the feature by the threat and port role.
A blocked port can represent correct protective action. Before restoring it, identify the event and redundant path.
Read the table before choosing a route
In show ip route, codes such as C, L, S, and O distinguish connected networks, local addresses, static routes, and OSPF. Prefix and mask define the destination set; next hop and interface indicate how to continue. [110/20] on an OSPF route represents administrative distance and metric, not prefix length.
Packet selection starts with the longest match among installed routes. For the same prefix, the preferred source depends on administrative distance and the selection process; metrics from different protocols are not directly comparable. Route 0.0.0.0/0 is the least-specific fallback, not an exception that defeats every route.
Even a selected route depends on next-hop resolution and a return path.
IPv4 and IPv6 static routes
In an IOS XE reading example, ip route 10.50.0.0 255.255.255.0 192.0.2.2 defines a network route; using 255.255.255.255 defines a host route; 0.0.0.0 0.0.0.0 defines the default route. Adding distance 200 can make the static route an alternative to OSPF 110 for the same prefix.
This helps only when the primary route leaves selection: it does not itself detect a distant failure while the interface remains up. In IPv6, ipv6 route 2001:db8:50::/64 GigabitEthernet0/0 fe80::2 includes the interface because the next hop is link-local. ::/0 is default and /128 is host.
Configuration requires IPv6 enabled and appropriate forwarding; inspect show ipv6 route and neighbor context. Addresses in these examples are documentation addresses, not production destinations.
Single-area OSPF and a redundant gateway
In an IOS XE OSPFv2 process, router-id identifies the router; the local process number need not match between neighbors. A statement network 10.0.12.0 0.0.0.3 area 0 selects interfaces with addresses in that range for the area; it does not automatically advertise every router network.
Compare area, mask where applicable, timers, authentication, network type, and interface state. A broadcast network has a DR/BDR; a link configured point-to-point has no such election. show ip ospf neighbor and show ip ospf interface distinguish missing neighbors, transient state, and normal behavior.
Cost contributes to path choice within OSPF. An FHRP virtual gateway provides first-hop continuity, but active status does not demonstrate an operational upstream path. Use route state and functional checks to accept recovery.
Layer 3 EtherChannel
In an L2 EtherChannel, the port-channel carries VLANs as one logical switch interface. In an L3 EtherChannel, members and the logical interface operate in routed mode; the IP address belongs on the port-channel rather than on each member as separate networks.
In an IOS XE example, no switchport selects L3 mode and channel-group with active/passive uses LACP. Check speed, mode, selected members, and logical-interface consistency before accepting the route. Two passive members do not initiate negotiation.
Changing only the port-channel without reconciling members does not create a coherent aggregate.
Read an access and routing configuration
The excerpt combines two separate teaching contexts: SVIs on an L3 switch and OSPF on a router. Each SVI VLAN needs an operational port or trunk carrying clients; check state and permissions before attributing a failure to routing. On the router, interface ip ospf 10 area 0 is the explicit alternative to the network/wildcard selector above.
Current IOS XE documentation recommends interface selection. Do not indiscriminately combine both examples on one device: interpret interfaces, network, and purpose first. A connected route demonstrates local network reach, not a Full OSPF adjacency.
configure terminal
! L3 switch: separate teaching context
vlan 20
vlan 30
interface GigabitEthernet1/0/10
switchport mode access
switchport access vlan 20
switchport voice vlan 30
interface Vlan20
ip address 10.20.0.1 255.255.255.0
no shutdown
interface Vlan30
ip address 10.30.0.1 255.255.255.0
no shutdown
exit
ip routing
end
show vlan brief
show ip interface brief
! OSPF router: separate teaching context
configure terminal
router ospf 10
router-id 1.1.1.1
interface GigabitEthernet0/0
ip address 10.0.12.1 255.255.255.252
ip ospf 10 area 0
no shutdown
exit
end
show ip ospf neighbor
show ip ospf interface GigabitEthernet0/0A static route with distance 200 is not best while OSPF supplies the same /24 with distance 110. Withdrawing the OSPF route makes the static a candidate; failure of only the remote service may withdraw neither route.
Common pitfalls
Comparing metrics across protocols, confusing process number with router ID, using a default to ignore a specific route, or disabling STP to remove a block.
Related topics: Network diagnosis · Configuration decisions
Connect each command to observed state and the forwarding decision it is intended to change.
References
- Configuring voice VLANs · IOS XE 17.12.x C9300
- LLDP, LLDP-MED, and wired location · IOS XE 17.17.x C9300
- Optional spanning tree features · IOS XE 17.18.x C9300
- Administrative distance and route selection · Updated 2026-07-20
- IPv6 static routing · IOS XE 17.x
- OSPF version 2 · RFC 2328
- EtherChannels · IOS XE 17.18.x C9300
- Configuring OSPF · IOS XE 17.x