Lab Manual For Computer Communication & Networks: (LAB-11) (Configuration of Inter Virtual LAN's)
Lab Manual For Computer Communication & Networks: (LAB-11) (Configuration of Inter Virtual LAN's)
Lab Manual For Computer Communication & Networks: (LAB-11) (Configuration of Inter Virtual LAN's)
4.1 Task1:
Construct a topology that have two switches attached with each other with copper
cross through wire and four PC’s attached with them, a pair with each switch,
configure inter Virtual LAN in this configuration and show the results.
7. Now add notes on the workspace in the front of every network entity with IP
address and also mention the name of virtual LAN.
17. To verify that the name has been given to the Virtual LAN’s, write command
show vlan brief.
18. The results will be like this:
Capital University of Science and Technology Islamabad
Department of Computer Science,
Faculty of Computing
19. Now again come in the configuration mode and for the configuration of Vlan
on the switch 1, go in the configuration of interface fa 0/1 and write command
switchport access vlan 10 and press enter and write command exit and
press enter.
20. In the same way go in the configuration of fa 0/2 and write command
switchport access vlan 20 and press enter and write command exit and
press enter.
21. The command line interface of the switch 1 should be like this:
Capital University of Science and Technology Islamabad
Department of Computer Science,
Faculty of Computing
22. For verification of vlan configuration write command do show vlan. You
should receive these results:
25. After this configure trunk mode in switch 1 by going in the configuration mode
of switch 1 and write command interface fa 0/24 and press enter.
26. For enabling of trunk mode in switch 1 write command switchport mode
trunk and press enter and write command exit and press enter.
Capital University of Science and Technology Islamabad
Department of Computer Science,
Faculty of Computing
27. After this provide IP addresses in all PC’s as mentioned in the text, also
provide subnet masks and default gateways. As provided in PC0, do same for
all.
Capital University of Science and Technology Islamabad
Department of Computer Science,
Faculty of Computing
28. Now after developing VLAN’s successfully we have to do inter VLAN routing
for this we will add a router.
29. Connect router with copper straight through wire to fa 0/3 port with fa 0/0 port
of the router.
30. The connections can be seen in the figure below:
Capital University of Science and Technology Islamabad
Department of Computer Science,
Faculty of Computing
37. After exciting these steps, write command exit and configure interface fa0/0.1
and do encapsulation of dot1Q for configuration of VLAN 10 inter VLAN
routing, also provide network address with subnet mask write commands:
Interface fa 0/0.1
Encapsulation dot1Q 10
Ip add 192.168.1.254 255.255.255.0
No shutdown
Exit
38. In the same way write command for configuration inter VLAN routing on
VLAN20, write same commands, with slight changes:
Capital University of Science and Technology Islamabad
Department of Computer Science,
Faculty of Computing
Interface fa 0/0.2
Encapsulation dot1Q 20
Ip add 192.168.2.254 255.255.255.0
No shutdown
Exit
39. You can also see the CLI of the router:
40. For verification of this tasks, ping from PC0 to PC1, you will see the reply will
come from this PC.
Capital University of Science and Technology Islamabad
Department of Computer Science,
Faculty of Computing
5. Evaluation tasks:
5.1 Task 1:
Your task is create 3 VLANS name HR, Sales and customers, first configure VLAN’S, after
configuration of VLAN, configure inter VLAN and ping PC of one VLAN from other.