Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1439919

DHCP via bridge in case of IPv4

From Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Newsgroups linux.kernel
Subject DHCP via bridge in case of IPv4
Date 2016-07-09 10:40 +0200
Message-ID <rSVXP-tW-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

I was playing with quite simple bridged setup on different boards with
very recent kernels (4.6.3 as of this writing) and found one interesting
behavior that I cannot yet understand and googling din't help here as well.

My setup is pretty simple:
-------------+AKAAoACgAKAAoACgAKA-------------------+AKAAoACgAKAAoACgAKA--------------------------
+AHw- HOST+AKAAoACgAKAAoACgAHwAoACgAKAAoACgAKAAoAB8- +ACI-Dumb AP+ACIAoACgAKAAoACgAKAAfACgAKAAoACgAKAAoACgAHw- Wireless client+AKAAoACgAKAAoACgAKAAfA-
+AHw- with DHCP +AHwAPA------+AD4-(eth0)+AKAAoACgAKAAoA-(wlan0)+ADw------+AD4AfA- attempting to+AKAAoACgAKAAoACgAKAAoACgAHw-
+AHw- server+AKAAoACgAKAAfACgAKAAoACgAKAAoACgAHwAoACgAKAAoABc- br0 /+AKAAoACgAKAAoAB8AKAAoACgAKAAoACgAKAAfA- get settings via DHCP +AHw-
-------------+AKAAoACgAKAAoACgAKA-------------------+AKAAoACgAKAAoACgAKA--------------------------

+ACo- HOST is my laptop with DHCP server that works for sure.
+ACo- +ACI-Dumb AP+ACI- is a separate board (I tried ARM-based Wandboard and ARC-based
+AKA- AXS10x boards but results are exactly the same) with wired (eth0) and wireless
+AKA- (wlan0) network controllers bridged together (br0). That +ACI-br0+ACI- bridge flawlessly
+AKA- gets its settings from DHCP server on host.
+ACo- Wireless client could be either a smatrphone or another laptop etc but
+AKA- what's important it should be configured to get network settings by DHCP as well.

So what happens +ACI-br0+ACI- always gets network settings from DHCP server on HOST.
That's fine. But wireless client only reliably gets settings from DHCP server
if IPv6 is enabled on +ACI-Dumb AP+ACI- board. If IPv6 is disabled I may see that
wireless client sends +ACI-DHCP Discover+ACI- then server replies with +ACI-DHCP Offer+ACI- but
that offer never reaches wireless client.

Well actually sometimes very-very rarely that offer may reach wireless client but
I cannot understand how to reproduce it reliably.

Still looks like enabling of IPv6 fixes that issue.

So my question here is: why I see that difference with IPv4 vs IPv6?

One sidenote:
+AKA- Somehow I figured out that in case of IPv4 so-called routing
+AKA- cache is absent (it was removed in Linux kernel 3.6) while with IPv6 it
+AKA- still exist. And assuming my hardware is sane and no data gets lost I may
+AKA- think that it's really a routing problem and missing routing cache might
+AKA- be an answer. Still being a noob in networking stuff I'd like to get a bit
+AKA- better explanation of things I see.

All thoughts and comments are more than welcome.

Regards,
Alexey

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

DHCP via bridge in case of IPv4 Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-07-09 10:40 +0200
  Re: [LEDE-DEV] DHCP via bridge in case of IPv4 Aaron Z <aczlan+ledev@gmail.com> - 2016-07-09 13:50 +0200
    Re: [LEDE-DEV] DHCP via bridge in case of IPv4 Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-07-09 14:10 +0200
      Re: [LEDE-DEV] DHCP via bridge in case of IPv4 Russell Senior <russell@personaltelco.net> - 2016-07-10 09:30 +0200
        Re: [LEDE-DEV] DHCP via bridge in case of IPv4 Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-07-11 08:20 +0200

csiph-web