When using Router-on-a-Stick (ROAS), you can configure the router to participate in native VLAN functionality. Native VLAN frames are not tagged with 802.1Q headers, making transmission slightly more efficient because frames are smaller.
Two methods to configure native VLAN on a router:
Subinterface Method: Use the command encapsulation dot1q [vlan-id] native on the subinterface
encapsulation dot1q [vlan-id] native
Physical Interface Method: Configure the IP address directly on the physical interface (no subinterface needed, no encapsulation command needed)
The dot1q tag is inserted after the source MAC address field and contains:
TPID (Tag Protocol Identifier): 0x8100 - identifies frame as 802.1Q tagged
PCP (Priority Code Point): 3 bits for QoS priority (0-7)
DEI (Drop Eligible Indicator): 1 bit indicating if frame can be dropped during congestion
VLAN ID: 12 bits identifying the VLAN (1-4094)
A multilayer switch can perform both Layer 2 switching AND Layer 3 routing. This is the preferred method for inter-VLAN routing in large networks.
Capabilities of Layer 3 switches:
Switching and routing in one device
IP address assignment to interfaces
Routed ports (interfaces that act like router interfaces)
Switch Virtual Interfaces (SVIs) for each VLAN
Routing table with static/dynamic routes
SVIs are virtual interfaces created in software that can be assigned IP addresses and used as default gateways for VLANs. They enable inter-VLAN routing without sending traffic to an external router.
Topic
Key Information
Native VLAN Benefit
Frames are smaller (no tag) = more frames per second
Layer 3 Switch
Can switch AND route; is Layer 3 aware
Routed Port
Physical switch interface configured to act like a router interface
SVI
Virtual interface for a VLAN; used as default gateway
ip routing command
ip routing
MUST be enabled on multilayer switch for routing to work
no switchport command
no switchport
Converts Layer 2 switchport to Layer 3 routed port
SVIs default state
Shutdown by default - must use no shutdown
no shutdown
Item
Value
802.1Q TPID Value
0x8100
PCP Field Size
3 bits (values 0-7)
DEI Field Size
1 bit
VLAN ID Field Size
12 bits
Total 802.1Q Tag Size
4 bytes
Forgetting ip routing - Without this command, the multilayer switch cannot route traffic between VLANs
Forgetting no switchport - You cannot assign an IP address to a switch interface until you convert it to a routed port
Forgetting no shutdown on SVIs - SVIs are shutdown by default, unlike physical interfaces
SVI won't come up - Students forget the requirements:
VLAN must exist on the switch
At least one UP/UP access port in that VLAN OR one UP/UP trunk allowing that VLAN
VLAN must not be shutdown
SVI must not be shutdown
Confusing native VLAN methods on router - Remember: physical interface = no encapsulation command needed; subinterface = need encapsulation dot1q [vlan] native
encapsulation dot1q [vlan] native
Creating SVI doesn't create VLAN - Unlike access port assignment, creating an SVI does NOT automatically create the VLAN
"NO-NO-IP for Layer 3 Switching"
NO switchport (make it a routed port)
NO switchport
NO shutdown (enable the SVI)
NO shutdown
IP routing (enable routing on switch)
IP routing
SVI Up/Up Requirements - "VLAN EATS"
VLAN must exist
Enabled (not shutdown)
Access port up OR Trunk allowing VLAN
SVI enabled (no shutdown)
Native VLAN on Router:
Subinterface = Submit the word "native" (encapsulation dot1q [vlan] native)
Physical = Physically just put the IP address (no encapsulation needed)
802.1Q Tag - "TPC-DV" (Think: "The PC's DeVice")
TPID (0x8100)
PCP (priority)
DEI (drop eligible)
VLAN ID
Router(config)# interface g0/0.10
Router(config-subif)# encapsulation dot1q 10 native
Router(config-subif)# ip address 192.168.1.62 255.255.255.192
Router(config)# interface g0/0
Router(config-if)# ip address 192.168.1.62 255.255.255.192
Switch(config)# ip routing
Switch(config)# interface g0/1
Switch(config-if)# no switchport
Switch(config-if)# ip address 192.168.1.193 255.255.255.252
Switch(config)# interface vlan 10
Switch(config-if)# ip address 192.168.1.62 255.255.255.192
Switch(config-if)# no shutdown
Switch(config)# interface vlan 20
Switch(config-if)# ip address 192.168.1.126 255.255.255.192
Switch(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.194
show ip interface brief
show ip route
show interfaces status
show running-config
Last changed23 days ago