Block DHCP requests over VLANs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2012 09:30 AM - edited 03-07-2019 04:17 AM
Hi all,
I have two 3560x Catalyst switches setup between two different locations. They link via a PTP line (Layer 2).
I have setup Intervlan routing between the switches and that works fine.
Each location has a separate subnet and a Windows DHCP server for each subnet.
I want to block any DHCP requests to be sent from hosts on one subnet to the DHCP server on the other side (i.e across the PTP link)
What is the best method to do this?
Thanks for your help
- Labels:
-
Other Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2012 05:24 PM
Hi,
You can try something like this for each vlan:
ip access-list extended dhcp
deny udp any any eq bootpc
then under the vlan interface (SVI)
ip access-group dhcp out
HTH

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2012 10:49 PM
Hi Michael,
If you have a seperate DHCP servers for different VLAN then by default the DHCP request from one VLAN will not go into any other VLAN as these requests are broadcast which will not cross the layer 3 boundary.
Regards,
Talha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2012 11:03 PM
Hi Hi Michael,
First of all if you want send the DHCP requests from on subnet (vlan) to another subnet, you need to point the dhcp server under specific vlan "ip helper xx.xx.xx.xx"
So if you dont want send dhcp requests then you dont put the above "ip helper" command, if it is there then you can remove it from the vlan.
Hope the above helps you, if not please let us know the exact requirement.
Please rate all the helpfull posts.
Regards,
Naidu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2012 08:46 AM
Thanks a lot guys
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2012 10:17 PM
Hi Michael,
Looks your issue is resolved.
Please remember to rate all the helpfull posts which encourage others throughout this great CSC.
Please rate all the helpfull posts.
Regards,
Naidu.
