You are on page 1of 3

Lab 5

Basic Inter-VLAN Routing


Learning Objectives:
In this lab, students will learn how to configure a router to pass traffic from one VLAN to another VLAN.
Students will learn Inter-VLAN routing.

Physical Topology:

Background/Preparation
Cable a network similar to the one in the diagram. The configuration output used in this lab is produced
from a 2960 series switch. Any other switch used may produce different output. Select the “Command
Line” option from the menu to perform the steps for this lab.
Step 1: Configuring VLAN

a. Create VLAN 2 on Switch0

b. Add PC2 to VLAN2

c. Check Vlan status by using the command below


Switch(config)#shvlan brief

Note: PC1 will remain in VLAN1

Step 2: Assigning IP addresses to the computers

PC1: IP address 192.168.1.1


Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.5

PC2: IP address: 192.168.2.1


Subnet Mask: 255.255.255.0
Default Gateway: 192.168.2.5

a. PING PC1 > PC2


b. Were you able to PING ________

Step 3: Create a trunk between Switch and a Router

Switch(config)#interface fastethernet 0/3


Switch(config-if)#switchport mode trunk

Step 4: Configuring Router

Router(config-if)#interface fastethernet 0/0.1


Router(config-subif)#encapsulation dot1q 1
Router(config-subif)#ip address 192.168.1.5 255.255.255.0
Router(config-if)#interface fastethernet 0/0.2
Router(config-subif)#encapsulation dot1q 2
Router(config-subif)#ip address 192.168.2.5 255.255.255.0
Step 5: Displaying Routing Table

a. Type show ip route at the privileged EXEC mode prompt.


b. Are there entries in the routing table? ___________________________________
c. What interface are they all pointing to? __________________________________

Step 6: Verifying the result

a. PING PC1 > PC2


b. Were you able to PING ________

Conclusion:
______________________________________________________________________

______________________________________________________________________

______________________________________________________________________

Learning Outcomes:
______________________________________________________________________

______________________________________________________________________

______________________________________________________________________

You might also like