10-10-2012 03:19 AM - edited 03-04-2019 05:48 PM
I know how to give the dynamic ip by router to its networks.
But i like to give the dynamic ip to vlan by L3 switch.
Is it possible?:?? I want a help?
Solved! Go to Solution.
10-10-2012 04:18 AM
Hi,
enable
config t
service dhcp
ip dhcp excluded-address x.x.x.x x.x.x.x ---> range of static IPs you want to exclude from dhcp pool
no ip dhcp conflict-logging
ip dhcp pool mypool
network x.x.x.x / x ---> subnet + prefix length
default router x.x.x.x ---> the default gateway: address of the vlan interface in same subnet as the pool
dns-server x.x.x.x x.x.x.x ----> the dns servers
Regards.
Alain
Don't forget to rate helpful posts.
10-10-2012 03:56 AM
Hi,
you can use a switch as DHCP server without any problem.
the configuration is the same but to be sure just activate the service first: service dhcp in global config
Regards.
Alain
Don't forget to rate helpful posts.
10-10-2012 04:00 AM
Thank you sir,,,,can u say the switching commands for that..............i am waiting for that
10-10-2012 04:18 AM
Hi,
enable
config t
service dhcp
ip dhcp excluded-address x.x.x.x x.x.x.x ---> range of static IPs you want to exclude from dhcp pool
no ip dhcp conflict-logging
ip dhcp pool mypool
network x.x.x.x / x ---> subnet + prefix length
default router x.x.x.x ---> the default gateway: address of the vlan interface in same subnet as the pool
dns-server x.x.x.x x.x.x.x ----> the dns servers
Regards.
Alain
Don't forget to rate helpful posts.
10-10-2012 05:28 AM
very very thank you sir.............but i have one doubt.......i.e
we have one dhcp server for providing ip to vlan(different)
suppose if i am configuring l3 switch as dhcp to provide ip to vlan(differnt).
Is there any wrong that 2 dhcp server in network?
10-10-2012 06:02 AM
Hi,
if you've got multiple servers then the fastest one to respod to DHCP discover will be the one providing the IP.
if the router is in another subnet and you can't communicate with it then it won't be no problem.
tell us exactly what you wanrt to achieve.
Regards.
Alain
Don't forget to rate helpful posts.
10-10-2012 06:35 AM
am already having one dhcp server on network.....it will give ip to one vlan
now am going to configuring router as dhcp....to provide ip to another vlan......
so is there any by this?./...........this is my question..........
10-10-2012 06:40 AM
Hi,
are these 2 servers on same subnet? if not then the vlan that is attached to the switch dhcp server will be broadcasting the dhcp discovers and so if you've got no dhcp relay agent configured the other server will never see a discover message so it won't be a problem.
Regards.
Alain
Don't forget to rate helpful posts.
10-10-2012 07:06 AM
very very thank you sir.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide