Worksheet - VLANs
Worksheet - VLANs
VLAN VLAN
Switch1 Switch2 ID Name
2. Once you created the desired VLANs, next you need to assign the interfaces
to the desired VLANs. To do so, the following commands are used at the interface
configuration mode.
5. Once you have assigned the appropriate interfaces to the appropriate VLANs,
verify the VLAN configuration by executing the following command.
6. The following figure shows that the VLANs are configured on Switch1.
7. After configuring VLANs on Switch1, next configure the same VLANs (Sales
and Account) and assigned the same interfaces (Fa0/ 1 and fa0/ 2) to the
respective VLANs. If you have any issue, refer the above-mentioned table.
9. Now, you have done the VLAN configurations on both the switches. To verify
your VLAN configuration, open Command Prompt on PC0 and type the following
command:
Ping 10.0.0.2
10. You should not be able to ping even both the PCs are in the same network.
The reason is that PC0 (IP 10.0.0.1, interface Fa0/ 1) and PC1 (IP 10.0.0.2,
interface Fa0/ 2) belong to different VLAN IDs.
Ping 10.0.0.3
11. You should not be able to ping, because we still have not configured VLAN
trunking (covered in the next section) between both the switches.
In the topology that we have used to configure VLANs, we need to execute the
following commands on both the switches.
1. On Switch1, execute the following commands:
4. Once you have enabled VLAN trunking on the respective ports on the switches,
verify your VLAN configuration. To do so, execute the following command on PC0.
▪ ping 10.0.0.2
5. You should not be able to ping even both the PCs are in the same network. The
reason is that PC0 (IP 10.0.0.1, interface Fa0/ 1) and PC1 (IP 10.0.0.2, interface
Fa0/ 2) belong to different VLAN IDs.
▪ ping 10.0.0.3
6. Now you should be able to ping, because we have enabled VLAN trunking
between both the switches. Further, PC0 (IP 10.0.0.1, interface Fa0/ 1 of Switch1)
and PC2 (IP 10.0.0.3, interface F0/ 1 of Switch2) both belong to the same VLAN
ID (Sales 10).
▪ ping 10.0.0.4
7. You should not be able to ping because PC0 (IP 10.0.0.1, interface Fa0/ 1 of
Switch1) and PC3 (IP 10.0.0.4, interface Fa0/ 2 of Switch2) belong to the different
VLAN IDs.