how to associate subnet with vlan

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.

Shinda
shindasinghAsked:
Who is Participating?
 
m_walkerConnect With a Mentor Commented:
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.

0
 
m_walkerCommented:
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.


0
 
shindasinghAuthor Commented:
M Walker,,

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

Shinda
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
shindasinghAuthor Commented:
Thanks Walker..

It worked for me..
0
 
m_walkerCommented:
Any reason why I did not get any points for the solution?
0
 
m_walkerCommented:
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..



0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.