09-28-2009 02:00 PM - edited 03-06-2019 07:54 AM
Is there a command to limit DHCP Server address distribution to just the vlan it reside?
Thanks
09-28-2009 02:04 PM
You can prevent a dhcp server from issuing addresses to other VLANs by the following:
- make sure no layer3 interfaces for other vlans have the "ip helper" address configured to point at this server. "ip helper" tells a layer 3 switch or router to send dhcp broadcasts from clients as unicast to this specific server.
- Make sure you have broadcast domains separated properly, so DHCP broadcasts from other subnets don't bleed into this one.
- configure your dhcp server so it only takes requests from certain subnets -- not available on the built-in cisco dhcp server.
You can learn more about the dhcp relay agent (ip helper) here:
http://www.cisco.com/en/US/docs/ios/ipaddr/configuration/guide/iad_dhcp_rly_agt.html#wp1085170
Hope that helps. Rate if it does!
Cheers,
Tim
09-28-2009 02:36 PM
Hi Tim,
Thanks for this information.
I have a dhcp server setup in vlan 4; and, we have another dhcp, production, in vlan 401.
Some how clients from vlan 401 started to receive ip address from the dhcp server in vlan 4.
Each VLAN is configure to have a ip helper-address pointing to its respective dhcp server.
So, I don't understand how the clients from vlan 401 cross to vlan 4 to get an ip address.
By the way, each vlan has a unique broadcast domain.
09-28-2009 02:58 PM
Hi Tim,
Thanks for this information.
I have a dhcp server setup in vlan 4; and, we have another dhcp, production, in vlan 401.
Some how clients from vlan 401 started to receive ip address from the dhcp server in vlan 4.
Each VLAN is configure to have a ip helper-address pointing to its respective dhcp server.
So, I don't understand how the clients from vlan 401 cross to vlan 4 to get an ip address.
By the way, each vlan has a unique broadcast domain.
09-28-2009 08:06 PM
Is there a chance where VLAN 4 and VLAN 401 is connected back to each other in the L2 infra ?
If thats the case, the 2 VLAN will 'crosstalk' in terms of DHCP request broadcast.
If the DHCP servers are only serving its own broadcast domain, then the IP Helper command is not required at all in the VLAN interface configuration.
09-29-2009 03:44 AM
The two vlans are hosted in a 6509. Then, distributed to just network switch where the servers reside.
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