Assigning IP Addresses to VLANs on Cisco Switch

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


🌟 Upgrade to C# Corner Premium

Unlock Exclusive Features, Tools & Rewards!

  • 💰 Earn money for your writing
  • 🎯 All CSharp member benefits included
  • ⚡ Give 4x more to the writers you read
  • 📖 Read unlimited premium content
  • 📝 Convert blogs & articles to PDF without watermark
  • 🤝 Support writers you read most
×
Upgrade to C# Corner Premium Membership

Unlock Exclusive Features, Tools & Rewards!

  1. 📚 Unlimited ebook downloads — no daily limit
  2. 🎓 Access exclusive certifications & earn bonus tokens
  3. 📝 Convert blogs & articles to PDF without watermark
  4. 🧠 Use SharpGPT AI Assistant with unlimited queries
  5. 🎁 Redeem tokens earned by posting articles and videos for cash and gifts
  6. 💬 Unlimited direct messaging with experts & MVPs
  7. 🏅 Premium ribbon & verified checkmark on your profile
  8. 🎨 Customize your avatar with premium animated frames
Subscribe to Premium