Wireless bridge with WPA

I want to add my wireless interface wlan0 to a bridge br0. But
brctl addif br0 wlan0
doesn't support this operation. I searched online and tried with 4addr mode enabled. Then the above code works but my wireless NIC cannot associate with the AP using wpa_supplicant.
Could anyone help me explain this? What's the relationship between wireless bridge, 4addr mode and wpa_supplicant?
Any other solution which can add wlan0 to br0 and associate it with AP using WPA is also welcome. Thank you!
Last edited by cyker (2012-11-23 21:00:01)

Assuming you want to have the Wireless interface be the GW....
Instead directly connect the wireless interface to the bridge device,
You could use iptables to forward and NAT traffic between wlan0 and br0
Something like.
Connect to the wireless network like you normally would.
Then I guess you have a network of VM's on the bridge?, so...
echo 1 > /proc/sys/net/ipv4/ip_forward
brctl addif br0 eth0
brctl addif br0 tap0
brctl addif br0 tap1
ifconfig br0 10.0.0.1 netmask 255.255.255.0 up
iptables -A FORWARD -i wlan0 -o br0 -s 10.0.0.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE
I used that config to route hosts connected to my eth0 interface to the Internet through my wlan0 interface. ( i.e. there was no 'br0' in the iptables config instead it was 'eth0')
With that config, the Hosts on eth0, tap0, and tap1 will have their default GW be 10.0.0.1 and the Archlinux/router/computer/laptop in the middle will have a default gw of whatever the wlan0's GW is.
Last edited by hunterthomson (2012-11-27 10:28:50)

