Cisco Support Community
Community Member

Filtering DHCP by relay agent forwarding IP address

Dear Community!

I would like to create a "filtered DHCP pool", which can assign an IP address regarding relay agent forwarding IP address. So, two remote router has an ip-helper-address configured pointing to the DHCP server router interface.

  • If a DHCP request arrives from remote router #A, we should accept DHCP request and assign an IP address to the remote host.
  • If a DHCP request arrives from another forwarder IP address, the DHCP should reject the request.

Could anyone help me configuring this DHCP server "filtering"?

Thanks and Best Regards,


Everyone's tags (2)

Re: Filtering DHCP by relay agent forwarding IP address

Hi Bela,

Could this be accomplished with an Access Control List on one of the routers?

On the router interface that connects to the DHCP server you could create an inbound access list that drops all traffic originating from the ip helper-address interface IP destined to the DHCP server IP on port 67, that way, no requests from that remote router will get to the DHCP server.

Quick question though, do both the remote sites have the same IP Subnet? If they don't, then you only need to create a DHCP scope for the subnet that you wish to address and then the other one will just be ignored,

Hope this helps,


Community Member

Re: Filtering DHCP by relay agent forwarding IP address

Dear Jonathan!

Thanks for Your answer, unfortunately the problem is more complex. I have created a Visio drawing illustrating the topology. We have only one router for serving IP addresses for these different voice subnets. Because we use L3 in access layer, one DHCP pool is not enough for both subnet. We need to configure another DHCP pool for floor #5 in order to serve IP addresses for IP phones but not for desktop PCs. The DHCP pool has a filter, which permits only Cisco phones.

I have made a WireShark dump, which contains the DHCP discover packet. This packet has a header field named "relay agent forwarding IP address"

Could You suggest a method to "filter" DHCP pool regarding this header field? Is it possible to serve a DHCP client with IP address  regarding which IP helper address forwards the request?

Thanks and BR


CreatePlease to create content