I have tried a lot, but cannot get the interface associated when using a
bridge.

If, for example, I have a normal connection up, the association is lost
as soon as I do "ifconfig wlan0 down" or even "ifconfig wlan0 0.0.0.0
promisc".

Thanks for any help.

Paulo

09-02-2008, 05:16 AM

unix

Re: Bridge with a wlan0 interface using wpa

Paulo da Silva wrote:
[color=blue]
> Hi!
>
> Is it possible to have a bridge with a wlan/wpa interface?[/color]

Definitely yes.
[color=blue]
> How?[/color]

Depends on what exactly you're trying to do:
Bridge on WLAN-Client, Bridge with AdHoc-WLAN or Bridge on WLAN-AP?

So far I have only tried with WLAN-AP but I think generally it's this
procedure:
Bring WLAN-Interface up ('ifconfig wlan0 up' - no promisc, no IP)
Add WLAN-Interface to bridge ('brctl addif <bridge> wlan0')
Configure WLAN-Interface w/ iwconfig or start wpa_supplicant (associate...)
In case of your bridge also being a WLAN-AP bring up necessary additional
software, f.ex. hostapd.
[color=blue]
>
> I have tried a lot, but cannot get the interface associated when using a
> bridge.
>
> If, for example, I have a normal connection up, the association is lost
> as soon as I do "ifconfig wlan0 down" or even "ifconfig wlan0 0.0.0.0
> promisc".[/color]

'ifconfig wlan0 down' disables the interface and therefor association is
lost. Also you don't need to make an interface specifically promisc, adding
it to a bridge does that for you.

HTH,
Felix

09-02-2008, 08:06 AM

unix

Re: Bridge with a wlan0 interface using wpa

Hello,

Paulo da Silva a écrit :[color=blue]
>
> Is it possible to have a bridge with a wlan/wpa interface?[/color]

It depends on your hardware. Bridging a wireless interface relies on its
capability to send frames with a source MAC address other than its own.
See
<http://www.linuxfoundation.org/en/Net:Bridge#It_doesn.27t_work_with_my_Wireless_card.21>
[color=blue]
> If, for example, I have a normal connection up, the association is lost
> as soon as I do "ifconfig wlan0 down" or even "ifconfig wlan0 0.0.0.0
> promisc".[/color]

Why the hell would you want to do that ?

09-02-2008, 12:18 PM

unix

Re: Bridge with a wlan0 interface using wpa

Felix Tiede escreveu:[color=blue]
> Paulo da Silva wrote:
>[color=green]
>> Hi!
>>[/color][/color]
[color=blue][color=green]
>> Is it possible to have a bridge with a wlan/wpa interface?[/color]
>
> Definitely yes.
>[color=green]
>> How?[/color]
>
> Depends on what exactly you're trying to do:
> Bridge on WLAN-Client, Bridge with AdHoc-WLAN or Bridge on WLAN-AP?[/color]
I don't know much about "network" stuff. I want to connect to a
adsl/router using wlan0+tap0 (tap0 is for virtual box). wlan0 works fine
if not in bridge.[color=blue]
>
> So far I have only tried with WLAN-AP but I think generally it's this
> procedure:
> Bring WLAN-Interface up ('ifconfig wlan0 up' - no promisc, no IP)
> Add WLAN-Interface to bridge ('brctl addif <bridge> wlan0')
> Configure WLAN-Interface w/ iwconfig or start wpa_supplicant (associate...)
> In case of your bridge also being a WLAN-AP bring up necessary additional
> software, f.ex. hostapd.[/color]

Pascal Hambourg escreveu:[color=blue]
> Hello,
>
> Paulo da Silva a écrit :[color=green]
>>
>> Is it possible to have a bridge with a wlan/wpa interface?[/color]
>
> It depends on your hardware. Bridging a wireless interface relies on its
> capability to send frames with a source MAC address other than its own.
> See
> <http://www.linuxfoundation.org/en/Net:Bridge#It_doesn.27t_work_with_my_Wireless_card.21>[/color]

How can I know?[color=blue]
>
>[color=green]
>> If, for example, I have a normal connection up, the association is
>> lost as soon as I do "ifconfig wlan0 down" or even "ifconfig wlan0
>> 0.0.0.0 promisc".[/color]
>
> Why the hell would you want to do that ?[/color]

I just copied from other bridge examples I saw, using google.
In another computer I have (desktop), I have a bridge with eth0+tap0 and
it works.