Switch#show vlan brief
Task:
Create VLAN10 & VLAN20 on SW1
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW1
SW1(config)#vlan 10
SW1(config-vlan)#name USERS
SW1(config-vlan)#exit
SW1(config)#vlan 20
SW1(config-vlan)#name SERVERS
SW1(config-vlan)#exit
SW1(config)#exit
SW1#show vlan brief
Task:
Assign FastEthernet 0/1 and FastEthernet 0/2 in VLAN10 and FastEthernet 0/3 and FastEthernet 0/4 in VLAN20
SW1#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#interface range fastEthernet 0/1-2
SW1(config-if-range)#switchport mode access
SW1(config-if-range)#switchport access vlan 10
SW1(config-if-range)#exit
SW1(config)#interface range f0/3-4
SW1(config-if-range)#switchport mode access
SW1(config-if-range)#switchport access vlan 20
SW1(config-if-range)#end
SW1#show vlan brief
Assign the IP Configuration to the devices in VLAN10 & VLAN20. You will see that the devices which are in VLAN10 can only communicate with the devices which are in VLAN10.
Similarly, the devices in VLAN20 can only ping the devices which are in VLAN20. This is because the devices are in two different broadcast domains. So they won’t be able to ping each other.
Once we configure Inter-vlan Routing then these devices will be able to ping each other.
Add comment