Introduction
Earlier, I wrote an article about VLAN configuration on a Cisco switch. You can read it here: VLAN Configuration on a Cisco Switch
In that article, we learned how to create VLANs and assign ports to them.
In this article, we will go a step further and assign IP addresses to each VLAN. Assigning IP addresses is important because devices in each VLAN can then communicate with other devices in the same VLAN or even in other VLANs (if routing is configured).
We will configure these VLANs on switch S1:
IT - VLAN 10 - 172.16.10.0/24
HR - VLAN 20 - 172.16.20.0/24
SALES - VLAN 30 - 172.16.30.0/24
GUEST - VLAN 40 - 172.16.40.0/24
Step 1. Create VLANs on S1
First, make sure the VLANs exist