how to associate subnet with vlan

Posted on 2011-03-22
Last Modified: 2012-05-11
I would like to find how can we configure VLAN associate with particular subnet , so that once port is assigned to particular vlan , device attached to this port it receives ip add from particular subnet.

Question by:shindasingh
  • 4
  • 2

Expert Comment

ID: 35195788
Assing the VLAN an IP Address (or connect to a router).  Ensure the router from that vlan to the dhcp forwards DHCP packets. (on cisco it will be an "ip helper" setting).

then DHCP will then get a request "forwarded" from that network and know which pool to assign the IP from.


Author Comment

ID: 35203603
M Walker,,

Thanks ,, If yoy could explain further Like with examples of commands , I am actually not Cisco expert So please assist further..


Accepted Solution

m_walker earned 500 total points
ID: 35203631
Setup the vlan (if it does not exist)
config term
vlan <id>
   name some-name

exit back to the top config level (exit once)

interface vlan <some id as above>
description <some description if you want, not needed be helps>
ip address <ip address> <subnet mask>
ip helper-address <ip of your dhcp server>

exit back on level

You will need to ensure you can route from the swich (ping your dhcp ip) to test
Also ensure the vlan itself is routing ok (set a static IP on the remote computer with the VLAN IP address as its gateway.

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.


Author Comment

ID: 35204399
Thanks Walker..

It worked for me..

Expert Comment

ID: 35204425
Any reason why I did not get any points for the solution?

Expert Comment

ID: 35206318
As per my last post.  I would like to know why I did not get any points.

I beleive this post shows I helped.

shindasingh:Thanks Walker..

It worked for me..


Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Simple Network: And the Default Gateway is? 5 75
Monitoring Exchange 2013 8 121
SonicWALL - Static Route a VLAN 8 68
Read-only SNMP string example ? 7 89
This article is in response to a question ( here at Experts Exchange. The Original Poster (OP) requires a utility that will accept a list of IP addresses …
The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question