Re: [LEDE-DEV] DHCP via bridge in case of IPv4

From: Alexey Brodkin
Date: Sat Jul 09 2016 - 08:05:21 EST


Hi Aaron,

On Sat, 2016-07-09 at 07:47 -0400, Aaron Z wrote:
+AD4- On Sat, Jul 9, 2016 at 4:37 AM, Alexey Brodkin
+AD4- +ADw-Alexey.Brodkin+AEA-synopsys.com+AD4- wrote:
+AD4- +AD4-
+AD4- +AD4- Hello,
+AD4- +AD4-
+AD4- +AD4- I was playing with quite simple bridged setup on different boards with
+AD4- +AD4- very recent kernels (4.6.3 as of this writing) and found one interesting
+AD4- +AD4- behavior that I cannot yet understand and googling din't help here as well.
+AD4- +AD4-
+AD4- +AD4- My setup is pretty simple:
+AD4- +AD4- -------------+AKAAoACgAKAAoACgAKA-------------------+AKAAoACgAKAAoACgAKA--------------------------
+AD4- +AD4- +AD4-
+AD4- +AD4- +AD4- HOST+AKAAoACgAKAAoACgAHwAoACgAKAAoACgAKAAoAB8- +ACI-Dumb AP+ACIAoACgAKAAoACgAKAAfACgAKAAoACgAKAAoACgAHw- Wireless client+AKAAoACgAKAAoACgAKAAfA-
+AD4- +AD4- +AD4- with DHCP +AHwAPA------+AD4-(eth0)+AKAAoACgAKAAoA-(wlan0)+ADw------+AD4AfA- attempting to+AKAAoACgAKAAoACgAKAAoACgAHw-
+AD4- +AD4- +AD4- server+AKAAoACgAKAAfACgAKAAoACgAKAAoACgAHwAoACgAKAAoABc- br0 /+AKAAoACgAKAAoAB8AKAAoACgAKAAoACgAKAAfA- get settings via DHCP +AHw-
+AD4- +AD4- -------------+AKAAoACgAKAAoACgAKA-------------------+AKAAoACgAKAAoACgAKA--------------------------
+AD4- +AD4-
+AD4- +AD4- +ACo- HOST is my laptop with DHCP server that works for sure.
+AD4- +AD4- +ACo- +ACI-Dumb AP+ACI- is a separate board (I tried ARM-based Wandboard and ARC-based
+AD4- +AD4- +AKA- AXS10x boards but results are exactly the same) with wired (eth0) and wireless
+AD4- +AD4- +AKA- (wlan0) network controllers bridged together (br0). That +ACI-br0+ACI- bridge flawlessly
+AD4- +AD4- +AKA- gets its settings from DHCP server on host.
+AD4- +AD4- +ACo- Wireless client could be either a smatrphone or another laptop etc but
+AD4- +AD4- +AKA- what's important it should be configured to get network settings by DHCP as well.
+AD4- +AD4-
+AD4- +AD4- So what happens +ACI-br0+ACI- always gets network settings from DHCP server on HOST.
+AD4- +AD4- That's fine. But wireless client only reliably gets settings from DHCP server
+AD4- +AD4- if IPv6 is enabled on +ACI-Dumb AP+ACI- board. If IPv6 is disabled I may see that
+AD4- +AD4- wireless client sends +ACI-DHCP Discover+ACI- then server replies with +ACI-DHCP Offer+ACI- but
+AD4- +AD4- that offer never reaches wireless client.
+AD4-
+AD4-
+AD4- Do you have WDS enabled? If not, DHCP has issues in that scenario:
+AD4- https://wiki.openwrt.org/doc/howto/clientmode

I don't have WDS enabled. I tried to have as simple setup as possible.
Still from what I see in the Wiki article above problem happens when
there're 4 devices in the chain, right? Because as it says:
------------------------+AD4-8------------------------
The 802.11 standard only uses three MAC addresses for frames transmitted between
the Access Point and the Station. Frames transmitted from the Station to the AP
don't include the ethernet source MAC of the requesting host and response frames
are missing the destination ethernet MAC to address the target host behind the
client bridge.
------------------------+AD4-8------------------------

But in my case I only have 3 devices in the chain so I would think it's
something else but issue described in the article.

Anyways thanks for the hint.

-Alexey