A step-by-step graphical guide to subnets, VLAN creation, port mapping, and ping verification.
In this lab, we have a switch connected to 6 computers. Our task is to separate these computers into three logical networks (VLANs). Devices in different subnets should not be able to talk to each other without a router, but devices inside the same VLAN should be able to communicate perfectly.
| VLAN ID | VLAN Name | Subnet Range | Associated PCs | Expected Switch Ports |
|---|---|---|---|---|
| 10 | VLAN_10 | 192.168.10.0/24 |
PC0, PC1 | FastEthernet0/1, FastEthernet0/2 |
| 20 | VLAN_20 | 192.168.20.0/24 |
PC2, PC3 | FastEthernet0/3, FastEthernet0/4 |
| 30 | VLAN_30 | 192.168.30.0/24 |
PC4, PC5 | FastEthernet0/5, FastEthernet0/6 or 0/8 |
Each PC needs a static IP within its assigned subnet range so it can communicate on the IP layer.
192.168.10.1. Click on the Subnet Mask input field, and it will fill in 255.255.255.0. Close the window.192.168.10.2 (Subnet Mask: 255.255.255.0)192.168.20.1 (Subnet Mask: 255.255.255.0)192.168.20.2 (Subnet Mask: 255.255.255.0)192.168.30.1 (Subnet Mask: 255.255.255.0)192.168.30.2 (Subnet Mask: 255.255.255.0)Next, we must register the VLAN IDs and Names inside the switch so it knows these networks exist.
10 in the VLAN Number box.VLAN_10 in the VLAN Name box.20 in the VLAN Number box.VLAN_20 in the VLAN Name box.30 in the VLAN Number box.VLAN_30 in the VLAN Name box.By default, every port is in VLAN 1. We must configure specific ports to access our new VLAN subnets.
Let's verify that the VLAN configurations successfully block outside traffic but allow internal communications.