linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel Glöckner" <daniel-gl@gmx.net>
To: Alfonso Fiore <alfonso.fiore@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: how to setup a wireless bridge (wds) without iwpriv?
Date: Thu, 2 Feb 2012 20:29:06 +0100	[thread overview]
Message-ID: <20120202192906.GA1592@minime.bse> (raw)
In-Reply-To: <CAO=xpBGPi7o+gi3bTb=9iML=bSqBog6okz-Z7X7tywqiwb=FaA@mail.gmail.com>

Hi Alfonso,

On Thu, Feb 02, 2012 at 07:22:30PM +0100, Alfonso Fiore wrote:
> Since wireless on my PC doesn't work properly, I'd like to create a
> wireless bridge to allow a PC to get an IP address from the wireless
> network without NAT.
> 
> (ISP wireless router - 192.168.1.1) <---wireless---> (ALIX setup as
> bridge) <---wired---> (PC - 192.168.1.x)

I use proxy ARP to achieve this with WPA:

route add -net 192.168.1.0/25 dev wlan0
route add -net 192.168.1.128/25 dev eth0
echo 1 >/proc/sys/net/ipv4/conf/wlan0/proxy_arp
echo 1 >/proc/sys/net/ipv4/conf/eth0/proxy_arp
echo 1 >/proc/sys/net/ipv4/ip_forward

But it only works if you know beforehand on which interface your ALIX
will see an IP address. You could run the DHCP server on your ALIX to
make it more deterministic.

  Daniel

  reply	other threads:[~2012-02-02 19:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-02 18:22 how to setup a wireless bridge (wds) without iwpriv? Alfonso Fiore
2012-02-02 19:29 ` Daniel Glöckner [this message]
2012-02-03  3:16   ` Alfonso Fiore
2012-02-03  3:49     ` Alfonso Fiore

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=20120202192906.GA1592@minime.bse \
    --to=daniel-gl@gmx.net \
    --cc=alfonso.fiore@gmail.com \
    --cc=linux-wireless@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;
as well as URLs for NNTP newsgroup(s).