cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3186
Views
0
Helpful
3
Replies

Disable ALL DHCP in a particular VLAN

Mike Assel
Level 4
Level 4

On a catalyst switch I have two VLANs. I have a need to configure a DHCP server on the switch for one VLAN but not the other. The issue is that on the VLAN with no DHCP server configured, the switch is still sending a DHCPNACK when it receives a DHCPREQUEST. The DHCPNACK is causing an application I am running in that VLAN to have issues. I was expecting that if DHCP was not configured for a VLAN the switch wouldn't send any sort of DHCP response. Is there a way to block these NACKs or suppress them somehow?  Thanks, Mike

 

 

 

1 Accepted Solution

Accepted Solutions

Hello,

 

can't you just put an access list on the SVI of the VLAN ?

 

ip access-list extended BLOCK_DHCP
deny udp any any eq bootpc
deny udp any any eq bootps
permit ip any any
!
interface Vlan20
ip access-group BLOCK_DHCP in

View solution in original post

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

Can you post the full configuration to have a look.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

 

can't you just put an access list on the SVI of the VLAN ?

 

ip access-list extended BLOCK_DHCP
deny udp any any eq bootpc
deny udp any any eq bootps
permit ip any any
!
interface Vlan20
ip access-group BLOCK_DHCP in

That was my next question :) I tried to create an ACL to do just that but I guess I did it wrong. Your ACL did the trick. Thanks so much for the assist @Georg Pauwen.

 

Mike

Review Cisco Networking products for a $25 gift card