Score:0

Getting IP address from another subnet's DHCP

bs flag

As in the diagram below I have two routers on two different subnets. I connected them together but have not set static routes yet.

Network Diagram

However, when connecting from Access Point A's SSID, I get an IP from Router B on its network (192.168.2.x), and when connecting via Access Point B, I get an IP from Router A (192.168.0.x). Also, the DHCP relay function is disabled on Router A (EdgeRouter X), but didn't find that option on Router B (TP-Link R470T+).

How to make sure only the DHCP server on the same network responds to DHCP requests? I am trying to block UDP ports 67/68 on the outgoing interface of the Edgerouter without any success so far, but I hoped there might be a more straightforward solution.

Thank you.

Jaromanda X avatar
ru flag
so AP A **always** gives a router B address and AP B **always** gives a router A address? perhaps your network is *actually* wired with AP A connected to Router B and AP B connected to Router A? That would definitely produce the result you're apparently observing - try swapping AP's around
Reedz avatar
bs flag
@JaromandaX The AP are definitely connected to the right routers (the individual networks have always been separate before and the AP's SSID are distinct to each network)
Score:0
bs flag

I found the issue was due to misconfiguring the IP address of the Edgerouter interfaces, now all is working as it should, thank you.

Score:0
ru flag

Without a relay, it's not possible for a DHCP server to respond to DHCP discoveries/requests from another subnet / layer 2 segment.

DHCP discovery or request are sent to the (limited) broadcast address, and broadcasts are not forwarded by a router.

The situation you describe is only possible when there is a relay (consumer routers don't relay) or when your diagram is incorrect.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.