Similar Messages

  • 3502p AccessPoint support MESH and Point-to-Point Wireless Bridging with Outdoor Antennas??

    I need to know if 3502p with outdoor antennas supports Point-to-Point Wireless Bridging??

    The 3502p is only used for arenas and or stadiums. These are different units than the 3500's and 3600's. So no they can't be.
    You can use Cisco Aironet 1400 Series Wireless Bridge for a wireless link between two buildings (1km) to extend your LAN. For more detail you can go through the below link.
    http://www.cisco.com/en/US/prod/collateral/wireless/ps5679/ps5279/ps5285/product_data_sheet09186a008018495c.html

  • Low throughput over wireless bridge with two WRT160N

    I recently bought two Linksys WRT160Ns and created a wireless bridge according to http://www.dd-wrt.com/wiki/index.php/Wireless_Bridge. I installed DD-WRT v24-sp1 (07/27/08) min.
    But, in a perfect setting where both devices are just a meter apart I can only get a throughput of 20Mbps when using security (either WEP or WPA) or 30Mbps if using no security at all. To measure this I'm transferring a large file from one computer to the other and checking the result on the "bandwidth" page of the router.
    Any suggestions on how to improve the bandwidth would be much appreciated!
    Thanks, Gordan

    Ask in a dd-wrt forum. They know how to tweak their firmware.

  • WAG354G as Wireless Bridge with Sky DG934G

    I have a (sky) DG934G Wireless ADSL Router downstairs, by the only phone point in the house.
    Upstairs, I am wanting to connect several devices to the network and rather than buy wireless cards/adaptors for them all, I am wanting bridge the wireless network.
    I have a Linksys WAG354G that is not in use, the box and the web interface indicate that it can be used as a bridge, however I can't seem to find how to set it up.
    Please could someone confirm this is possible with these bits of kit, and if so, how?
    Many thanks in advance

    You can't make it as a wireless bridge, you need to connect it with an ethernet cable to the downstairs router...

  • Vlan over wireless bridge with internet sharing?

    Hi Community, my first post here, hoping somebody may be able to advise...
    I live on a farm which is too far for broadband but fortunately I also have an office in a nearby town and because I have line of sight I have setup a wireless bridge, this gives me 8 MBits which is wonderful. Some of my equipment, for example a NAS is on the farm, and I need to access them from the office via the wireless link and I occasinally use vnc to access my office desktop from the farm. This all works beautifully.
    Ok. now I want to share my internet with my neighbor on the farm, who, in a strange twist also rents an office next to mine downtown, so I would like to give him access to the internet and to his equipment he has there too.. but I don't want him to be able to access my equipment and visa versa I don't want to see his stuff...
    This sounds like a job for port based VLAN.. and so what I bought is two Linksys/Cisco SLM2005 layer2 switches in the hope that this would allow me to do what I want... but I'm not so sure now. In the office I use a draytek v2910 which has a vlan feature that allows me to separate the ports from each other, only giving them internet access.
    So... if I connect these two switches to each other, and I create a VLAN with the same id on each of the switches, will the corresponding vlans be shared, so, if you assume the following hardware setup:
    farm: slm2005 switch
    port 1 -> wireless bridge to office: member of vlan "2", "3"
    port 2 -> access point A for neighbor: member of vlan "2"
    port 3 -> my own access point B: member of vlan "3"
    office: slm2005 switch
    port 1 -> wireless bridge to farm: member of vlan "2", "3"
    port 2  -> access point C for neighbor: member of vlan "2"
    port 3 -> my access point for office D: member of vlan "3"
    port 4 -> router port 1: member of vlan "2"
    port 5 -> router port 2: member of vlan "3"
    the router (draytek v2910) is configured in such a way to separate port 1 and port 2 (otherwise there would be a loop...)
    The idea here is to create a vlan "2" for my neighbor and "3" for myself. but what's the correct way to consider the wireless bridge inbeetween (in fact, I think the same problem would occur if I just connected the two switches with a cable (if i had a 2 mile long one..)...)
    Will my neighbor be able to see both access points "A" and "C" and the internet, but not be my access points "B" and "D"? Or does this whole concept of VLAN over bridge not work like this, or not at all?
    Thanks in advance for any advice,
    Andres

    Hi Andreas,
    you're not far from it.
    Your whole concept is ok. What you just need is on the gateway of each subnet (I would presume it's the router in the office) to create an access list preventing to route between vlan 2 and 3.
    On all other devices,  traffic can't jump between vlans. But on a routing device that has the Vlan layer3 interfaces, traffic is routed between vlans so that's where you need to prevent it.
    With regards to vlans over wireless, you're also having the good concept. The point is to have only 1 ssid, that will be in a certain vlan, but also bridging the other vlans onto that ssid.
    This doc should help you out :
    http://www.cisco.com/en/US/partner/products/hw/wireless/ps4570/products_configuration_example09186a00801d0815.shtml#vlanbr
    HTH,
    Nicolas
    Thanks to rank the answer if you see it as useful !

  • Problem with connetction to wrt54g2 via wireless connection with WPA/WPA2 & wireless MAC filter

    Hello,
    I'm Alexey from Novosibirsk, Russia.
    I have a problem with connection to wrt54g2 from my DELL D630 notebook via wireless connection. When I setup WPA/WPA2 in wireless security and wireless MAC filter I can't connect from notebook to WRT - in Windows I see that dynamic IP address from WRT is not assigned. When I switch off security mode to disable always OK, but I need a wireless security between DELL and WRT.
    Connection via cable Ethernet port is OK.
    Can You help me?

    Have you tried the different laptop...?
    Download 1.71 MB the firmware for WRT54G2 v1 and reflash the router's firmware.After reflashing/upgrading the router's firmware,reset the router for 30 seconds and reconfigure the router from scratch. 

  • 1552 in P-MP acting as 802.11a Wireless Bridge with single antenna SISO

    Can you configure three Cisco 1552EUs to act as a RAP and two MAPs in a bridge only Point to Multipoint configuration. 
    I'd like to disable two of the 5Ghz antenna ports and use just a single TX/RX port and a single directional antenna for each AP.
    Does this simply reduce the system gain because you lose the MRC MIMO advantage / gain of either 1.7 or 4.7db (depending on qty of spatial streams).
    Also, are the 1552EU's backward compatible with the Cisco 1310's in the configuration mentioned above.
    Thanks for any comments.

    The transfer speeds sound about right. The "54Mbps" is a signaling rate, not a throughput.
    To make 802.11 wireless "reliable"  (comparable to a wired network)  the data is, in effect, sent twice and staggered such that a glitch usually doesn't get both.
    In terms of throughput of your data, a strong signal with good signal quality, using IP, unencrypted  should run ~22-26Mbps (some variability for noise/interference, mixed frame sizes, TCP ACK times, application responses, etc). 
    So, at ~24 Mbps (megabits per second) you're looking at ~4  megabytes per second versus 100Mbps/12.5mBps as a probable max rate.
    Given that, a transfer that takes approximately one minute on a wired network under typical conditions ... having it take four-to-five minutes on a typical wireless system is about right.
    For power settings, you can adjust the power by monitoring the RSSI values on the receiving system. If I can find the docs on Cisco's main site I'll post 'em up later (gotta run ...), but if the mechanical install is good, then it'll just be a little keyboard work.
    Good Luck
    Scott

  • Wireless bridging with 1242AP

    I've got two cisco 1242 access points both with the same IOS, one is configured as a workgroup bridge and it connects to the other 1242 which is configured as an access point. I'm getting poor data speed between the two. I remember reading somewhere that bridging is done at reduced power on the 1242, is this why the data speed is poor? I get about 2mb/sec between the two. I know antennas and distance come into it but I've tried several different combinations but the most I get is about 2mb/sec. Are there any know settings that increase performance with bridging?
    My second question is: is there any difference in performance with these ap's when used with an air-pwrinj or a normal DC adaptor?

    I did the checks as you say but no errors were present, all ports - router and wgb and ap - were all full duplex 100mbs, bvi ports on wb and ap showed no errors. MTU on all ports was 1500. One thing I did see was a setting for best throughput so I dotted that in both devices and the speed increased to 3.5Mb/sec. As a further test I got a wireless pc and connected it to the ap and did a file transfer exactly as before but I only got 2.5Mb/sec from the pc, which normally gives 12Mbs through an ethernet cable, this made me suspect the ap. The pc has a v strong wireless card connected to a big antenna so the signal was excellent. So then I got the wb, reconfigured it as an ap and did the same thing through that and got exactly the same results, so both devices perform the same. I also tried connecting a pc straight to the wb (not through the router) but it made no difference. I think I've tried nearly variation I can but I'm getting the impression this is the best I'm can get out of these 1242's, unless there's a magical setting I've missed...

  • Wireless Bridge error with AIR-BR1310G-E-K9,cannot associate: No response

    Hi Guys,
    I have to do a wireless bridge with 2 AIR-BR1310G-E-K9. I configure 1 AP root bridge and 1 AP non-root bridge, with the same SSID.
    But on the AP non-root bridge, the interface dot11 radio don't change it state to up and give this error: %DOT11-4-CANT_ASSOC: Interface Dot11Radio0, cannot associate: No Response.
    I don't why it doesn't work. Even if i try a configuration which it already work on a site, it doesn't work to.
    So I ask to me if there is a problem with internal antenna?
    If I configure the 2 AP to access point role with 2 different ssid, I can see the 2 ssid but with a weak signal.
    This AP can work without external antennas?
    Thanks for your help

    Hi Jerome,
    The 1310 definitely can work with the internal antenna but... is the AP mounted somewhere? Some mounting options imply an external antenna as they position the internal antenna toward the wall...

  • Wireless bridging is not working in 1552 outdoor access point and 2602e indoor access point.

    Hi,
    I am have been tested  wireless bridging with 2 indoor Cisco 2602 access point by following the attached document and its working fine without any issue. 
    After then I made one Cisco 1552 EU-M-K9 outdoor access point as RAP, then connect to this RAP with one 2602 mesh access point. But its not working, mesh access point is just start scan the signal to get associate with RAP, but not getting established. Is there any specific configuration required to connect between outdoor and indoor access point. Kindly find the attachment and advise.
    regards,
    Jubair.S

    Hi  Team,
    Any suggestion??
    Regards,
    Jubair.S

  • Aironet 1300 wireless Bridges connection loss, help!

    Hi,
    We have 2 Cisco Aironet 1300 wireless bridges with yaggi antennas.
    The connection drops sometimes (every 2 or 3 days) and never comes up again.
    When we reboot the non-root bridge the connection works again. We swapped the complete unit but still the same.
    For logs see attached file.
    What can be the problem? The antennas are not aligned correctly?
    Thx in advance
    greetings,
    Marc

    How long is the path and what were the results of the survey?
    Were the connectors waterproofed?
    Please describe the sytem from the bridge to the antenna including cable type, length, path, outdoors, indoors etc.

  • Wireless Bridge by Aironet 3700i

    I'd like to connect two network by using two Aironet 3700i APs like
    NW1 -- AP1 -- AP2 -- NW2
    I want to confirm that this is possible by simply setting AP1 = Root Bridge and AP2 = Non-Root Bridge.
    I also want to confirm that this is possible even when AP2&NW2 are moving and connect to AP1 temporarily.  

    When you configure AP2 as workgroup bridge, then it will act as a wireless client. So it will associate to any normal AP (other AP no need to be the root bridge). Also you can modify the roaming behaviour so it will roam to different AP like any other client when moving.You can refer this to configuration options available on this
    http://mrncciew.com/2013/07/24/wgb-roaming-part-1/
    You can configure multiple vlan with WGB & you can refer below for that
    http://mrncciew.com/2013/06/16/ios-ap-wgb-with-multiple-vlan/
    If it is does not require that sort of roaming & always you will align with AP1 then you can configure it as Root Bridge & Non-Root-Bridge. Here is a reference configs for a wireless bridge
    http://mrncciew.com/2013/11/09/wireless-bridge-with-eap-fast/
    **** Pls do not forget to rate our responses if that is useful to you ****
    HTH
    Rasika

  • Secure wireless bridge

    I want to establish a secure wireless bridge (with a root bridge and one non root bridge). I can set in the non-root which is the MAC address of the parent, but how can I set in the root bridge with MAC is the non-root one ? I want to avoid other non root bridges can connect to the parent
    Thanks

    Have an encryption running between the bridges. This way even if a unknown nonroot gets associated to the root, you will not be able to transmit or recevie data if the encryption keys are incorrect, and we have control over the encryption keys

  • Do I want a wireless bridge? Terminology question

    Hi I'm not entirely sure of the correct term so here goes. I have wireless internet access and I would like to access it and share it via the airport wirelessly.
    At the moment the airport is connected via the ethernet cable but I would like to change the location of the airport as it has my printer and hhd's attached and it's getting a little cluttered beside the phone table!
    So do I need to follow the instructions to set up a wireless bridge?
    thanks
    R

    Hello Soaringmonkeyfish. Welcome to the Apple Discussions!
    To create a wireless bridge with the AirPorts you would configure them in a Wireless Distribution System (WDS). In a WDS, you would typically have one base station connected to the Internet (this would be the main station) and another connected wirelessly to extend it (this would be the remote station). What are the models of AirPorts that you will be using for this? If both are the newer 802.11n version, will all the wireless clients be "n" capable as well?

  • E900 as wireless bridge

    Does the E900 have the capability of acting as a wireless  bridge?  If so, how would i set that up.
    Solved!
    Go to Solution.

    You can configure it to be an AP but not a wireless bridge with Linksys firmware.
    If you have hardware version 1 then DD-WRT is supported and most likely can turn it into a wireless bridge.
    Please remember to Kudo those that help you.
    Linksys
    Communities Technical Support

Maybe you are looking for

  • Not writing to NAS drive after upgrade to 10.8.4

    I keep my iTunes media on an Iomega ix2-200 NAS. I have upgraded to iOS 10.8.4 and now cannot write to that disk - ie cannot store new media. I only have read priviledges. Anyone else had/ fixed this issue?

  • Changing colors in webdynpro page header using themes

    hi all,          I have created  a webdynpro page. how to change the color webdynpro page header using themes. where to make changes in the themes. Regards, Shanthakumar

  • Assessment Cycle(KSU5) - Allocating Cost for Only One Month

    Hi, I want to allocate cost relating 2008 from cost centres to WBS.  For that I'm trying run the assessment cycle(ksu5).  The test results shows allocation of cost for the month of Sep2008. i.e  It doesn't allocate cost that are posted before sep and

  • Nokia n95 8gb CDC COMMS ERROR - FAILED DRIVER INST...

    Hi, If anyone could put this demon to rest I would be greatly appreciated. I have been using my NOKIA N95 8GB for over a year with my computer, that runs Wondows Vista. A few months back I discovered that My phone would no longer connect to the compu

  • Iphoto cannot be read

    the application iPhoto doesnt work with my computer..