public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell Senior <russell@personaltelco.net>
To: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Cc: "aczlan+ledev\@gmail.com" <aczlan+ledev@gmail.com>,
	"netdev\@vger.kernel.org" <netdev@vger.kernel.org>,
	"lede-dev\@lists.infradead.org" <lede-dev@lists.infradead.org>,
	"davem\@davemloft.net" <davem@davemloft.net>,
	"linux-snps-arc\@lists.infradead.org" 
	<linux-snps-arc@lists.infradead.org>,
	"linux-kernel\@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [LEDE-DEV] DHCP via bridge in case of IPv4
Date: Sun, 10 Jul 2016 00:19:43 -0700	[thread overview]
Message-ID: <87shviklio.fsf@husum.klickitat.com> (raw)
In-Reply-To: <1468065830.5007.10.camel@synopsys.com> (Alexey Brodkin's message of "Sat, 9 Jul 2016 12:05:07 +0000")

>>>>> "Alexey" == Alexey Brodkin <Alexey.Brodkin@synopsys.com> writes:

Alexey> Hi Aaron,
Alexey> On Sat, 2016-07-09 at 07:47 -0400, Aaron Z wrote:
>> On Sat, Jul 9, 2016 at 4:37 AM, Alexey Brodkin
>> <Alexey.Brodkin@synopsys.com> wrote:
>> > 
>> > 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: >
>> -------------       ------------------       -------------------------
>> > > 
>> > > HOST      |       | "Dumb AP"      |       | Wireless
>> client       | > > with DHCP |<----->(eth0)     (wlan0)<----->|
>> attempting to         | > > server    |       |    \ br0
>> /     |       | get settings via DHCP | >
>> -------------       ------------------       -------------------------
>> > 
>> > * HOST is my laptop with DHCP server that works for sure.  > *
>> "Dumb AP" is a separate board (I tried ARM-based Wandboard and
>> ARC-based >   AXS10x boards but results are exactly the same) with
>> wired (eth0) and wireless >   (wlan0) network controllers bridged
>> together (br0). That "br0" bridge flawlessly >   gets its settings
>> from DHCP server on host.  > * Wireless client could be either a
>> smatrphone or another laptop etc but >   what's important it should
>> be configured to get network settings by DHCP as well.
>> > 
>> > So what happens "br0" 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 "Dumb AP" board. If
>> IPv6 is disabled I may see that > wireless client sends "DHCP
>> Discover" then server replies with "DHCP Offer" but > that offer
>> never reaches wireless client.
>> 
>> 
>> Do you have WDS enabled? If not, DHCP has issues in that scenario:
>> https://wiki.openwrt.org/doc/howto/clientmode

If the Dumb AP's wireless interface is in ap-mode, then this shouldn't
be an issue.  It's only client-mode interfaces that have trouble with bridging.

I'd suggest running tcpdump on the Dumb AP's wireless interface and the
client's wireless interface and see which of them sees the various parts
of the DHCP handshake.


-- 
Russell Senior, President
russell@personaltelco.net

  reply	other threads:[~2016-07-10  7:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-09  8:37 DHCP via bridge in case of IPv4 Alexey Brodkin
2016-07-09 11:47 ` [LEDE-DEV] " Aaron Z
2016-07-09 12:05   ` Alexey Brodkin
2016-07-10  7:19     ` Russell Senior [this message]
2016-07-11  6:15       ` Alexey Brodkin
2016-08-16  5:57         ` Alexey Brodkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87shviklio.fsf@husum.klickitat.com \
    --to=russell@personaltelco.net \
    --cc=Alexey.Brodkin@synopsys.com \
    --cc=aczlan+ledev@gmail.com \
    --cc=davem@davemloft.net \
    --cc=lede-dev@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-snps-arc@lists.infradead.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox