Lab #9

A switch with two isolated VLANs

The purpose of this lab is to show how VLANs create separate broadcast domains.

Experiment steps

  1. Recreate the following topology in GNS3. Choose the "GNS3 VM" server to instantiate all the devices of this lab.
  2. lab4-topology
  3. When the devices are still inactive, right-click on the SW1 switch icon and configure it as follows:
  4. Start all devices.
  5. Open PC1 terminal and execute the command:
    ip 10.10.1.2/24 10.10.1.1
  6. Open PC2 terminal and execute the command:
    ip 10.10.1.3/24 10.10.1.1
  7. Open PC3 terminal and execute the command:
    ip 10.10.2.2/24 10.10.2.1
  8. Open PC4 terminal and execute the command:
    ip 10.10.2.3/24 10.10.2.1
  9. Notice that PC1 and PC2 are configured with a default gateway address 10.10.1.1, but, in fact, this address is not associated to any device.
    Likewise, PC3 and PC4 are configured with a default gateway address 10.10.2.1, but, in fact, this address is not associated to any device.

  10. In PC1 terminal execute the command:
    ping 10.10.1.3
    and verify that answers are received from PC2.
    ping 10.10.2.2
    and verify that answers are NOT received from PC3.

  11. PC1-terminal
     
  12. In PC3 terminal execute the command:
    ping 10.10.2.3
    and verify that answers are received from PC4.
    ping 10.10.1.2
    and verify that answers are NOT received from PC1.

Since there is no inter-VLAN routing, the two VLANs are isolated.
Hence, PC1 can only ping PC2, while PC3 can only ping PC4.


Return to list of labs

Copyright (c) 2024 - Roberto Canonico

Last updated: 24/09/2024 by Roberto Canonico