04 - Configuring 802.1Q Trunk-Based Inter-VLAN Routing
04 - Configuring 802.1Q Trunk-Based Inter-VLAN Routing
Topology
Addressing Table
Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Configure Switches with VLANs and Trunking
Part 3: Configure Trunk-Based Inter-VLAN Routing
Background / Scenario
A second method of providing routing and connectivity for multiple VLANs is through the use of an 802.1Q
trunk between one or more switches and a single router interface. This method is also known as router-on-a-
stick inter-VLAN routing. In this method, the physical router interface is divided into multiple subinterfaces
that provide logical pathways to all VLANs connected.
In this lab, you will configure trunk-based inter-VLAN routing and verify connectivity to hosts on different
VLANs as well as with a loopback on the router.
Note: The routers used with CCNA hands-on labs are Cisco 1941 Integrated Services Routers (ISRs) with
Cisco IOS, Release 15.2(4)M3 (universalk9 image). The switches used are Cisco Catalyst 2960s with Cisco
IOS, Release 15.0(2) (lanbasek9 image). Other routers, switches and Cisco IOS versions can be used.
Depending on the model and Cisco IOS version, the commands available and output produced might vary
from what is shown in the labs. Refer to the Router Interface Summary Table at the end of the lab for the
correct interface identifiers.
Note: Make sure that the routers and switches have been erased and have no startup configurations. If you
are unsure, contact your instructor.
Required Resources
• 1 Router (Cisco 1941 with Cisco IOS, release 15.2(4)M3 universal image or comparable)
• 2 Switches (Cisco 2960 with Cisco IOS, release 15.0(2) lanbasek9 image or comparable)
• 2 PCs (Windows 7, Vista, or XP with terminal emulation program, such as Tera Term)
• Console cables to configure the Cisco IOS devices via the console ports
• Ethernet cables as shown in the topology
b. On S1, configure the interface connected to R1 as a trunk. Also configure the interface connected to S2
as a trunk. Write the commands you used in the space provided.
S1(config)# interface f0/5
____________________________________________________________________________________
S1(config-if)# switchport mode trunk
____________________________________________________________________________________
S1(config-if)# interface f0/1
____________________________________________________________________________________
S1(config-if)# switchport mode trunk
____________________________________________________________________________________
____________________________________________________________________________________
c. On S1, assign the access port for PC-A to VLAN 10. Write the commands you used in the space
provided.
S1(config)# interface f0/6
____________________________________________________________________________________
S1(config-if)# switchport mode access
____________________________________________________________________________________
b. Configure the subinterface to operate on VLAN 1. Write the command you used in the space provided.
____________________________________________________________________________________
R1(config-subif)# encapsulation dot1Q 1
c. Configure the subinterface with the IP address from the Address Table. Write the command you used in
the space provided.
R1(config-subif)# ip address 192.168.1.1 255.255.255.0
____________________________________________________________________________________
YES
From PC-A, is it possible to ping the default gateway for VLAN 10? _____
From PC-A, is it possible to ping PC-B? _____
YES
From PC-A, is it possible to ping Lo0? _____
YES
From PC-A, is it possible to ping S2? _____
YES
If the answer is no to any of these questions, troubleshoot the configurations and correct any errors.
Reflection
What are the advantages of trunk-based or router-on-a-stick inter-VLAN routing?
Router-on-a-stick inter-VLAN routing allows for one interface to route to multiple VLANs unlike
_______________________________________________________________________________________
the legacy inter-VLAN method which requires one port per VLAN
_______________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________