AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

DHCP and multiple interfaces

Open ainar-g opened this issue 4 years ago • 12 comments

Currently, we only allow users to select one interface on which AGH serves DHCP. That model doesn't quite work when you have e.g. a router that also has some machines connected to it over WAN.

We could either allow multiple DHCP setting sets or maybe add a new pseudointerface value like “Serve on all interfaces”.

Either way, this may complicate some other parts of the logic, for example the selection of the gateway IP address and IP ranges.

@ameshkov, please tell us what you think.

ainar-g avatar Sep 02 '21 11:09 ainar-g

Our DHCP server is supposed to be really simple and covering cases like that seems to be out of scope, at least at this point.

ameshkov avatar Sep 02 '21 11:09 ameshkov

@ameshkov, we already have a couple of issues where people mention that their WLAN+WAN setups don't work correctly. See, for example, #3366, #3480, and possibly #3462. The previous versions sometimes work, because they implemented the RFCs a bit incorrectly on some OSes. We will try to restore the old “incorrect” behaviour in v0.107.0, but this problem will remain an issue for us unless we either solve this on AGH's level or come up with several sets of workarounds for every supported OS (e.g. virtual interfaces and such).

ainar-g avatar Sep 02 '21 11:09 ainar-g

We'll probably return to this question after v0.107.0 is out and the refactoring of v0.108.0 will look good enough.

ainar-g avatar Sep 02 '21 12:09 ainar-g

I was about to request this. I have a router erlite with WAN+2LAN, and each LAN needs a dhcp server.

EDIT: The http bind_host should be multiple, like the dns bind_hosts

Azureit avatar Sep 07 '21 18:09 Azureit

Would also like to see this, I have a setup with 6 internal VLANs and I would like to get AGH to serve DHCP across all of them...

tescophil avatar Jul 10 '22 09:07 tescophil

+1 on this feature.

kiwilad-nz avatar Aug 18 '22 00:08 kiwilad-nz

Please refrain from comments like “+1”. A :+1: emoji on the top comment is enough. Thanks.

ainar-g avatar Aug 18 '22 11:08 ainar-g

Has there been any progress on this issue yet? I'm also in need to serve DHCP leases to multiple vlans/subnets

IllicLanthresh avatar Feb 21 '23 08:02 IllicLanthresh

+1

cank79 avatar May 20 '23 04:05 cank79

I honestly don't know how requests for this feature from almost 4 years ago have still not been implemented. Does AdGuard not understand the importance of being able to handle this? Just seems to be falling on deaf ears...

ajtatum avatar Jul 02 '23 23:07 ajtatum

hi, is this feature coming soon, is it on the roadmap?

sigarcher avatar May 18 '24 11:05 sigarcher

With proliferation of "homelab"/"self hosted" setups, multi-VLAN is becoming more common, so support for multiple interfaces is something that will be issue for manny potential users.

alexindigo avatar Oct 19 '24 03:10 alexindigo

This gets my vote too! I have an IoT VLAN and a day to day VLAN. Currently running two instances of ADGuard on each network not the best solution but it works. It would be an awesome feature to serve DHCP on multiple subnets.

StumpyRob avatar Dec 20 '24 11:12 StumpyRob

Same use-case for me. One AdGuard Home server, acting as DHCP and DNS server for multiple networks.

Rather than serving DHCP on multiple interfaces, AdGuard Home could support DHCP requests forwarded from DHCP Relays. This is exactly what DHCP relay is meant for, and it simplifies the logic needed in AdGuard Home.

It could be something like having multiple DHCP setting sets as mentioned by ainar-g, and AdGuard will respond with the Default Gateway/DNS/IP Lease information based on which relay the request came from, or if the DHCP request was seen directly on the AdGuard server's interface then it responds with the default settings like today.

Junto026 avatar Dec 25 '24 15:12 Junto026

I'll add to this to keep this alive. I am using AdGuard as a DHCP server, and my router is a dhcp-relay. This works beautifully, now we just need multiple subnet support. Even mums and dads are vlanning their kids network these days, think guest wifi.

nzsambo avatar Apr 13 '25 20:04 nzsambo