Repeater Bridge

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 22:36, 19 May 2008 (edit)
Redhawk0 (Talk | contribs)
(Instructions)
← Previous diff
Current revision (16:27, 20 December 2023) (edit) (undo)
Kernel-panic69 (Talk | contribs)
((mode name changes for client bridge))
 
(234 intermediate revisions not shown.)
Line 1: Line 1:
-Wireless Bridging is used to connect two LAN segments via a wireless link. The two segments will be in the same subnet and look like two Ethernet switches connected by a cable to all computers on the subnet. Since the computers are on the same subnet, broadcasts will reach all machines, allowing DHCP clients in one segment to get their addresses from a DHCP server in a different segment. You could use a Wireless Bridge to transparently connect computer(s) in one room to computer(s) in a different room when you could not, or did not want to run an Ethernet cable between the rooms. +{{Languages|Repeater Bridge}}
 +'''''Wiki Path''''': [[Main_Page|DD-WRT Wiki Main]] / [[Tutorials]] / [[Linking Routers]] / '''Repeater Bridge'''
-The limitation with standard Bridging is that it only allows wired clients to connect to the secondary router. New in v24 is Repeater Bridge mode which allows extension of the LAN via the secondary router and but also allows wireless clients to connect to the secondary router. This is a perfect way to extend the wireless range of your existing network while still allowing wired clients to connect to the secondary router. +==Introduction==
 +A wireless bridge connects two LAN segments with a wireless link. The two segments are in the same subnet and look like two Ethernet switches connected by a cable to all computers on the subnet. Since the computers are on the same subnet, broadcasts reach all machines. DHCP clients in one segment can get their addresses from a DHCP server in the other segment.
-[[Image:Repeater_Bridge.jpg|thumbnail|Reference Image]]+Use a wireless bridge to transparently connect computers in one room to computers in a different room when you cannot—or don't want to—run an Ethernet cable between the two rooms.
 +==Difference between Station Bridge and Repeater Bridge==
 +
 +A ''standard'' wireless bridge (Station Bridge) connects wired clients to a secondary router as if they were connected to your main router with a cable. Secondary clients share the bandwidth of a wireless connection back to your main router. Of course, you can still connect clients to your main router using either a cable connection or a wireless connection.
 +
 +The limitation with standard bridging is that it only allows '''wired''' clients to connect to your secondary router. ''Wireless'' clients cannot connect to your secondary router configured as a standard bridge. Repeater Bridge allows wireless AND wired clients to connect to a the Repeater Bridge router, and through that device wireless to a primary router. You can still use this mode if you only need to bridge wired clients; the extra wireless repeater capability comes along for free; however, you are not required to use it.
 +
 +[[Image:Repeater_Bridge.jpg|thumbnail|Reference Image]]
In the case in which we are interested, a secondary router running DD-WRT v24 is configured as a Repeater Bridge between a Primary wireless router (of any make/brand/FW) allowing the above configuration. In the case in which we are interested, a secondary router running DD-WRT v24 is configured as a Repeater Bridge between a Primary wireless router (of any make/brand/FW) allowing the above configuration.
-Assumptions:+==Assumptions==
Primary router is configured in a 192.168.1.X subnet and leases DHCP address in the same pool. Primary router is configured in a 192.168.1.X subnet and leases DHCP address in the same pool.
-Secondary router is running DD-WRT v24+Secondary router is running DD-WRT.
-No security setup will be covered in this Wiki. It will be up to the user to setup security between the Primary and Secondary routers+'''<font color=darkred>If using a multi-band router, do not set more than one band to RB.</font>''' The other radio(s) would normally be set as ''AP''. For example, the 2.4GHz radio can a CB while the 5GHz is an AP, or vice versa.
-==Instructions==+Note: If you are unsure of what you are doing, it is advisable to practice by setting up the router first in Station Bridge mode and get it working correctly. Station Bridge mode is simpler, but most of the settings are the same. Once you understand how to set up a Station bridge and have it working, then proceed to setting up Repeater Bridge
-A very simple step-by-step description to connect a Router running selected DD-WRTV24 firmware in Repeater Bridge Mode.+==Broadcom ==
 +This is a simple step-by-step guide to connect a router running current (2017) firmware in Repeater Bridge (RB) Mode. You do not need DD-WRT on the primary router for this to work, however, your primary router must be able to support encryption that works with DD-WRT (use WPA2-AES, not TKIP).
-Confirmed working/non-working V24 firmware:+*Read and understand the [[Firmware FAQ]] and (especially for MIPS) [https://www.dd-wrt.com/phpBB2/viewtopic.php?t=51486 Peacock announcement] before doing anything else.
 +*<font color=red>Repeater Bridge with WPA2-AES is broken for k2.6 builds after [ftp://ftp.dd-wrt.com/betas/2015/01-20-2015-r25974/broadcom_K26/ 25974]</font>, though some models might work through [ftp://ftp.dd-wrt.com/betas/2015/02-02-2015-r26125/broadcom_K26/ 26125]
 +*Broadcom dhd driver models (e.g. AC5300 routers) cannot support RB (nor Station Bridge) modes since the driver is controlled by wireless firmware internal to the chipset. This makes it impossible to implement fake bridge modes, [http://svn.dd-wrt.com/ticket/6296#comment:5 and is not fixable]. While it can sometimes work without encryption, there is no guarantee nor official support. The driver [https://www.dd-wrt.com/phpBB2/viewtopic.php?p=1128573#1128573 will usually crash] in these modes.
-*RC5 - works+This mode is for a wireless bridge, where the SSID is repeated and the second router's ethernet ports provide wired connections to the main router, as if plugged into the main router.
-*RC6.2 - does not work+
-*RC7+ - works best (separate builds with new or vintage drivers) +<font color=green>For a <u>secondary router</u> running DD-WRT, the wireless mode must be configured as '''Repeater Bridge'''. It will connect to a <u>primary router</u> in '''AP mode''' (DD-WRT default) with '''DHCP Server ''enabled'''''. Any type of VAP (Virtual Access Point) on the host should work, including a WDS-AP (Atheros) or any VAP including on another RB, but can depend on the host router.</font>
-*V24-final, V24-VINT-final - Works+
-To enable Bridge-Mode between two Routers, the Primary router has to be in AP mode. The Secondary router running DD-WRT v24 as Repeater Bridged+====Instructions====
- +Make sure to click Save and not Apply between steps, as Save will commit the changes to NVRAM withough activating them (which Apply does), to prevent access problems, such as changing the IP address.
-# Restore Factory Defaults on Secondary(DD-WRT) Router+# Reset to Factory Defaults on secondary DD-WRT router
-# Connect to the secondary router via wired or wireless client keeping in mind the dd-wrt default settings for dhcp pool and ssid+#* Optional (but suggested if having issues): Perform a hard reset
-#Open the '''Wireless -> Basic Settings''' tab+#**DO NOT 30-30-30 ARM routers. See your model wiki; some reset using the WPS button at power-up
-#*Wireless Mode : Repeater Bridge+#**Hold the reset button until lights flash (10-30sec) or 30-30-30 '''if appropriate for your router'''
-#*Wireless Network Mode : Match Primary Router+# Hook up to the secondary router with an ethernet cable or as a wireless client.
-#*Wireless Network Name(SSID) : Match Primary Router+#*The dd-wrt default wireless SSID is "dd-wrt"
-#*Wireless Channel : Match Primary Router+# Open the GUI address http://192.168.1.1 in your web browser
-#*Wireless SSID Broadcast : Enable+# Open the '''Wireless -> Basic Settings''' tab
-#*Network Configuration : Bridged+#*Physical Interface Section ('''for multi-band routers, only use Repeater on one radio''')
-#*'''Save Settings'''+#**Wireless Mode: Repeater Bridge
-#'''Virtual Interfaces Section'''+#**Wireless Network Mode: Match Primary Router
-#*Add+#***Usually N*-Mixed (or G-Only for pre-N routers), as Mixed may not work)
-#*Wireless Network Name(SSID) : Different from Primary Router+#**Wireless Network Name SSID: Must Match Primary Router EXACTLY '''including case'''
-##*[NOTE] - being a bridged setup and all DHCP is being done by the host AP - it is possible to use the same SSID as the Host AP for this Virtual SSID name. This will allow roaming hand-offs between the 2 units. [[User:Redhawk0|redhawk]] Confirmed --[[User:ChuckMcB|ChuckMcB]] 00:34, 31 March 2008 (CEST)+#***Note: some devices may not properly handle special characters, spaces, etc.
-#*Wireless SSID Broadcast : Enable+#**Wireless Channel: Usually leave at Auto for DD-WRT to determine the channel
-#*AP Isolation : Disable+#**Sensitivity Range (ACK Timing): 0 is recommended (this setting is not available for all routers)
-#*Network Configuration : Bridged+#**'''Save''' (not Apply)
-#*'''Save Settings'''+#*Virtual Interfaces Section: Click "Add"
 +#**Wireless Network Name(SSID): Same as Primary SSID. If having problems, try a different one.
 +#***k2.4 (broadcom folder) builds may require using a different SSID from the Primary
 +#**'''Save''' (not Apply)
 +# Open the '''Wireless -> Wireless Security''' tab
 +#*Physical Interface section (WPA2-AES strongly advised)
 +#**Security Mode, WPA Algorithms & Shared Key: Must Match Primary Router
 +#*Virtual Interfaces Section
 +#**Security Mode, WPA Algorithms & Shared Key: Must Match Physical Interface for k2.4
 +#**#WPA2-AES should be able to use a different password '''on k2.6 and newer'''
 +#**#WEP (with any password) or Open (disabled) should work on any kernel
 +#**'''Save''' (not Apply)
 +# Open the '''Security -> Firewall''' tab
 +#*Uncheck all boxes...except Filter Multicast [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=321811#321811 (see why here)]
 +#*Disable SPI Firewall [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=1099695#1099695 (workaround for issues)]
 +#**'''Save''' (not Apply)
 +# Open the '''Services -> Services''' tab: disable DNSMasq, then '''Save''' (not Apply)
# Open the '''Setup -> Basic Setup''' tab # Open the '''Setup -> Basic Setup''' tab
-#*Connection Type will be: Disabled+#*WAN Connection Type: Disabled
-#*Set STP for Disabled (Enabled sometimes can cause connection problems) [[User:Redhawk0|redhawk]]+#*IP Address: 192.168.1.2 (if not in use and assuming Primary Router IP is 192.168.1.1)
-#*IP Address : 192.168.1.2 (Assuming Primary Router IP is 192.168.1.1)+#*Mask: 255.255.255.0
-#*Mask : 255.255.255.0+#*Gateway: 192.168.1.1 (or Primary Router IP if not 192.168.1.1)
-#*Gateway: 192.168.1.1 (again assuming Primary Router IP is 192.168.1.1)+#*DHCP Server: Disable
-#*Assign WAN Port to Switch : Checked or Unchecked - your choice+#*Local DNS: 192.168.1.1 (or Primary Router IP if not 192.168.1.1)
-#*'''Save Settings'''+#*Assign WAN Port to Switch: use WAN port as another LAN port (also allows access after a reset)
-#Open the '''Security -> Firewall''' tab+#*Change the Router Name (e.g. "DD-RB1") and set the Time Zone
-#*Uncheck all boxes+#**'''Save''' (not Apply)
-#*Disable SP1 firewall+# Go to the '''(Setup ->) Advanced Routing''' tab: Change the Mode to Router
-#*'''Save Settings'''+#*'''Save''' and then '''APPLY''' settings: '''allow router to reboot'''
-#Open the '''Status -> Wireless''' tab (''If this step is performed the repeater bridge may or may not work'' - skip to Step 8) [[User:Redhawk0|redhawk]] Worked on two different routers without this set, recommend remove --[[User:ChuckMcB|ChuckMcB]] 00:34, 31 March 2008 (CEST)+#Log back into the router GUI at its new IP address: http://192.168.1.2 (or the chosen IP Address above)
-#*Wiviz Survey (or Site Survey)+#Check internet connectivity: try to ping the second router from a client plugged into the ethernet port, then try to ping the primary router, and finally try the internet.
-#*Join Primary Router+#Reboot the router if not working
-#*Continue+
-#Open the '''Administration''' tab+
-#*'''APPLY Settings''' (In V24 after 07/04/07...use Save for previous versions)+
 +You should now be able to connect wired and wireless clients to the newly configured Secondary Router. It will receive IP addresses from the Primary Router via DHCP, and access the internet connection through it's gateway.
-You should now be able to connect wired clients and wireless clients to the newly configured Secondary router. They will receive IP Addresses from the Primary Router and will be able to use the Internet connection supplied by the Primary Router.+NOTES:
 +*All repeaters including Repeater Bridge mode will sacrifice half of the bandwidth available from the primary router for clients '''''wirelessly''''' connected to the repeater. This is a result of the repeater talking in turn to the Primary Router and client, relaying the traffic between them. As long as your internet bandwidth requirements are within this halved bandwidth there will be little observed reduction in speed.
 +*Repeater Bridge on Broadcom [also Atheros Station Bridge (routed)] is generally not a good solution, as it [https://www.dd-wrt.com/phpBB2/viewtopic.php?p=1097817#1097817 is not a true bridge] ([http://www.dd-wrt.com/phpBB2/viewtopic.php?p=185212#185212 BS from the .de forum]). It should be fine for internet access with few clients, but more clients or more complicated networking is likely to cause trouble, since MAC addresses will not transverse its bridge. In contrast, WDS is a transparent bridge and useful for these things. Also, the primary host router's log can be full of arp spoofing attempts if it has ARP Spoofing Protection enabled in its security. Repeater (Broadcom) [or Client (QCA/Atheros)] is much more suitable to use for extending wireless; if WDS is not available.
-== Troubleshooting ==+====Troubleshooting====
 +Encryption type and key must be the same on both the primary and secondary router. The first thing to do when running into problems is to remove all encryption and see if the routers can connect. This is the single most common reason that bridged routers don't work
-<B>Note: i have noticed that in almost every case that going from factory default ap mode to repeater bridge mode will fail without first setting up the router for client bridge mode first , so i suggest you setup client bridge or wireless bridge first , then continue on to change the router to repeater bridge</B>+*Wireless Clients cannot connect to Repeater:
 +Disable security and try again. Delete and recreate your profile on the wireless computer. Check to make sure you have set security properly and that the key you used matches the key in the primary router. If one security type doesn't work try another on all routers. eg. try WEP or WPA2-AES [Mera Pakistan]
-http://www.dd-wrt.com/wiki/index.php/Wireless_Bridge+*NAT: Open the '''Setup->Advanced Routing''' tab and change the mode to "router" instead of "gateway".
-=== SSIDs ===+*Wireless Clients have no Internet:
 +Ensure the Gateway IP is specified in the repeater bridge router, and that it is the primary router's address.
-Under "Wireless -> Basic Settings", you must use the primary router's SSID for the physical interface and a new SSID for the virtual interface. Some people argue the physical interface can also be the same in order to support roaming (see [[Repeating Mode Comparisons]])+==Ralink==
 +Many in the forums were having issues with getting this to work with [https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=153372 v24-sp2] on the [https://wikidevi.wi-cat.ru/D-Link_DIR-615_rev_D DIR-615 rev D4].
 +# Restore Factory Defaults on Secondary (DD-WRT) Router
 +# Do a proper HARD 30-30-30 Reset on the router.
 +# Go to 192.168.1.1 and log in.
 +# Go to the wireless tab.
 +#*Choose Repeater Bridge under wireless mode.
 +#*Match your SSID and channel settings exactly to the main router you will be connecting to.
 +#*Make sure bridged is selected.
 +#*Click Save.
 +# Go to the Wireless Security tab.
 +#*Match these settings to your main router exactly.
 +#*Click Save.
 +# Go to setup>basic setup.
 +#*Choose a local IP in the same subnet that is not being used as your main router. If your main router is 192.168.1.1 then as long as it is not in use 192.168.1.2 will work. Assuming your ip is in this range the subnet will be 255.255.255.0 and the gateway and local dns will be 192.168.1.1.
 +#*Click Save
 +# Click Apply
 +#Check that the wireless is extended, and also with working LAN ports and internet
-=== NAT ===+==Qualcomm Atheros==
 +<font color="red">'''Use build 32170 or newer.''' Do not follow the Broadcom instruction, as Qualcomm Atheros units set up a ''Repeater Bridge'' by using ''[[Client Bridged|Station Bridge (Routed)]]'' with an added VAP.</font>
-* '''Problem:''' On v24RC4, packets go through NAT in the direction to the gateway. +# Follow the instructions in the [[Client Bridged|Station Bridge (Routed)]] wiki to set up the station bridge, then follow the steps for adding a VAP below.
-* '''Solution:''' To disable this, go under the Advanced Routing tab in set-up and change the mode to "router" instead of "gateway". Also have routing disabled under the Admin tab. (TODO: Confirm).+
-=== Wireless Clients cannot connect to Repeater === 
-* '''Problem:''' LAN clients can connect to the repeater, but wireless clients can't connect at all.+----
-* '''Solution:''' Repeater-bridge is broken in early versions of RC6, try [http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fothers%2Feko%2FRC6-8733/ downloads/others/eko/RC6-8733] or higher+*If you only have devices connected to the repeater via ethernet, click '''apply settings''' now. If you have both ethernet & wireless, or just wireless clients, continue below.
 +----
-=== Wireless Clients have no Internet === 
-* '''Problem:''' Wireless clients can connect to the AP, however they can't connect to the internet.+#Open the '''Wireless -> Basic Settings''' tab
-* '''Solution 1''' : Followed the instructions listed above ''and'' had to do the following: My host wireless router had the SPI firewall enabled (running dd-wrt 23SP2) and my wireless AP (running dd-wrt 24RC3) had the SPI firewall enabled. Per the instructions above I disabled the AP router SPI firewall but '''also''' had to disable the host routers SPI firewall. Once I did this the clients attaching to the AP could get to the internet (external access). Additional note: In my case my the host wireless router is directly cabled to the ISP hardware router which does have the firewall enabled.+#Go to Virtual Interfaces (ath0'''.1''', ath1'''.1''', etc.)
-* '''Solution 2''' : The instructions on this page worked great for me, i just set up 3 Asus 520GU as wireless repeaters connecting to a standard netgear wireless AP. Once i setup dd-wrt as wireless repeaters on the asus routers i was able to access the internet via the LAN, not wirelessly. my computer would connect but with limited or no connectivity giving me some really strange IP address. to solve this issue of no internet via the wireless connection i did the following (windows xp pro)+#Click '''Add Virtual AP'''
-1) network connections+#*Wireless Network Mode: AP
-2) right click wireless adapter, click properties+#*Wireless Network Name (SSID): Same as the host router if you want a repeater, or different from the host router if you want your own separate network or for other advanced configurations.
-3) scroll down to tcp/ip, highlight, then click properties+#*Wireless SSID Broadcast: Enable
-4) manually add all ip/subnet/gateway/dns information+#Click '''Save'''
-example+#Open the '''Wireless -> Wireless Security''' tab
 +#*All parameters must match the host router, exactly including capitals & security algorithm. EX: host using WPA2 Personal AES will still work if the repeater is set to WPA2 Personal Mixed AES, as it includes the algorithm in use (WPA2-AES).
 +#Click '''Save'''
 +#*Network Configuration: Bridged if you want a repeater to extend the current network of the host router.
 +#Click '''Apply Settings'''
-ip: 192.168.1.6+==Notes==
-subnet: 255.255.255.0+=== SSIDs ===
-gateway: 192.168.1.1 (this is the netgears ip address. its the DHCP server)+Under "Wireless -> Basic Settings", you must use '''only''' the primary router's SSID for the physical interface '''to connect wireless clients''' and create a new SSID for the virtual interface. You will be able to tell which you are connected to as the two ssids MUST be different. (The only way to have one seamless network with the same ssid is to use WDS which almost always requires routers to support WDS AND have at least the same chipsets)
-DNS: 192.168.0.1 (this is the main router's address directly connected to the ISP.+
-good luck, i hope this helps!+===The "half bandwidth" misunderstanding===
 +Too many people make a big deal out of the half bandwidth oversimplification of the repeater bridge setup. It's not that big of a deal, and not that complicated. A router can only talk to one device at a time. So if the router is set up as a repeater bridge AND it has active clients, the repeater bridge router must talk to two devices- the client computer and then to the primary router. This will effectively half the bandwidth available to the client computer, but it is no different than having two computers on a single primary router. The router can only talk to one at a time, so if both are active, it will only be able to talk to one at a time, effectively cutting the available bandwidth in half. So it really is no big deal. I see people all the time who are concerned about the "half bandwidth" issue, but are not at all concerned when there are two devices on their network. It's the same thing. And only matters at all when the device is active (transferring data to or from the wan).
-== Security ==+=== Security ===
 +Dd-wrt will often not work unless BOTH the primary router and the secondary router use wpa2-aes security ONLY. Wep will also often work, but it is not secure.
-Keep in mind any security settings will need to be configured including MAC filtering in order for the Secondary Router to connect to the Primary Router and also for clients connecting to the Secondary Router to gain full access to the connectivity of the Primary Router. There are some factors to consider when setting up Security for Client Bridge mode that may or may not be factors when setting up Repeater Bridge mode. I simply have not experimented with this. +Keep in mind any security settings will need to be configured including MAC filtering in order for the Secondary Router to connect to the Primary Router and also for clients connecting to the Secondary Router to gain full access to the connectivity of the Primary Router. There are some factors to consider when setting up Security for Station Bridge mode that may or may not be factors when setting up Repeater Bridge mode. I simply have not experimented with this.
[NOTE {Montrealmike}]Also when your adding WEP,WPA,WPA2 etc... between the AP and the repeater bridge you have to start with the AP first; then the repeater bridge.When you enable security on the repeater click save not apply, then click on the administration tab scroll down to the bottom and click apply settings. You will then have to power cycle the repeater twice ( unplug and plug back in twice ) in order for the repeater bridge and AP to synchronize. This has worked for four repeater bridges for me. [NOTE {Montrealmike}]Also when your adding WEP,WPA,WPA2 etc... between the AP and the repeater bridge you have to start with the AP first; then the repeater bridge.When you enable security on the repeater click save not apply, then click on the administration tab scroll down to the bottom and click apply settings. You will then have to power cycle the repeater twice ( unplug and plug back in twice ) in order for the repeater bridge and AP to synchronize. This has worked for four repeater bridges for me.
-Edit - GeeTek - We know you are trying to help, but there is no logical reason to do a cold boot on anything 2 times in a row to make it work. Please double check your information before posting such advice. Some of the poor freaks out here may actually believe it to be true.+Edit - pmiller - I can also confirm the power cycling to sync the repeater to the AP. You can confirm that the repeater has syncronized with the AP by going to the Status>Wireless tab on the AP and viewing the MAC address of the repeater with some % signal quality value. Before doing 2 power cycles on the repeater, the MAC address would display on the AP's Status>Wireless tab, but with 0% signal quality. After the power cycles the % quality displayed around 30%. I played around with other security settings later on the AP and found the 2 power cycles to be unnecessary after the 2 had originally sync'ed- no idea why this would work, but it did. I had some difficulty at first because I had security enabled on the AP as WPA2-Personal Mixed, which is basically WPA2-AES or WPA-TKIP simultaneously. The repeater is unable to connect with the AP in this mixed mode; rather you must choose between WPA2-AES or WPA-TKIP . I have now switched both my wireless security settings to WPA-TKIP (physical and virtual) just for simplicity, though in theory the virtual need not match the physical. Your security is as good as the weakest link. For those having trouble, I would turn off all security and turn on SSID broadcast first, then once you get a good sync turn on security on the AP first, then
-Edit - Altair - In my experience the above advice of power cycling the router has been confirmed. I spent 20 minutes trying different things to no avail before I finally gave in and tried power cycling it twice (I honestly didn't believe it would do anything). After the power cycle it has been working flawlessly.+Edit - crandler - '''WPA2 personal mixed''' with Linksys WAG160N as DSL uplink with original firmware and WRT160N with dd-wrt v24 std in repeater bridge mode does not function. Had do switch both devices to '''WPA2 personal'''.
-Edit - pmiller - I can also confirm the power cycling to sync the repeater to the AP. You can confirm that the repeater has syncronized with the AP by going to the Status>Wireless tab on the AP and viewing the MAC address of the repeater with some % signal quality value. Before doing 2 power cycles on the repeater, the MAC address would display on the AP's Status>Wireless tab, but with 0% signal quality. After the power cycles the % quality displayed around 30%. I played around with other security settings later on the AP and found the 2 power cycles to be unnecessary after the 2 had originally sync'ed- no idea why this would work, but it did. I had some difficulty at first because I had security enabled on the AP as WPA2-Personal Mixed, which is basically WPA2-AES or WPA-TKIP simultaneously. The repeater is unable to connect with the AP in this mixed mode; rather you must choose between WPA2-AES or WPA-TKIP . I have now switched both my wireless security settings to WPA-TKIP (physical and virtual) just for simplicity, though in theory the virtual need not match the physical. Your security is as good as the weakest link. For those having trouble, I would turn off all security and turn on SSID broadcast first, then once you get a good sync turn on security on the AP first, then the repeater.+Edit - ytal - Using encryption for the bridged connection only works if I either use '''the same''' encryption data (incl. ESSID) on the other (virtual) interface or do not use any encryption on the virtual interface at all. If set differently, the wireless link to the base station fails. Base station is a Speedport W500V / Targa WR 500 VoIP (http://forum.openwrt.org/viewtopic.php?id=5774) with the original Telekom firmware.
-==Accessing Both Routers?==+Edit - RamonBuckland - I found that setting the security to off worked first. But WPA2 Personal did not. I then lowered the key refresh to 15 seconds (same Wireless Security settings tab) on both routers and applied. They then found each other. One would figure if I were patient enough (to wait 3600 seconds, 1 hour) then it would have worked. So .. I think the key renewal is what throws them. I have it now working WPA2 Personal (AES) with a key renewal of 15 seconds. Perhaps upping it now to an hour and walking away (from the house) they will work :-) logically. Good work peoples.
-With this setup, I have full access to both routers — which runs contrary to a lot of the notes concerning Client Bridge mode. One router is http://192.168.1.1, and the other is http://192.168.1.2. I can access both from either side of the bridge. There is no need to change any settings or IP addresses or the like with this setup in order to do so! +Edit - MikeMaven - I'd just like to add my own confirmation. I was having problems with WPA2 at first. I think it was a result of the key refresh not occuring. I set it to 15 seconds, reconnected, and everything seems to be working great! For the record, I'm connecting to a 2wire AP using WPA2-Personal and the same key on both the physical and virtual interface.
-==MAC Filtering==+===Accessing Both Routers?===
 +Since all routers are on the same subnet, you will be able to access both of the routers when connected to either of them.
 + 
 +===MAC Filtering===
For those of you who have enabled MAC filtering on your Primary router, you need to add the WLAN MAC address of your Secondary router to the permitted MAC filter list of the Primary router. This is different than the MAC address printed on the bottom of the case, you can find it by going to Status->Wireless and the top line will list the internal MAC address. Of course, you will want to add the MAC filter list to the Secondary router. This should be setup prior configuring your WPA, WPA2, etc. settings otherwise you will spend some time pondering why the bridge isn't working. For those of you who have enabled MAC filtering on your Primary router, you need to add the WLAN MAC address of your Secondary router to the permitted MAC filter list of the Primary router. This is different than the MAC address printed on the bottom of the case, you can find it by going to Status->Wireless and the top line will list the internal MAC address. Of course, you will want to add the MAC filter list to the Secondary router. This should be setup prior configuring your WPA, WPA2, etc. settings otherwise you will spend some time pondering why the bridge isn't working.
-[EDIT - Redhawk] - The wording here was a little confusing. Once I used the Wireless MAC address then all worked correctly....the MAC filter address on the Primary router needs to be the "Wireless MAC" address listed on the Router Status page and not the LAN MAC address . (Use Router MAC +2) - Yes...I know it says WLAN but for an noob doing this procedure it could be confused.+[EDIT - Redhawk] - The wording here was a little confusing. Once I used the Wireless MAC address then all worked correctly....the MAC filter address on the Primary router needs to be the "Wireless MAC" address listed on the Router Status page and not the LAN MAC address . (Use Router MAC +2) - Yes...I know it says WLAN but for an noob doing this procedure it could be confused.
Special thanks to Griminal for providing a basic graphic which I modified for this Wiki Entry. Special thanks to Griminal for providing a basic graphic which I modified for this Wiki Entry.
-[[Category:English documentation]]+'''IF YOUR ROUTER WIRELESS KEEPS DISCONNECTING PLEASE CHOOSE REPEATER AND NOT REPEATER BRIDGE'''
 + 
 +===Site Survey Adjustment===
 + 
 +Site Survey does NOT create any connection. It only fills in the name of the primary router, which you must save for site survey to have any use. You can fill in the primary SSID simply by typing it in on the secondary router instead of using site survey to type it for you.
 + 
 +You can verify that the Bridge is using correct settings by looking at the Status -> Wireless page on the Bridge where it will show details of the SSID, channel, and encryption in use. The real indicator of proper association is on the Access Point, where the Bridge's MAC should appear on AP's list of active clients (also Status -> Wireless if the AP is running dd-wrt).
-== See Also ==+==See Also==
-* [[Linking Routers]]+[[Category:Wlan]]
 +[[Category:Switch]]
 +[[Category:Linking Routers]]

Current revision

Wiki Path: DD-WRT Wiki Main / Tutorials / Linking Routers / Repeater Bridge

Contents

[edit] Introduction

A wireless bridge connects two LAN segments with a wireless link. The two segments are in the same subnet and look like two Ethernet switches connected by a cable to all computers on the subnet. Since the computers are on the same subnet, broadcasts reach all machines. DHCP clients in one segment can get their addresses from a DHCP server in the other segment.

Use a wireless bridge to transparently connect computers in one room to computers in a different room when you cannot—or don't want to—run an Ethernet cable between the two rooms.

[edit] Difference between Station Bridge and Repeater Bridge

A standard wireless bridge (Station Bridge) connects wired clients to a secondary router as if they were connected to your main router with a cable. Secondary clients share the bandwidth of a wireless connection back to your main router. Of course, you can still connect clients to your main router using either a cable connection or a wireless connection.

The limitation with standard bridging is that it only allows wired clients to connect to your secondary router. Wireless clients cannot connect to your secondary router configured as a standard bridge. Repeater Bridge allows wireless AND wired clients to connect to a the Repeater Bridge router, and through that device wireless to a primary router. You can still use this mode if you only need to bridge wired clients; the extra wireless repeater capability comes along for free; however, you are not required to use it.

Reference Image
Reference Image

In the case in which we are interested, a secondary router running DD-WRT v24 is configured as a Repeater Bridge between a Primary wireless router (of any make/brand/FW) allowing the above configuration.

[edit] Assumptions

Primary router is configured in a 192.168.1.X subnet and leases DHCP address in the same pool. Secondary router is running DD-WRT.

If using a multi-band router, do not set more than one band to RB. The other radio(s) would normally be set as AP. For example, the 2.4GHz radio can a CB while the 5GHz is an AP, or vice versa.

Note: If you are unsure of what you are doing, it is advisable to practice by setting up the router first in Station Bridge mode and get it working correctly. Station Bridge mode is simpler, but most of the settings are the same. Once you understand how to set up a Station bridge and have it working, then proceed to setting up Repeater Bridge

[edit] Broadcom

This is a simple step-by-step guide to connect a router running current (2017) firmware in Repeater Bridge (RB) Mode. You do not need DD-WRT on the primary router for this to work, however, your primary router must be able to support encryption that works with DD-WRT (use WPA2-AES, not TKIP).

  • Read and understand the Firmware FAQ and (especially for MIPS) Peacock announcement before doing anything else.
  • Repeater Bridge with WPA2-AES is broken for k2.6 builds after 25974, though some models might work through 26125
  • Broadcom dhd driver models (e.g. AC5300 routers) cannot support RB (nor Station Bridge) modes since the driver is controlled by wireless firmware internal to the chipset. This makes it impossible to implement fake bridge modes, and is not fixable. While it can sometimes work without encryption, there is no guarantee nor official support. The driver will usually crash in these modes.

This mode is for a wireless bridge, where the SSID is repeated and the second router's ethernet ports provide wired connections to the main router, as if plugged into the main router.

For a secondary router running DD-WRT, the wireless mode must be configured as Repeater Bridge. It will connect to a primary router in AP mode (DD-WRT default) with DHCP Server enabled. Any type of VAP (Virtual Access Point) on the host should work, including a WDS-AP (Atheros) or any VAP including on another RB, but can depend on the host router.

[edit] Instructions

Make sure to click Save and not Apply between steps, as Save will commit the changes to NVRAM withough activating them (which Apply does), to prevent access problems, such as changing the IP address.

  1. Reset to Factory Defaults on secondary DD-WRT router
    • Optional (but suggested if having issues): Perform a hard reset
      • DO NOT 30-30-30 ARM routers. See your model wiki; some reset using the WPS button at power-up
      • Hold the reset button until lights flash (10-30sec) or 30-30-30 if appropriate for your router
  2. Hook up to the secondary router with an ethernet cable or as a wireless client.
    • The dd-wrt default wireless SSID is "dd-wrt"
  3. Open the GUI address http://192.168.1.1 in your web browser
  4. Open the Wireless -> Basic Settings tab
    • Physical Interface Section (for multi-band routers, only use Repeater on one radio)
      • Wireless Mode: Repeater Bridge
      • Wireless Network Mode: Match Primary Router
        • Usually N*-Mixed (or G-Only for pre-N routers), as Mixed may not work)
      • Wireless Network Name SSID: Must Match Primary Router EXACTLY including case
        • Note: some devices may not properly handle special characters, spaces, etc.
      • Wireless Channel: Usually leave at Auto for DD-WRT to determine the channel
      • Sensitivity Range (ACK Timing): 0 is recommended (this setting is not available for all routers)
      • Save (not Apply)
    • Virtual Interfaces Section: Click "Add"
      • Wireless Network Name(SSID): Same as Primary SSID. If having problems, try a different one.
        • k2.4 (broadcom folder) builds may require using a different SSID from the Primary
      • Save (not Apply)
  5. Open the Wireless -> Wireless Security tab
    • Physical Interface section (WPA2-AES strongly advised)
      • Security Mode, WPA Algorithms & Shared Key: Must Match Primary Router
    • Virtual Interfaces Section
      • Security Mode, WPA Algorithms & Shared Key: Must Match Physical Interface for k2.4
        1. WPA2-AES should be able to use a different password on k2.6 and newer
        2. WEP (with any password) or Open (disabled) should work on any kernel
      • Save (not Apply)
  6. Open the Security -> Firewall tab
  7. Open the Services -> Services tab: disable DNSMasq, then Save (not Apply)
  8. Open the Setup -> Basic Setup tab
    • WAN Connection Type: Disabled
    • IP Address: 192.168.1.2 (if not in use and assuming Primary Router IP is 192.168.1.1)
    • Mask: 255.255.255.0
    • Gateway: 192.168.1.1 (or Primary Router IP if not 192.168.1.1)
    • DHCP Server: Disable
    • Local DNS: 192.168.1.1 (or Primary Router IP if not 192.168.1.1)
    • Assign WAN Port to Switch: use WAN port as another LAN port (also allows access after a reset)
    • Change the Router Name (e.g. "DD-RB1") and set the Time Zone
      • Save (not Apply)
  9. Go to the (Setup ->) Advanced Routing tab: Change the Mode to Router
    • Save and then APPLY settings: allow router to reboot
  10. Log back into the router GUI at its new IP address: http://192.168.1.2 (or the chosen IP Address above)
  11. Check internet connectivity: try to ping the second router from a client plugged into the ethernet port, then try to ping the primary router, and finally try the internet.
  12. Reboot the router if not working

You should now be able to connect wired and wireless clients to the newly configured Secondary Router. It will receive IP addresses from the Primary Router via DHCP, and access the internet connection through it's gateway.

NOTES:

  • All repeaters including Repeater Bridge mode will sacrifice half of the bandwidth available from the primary router for clients wirelessly connected to the repeater. This is a result of the repeater talking in turn to the Primary Router and client, relaying the traffic between them. As long as your internet bandwidth requirements are within this halved bandwidth there will be little observed reduction in speed.
  • Repeater Bridge on Broadcom [also Atheros Station Bridge (routed)] is generally not a good solution, as it is not a true bridge (BS from the .de forum). It should be fine for internet access with few clients, but more clients or more complicated networking is likely to cause trouble, since MAC addresses will not transverse its bridge. In contrast, WDS is a transparent bridge and useful for these things. Also, the primary host router's log can be full of arp spoofing attempts if it has ARP Spoofing Protection enabled in its security. Repeater (Broadcom) [or Client (QCA/Atheros)] is much more suitable to use for extending wireless; if WDS is not available.

[edit] Troubleshooting

Encryption type and key must be the same on both the primary and secondary router. The first thing to do when running into problems is to remove all encryption and see if the routers can connect. This is the single most common reason that bridged routers don't work

  • Wireless Clients cannot connect to Repeater:

Disable security and try again. Delete and recreate your profile on the wireless computer. Check to make sure you have set security properly and that the key you used matches the key in the primary router. If one security type doesn't work try another on all routers. eg. try WEP or WPA2-AES [Mera Pakistan]

  • NAT: Open the Setup->Advanced Routing tab and change the mode to "router" instead of "gateway".
  • Wireless Clients have no Internet:

Ensure the Gateway IP is specified in the repeater bridge router, and that it is the primary router's address.

[edit] Ralink

Many in the forums were having issues with getting this to work with v24-sp2 on the DIR-615 rev D4.

  1. Restore Factory Defaults on Secondary (DD-WRT) Router
  2. Do a proper HARD 30-30-30 Reset on the router.
  3. Go to 192.168.1.1 and log in.
  4. Go to the wireless tab.
    • Choose Repeater Bridge under wireless mode.
    • Match your SSID and channel settings exactly to the main router you will be connecting to.
    • Make sure bridged is selected.
    • Click Save.
  5. Go to the Wireless Security tab.
    • Match these settings to your main router exactly.
    • Click Save.
  6. Go to setup>basic setup.
    • Choose a local IP in the same subnet that is not being used as your main router. If your main router is 192.168.1.1 then as long as it is not in use 192.168.1.2 will work. Assuming your ip is in this range the subnet will be 255.255.255.0 and the gateway and local dns will be 192.168.1.1.
    • Click Save
  7. Click Apply
  8. Check that the wireless is extended, and also with working LAN ports and internet

[edit] Qualcomm Atheros

Use build 32170 or newer. Do not follow the Broadcom instruction, as Qualcomm Atheros units set up a Repeater Bridge by using Station Bridge (Routed) with an added VAP.

  1. Follow the instructions in the Station Bridge (Routed) wiki to set up the station bridge, then follow the steps for adding a VAP below.



  • If you only have devices connected to the repeater via ethernet, click apply settings now. If you have both ethernet & wireless, or just wireless clients, continue below.


  1. Open the Wireless -> Basic Settings tab
  2. Go to Virtual Interfaces (ath0.1, ath1.1, etc.)
  3. Click Add Virtual AP
    • Wireless Network Mode: AP
    • Wireless Network Name (SSID): Same as the host router if you want a repeater, or different from the host router if you want your own separate network or for other advanced configurations.
    • Wireless SSID Broadcast: Enable
  4. Click Save
  5. Open the Wireless -> Wireless Security tab
    • All parameters must match the host router, exactly including capitals & security algorithm. EX: host using WPA2 Personal AES will still work if the repeater is set to WPA2 Personal Mixed AES, as it includes the algorithm in use (WPA2-AES).
  6. Click Save
    • Network Configuration: Bridged if you want a repeater to extend the current network of the host router.
  7. Click Apply Settings

[edit] Notes

[edit] SSIDs

Under "Wireless -> Basic Settings", you must use only the primary router's SSID for the physical interface to connect wireless clients and create a new SSID for the virtual interface. You will be able to tell which you are connected to as the two ssids MUST be different. (The only way to have one seamless network with the same ssid is to use WDS which almost always requires routers to support WDS AND have at least the same chipsets)

[edit] The "half bandwidth" misunderstanding

Too many people make a big deal out of the half bandwidth oversimplification of the repeater bridge setup. It's not that big of a deal, and not that complicated. A router can only talk to one device at a time. So if the router is set up as a repeater bridge AND it has active clients, the repeater bridge router must talk to two devices- the client computer and then to the primary router. This will effectively half the bandwidth available to the client computer, but it is no different than having two computers on a single primary router. The router can only talk to one at a time, so if both are active, it will only be able to talk to one at a time, effectively cutting the available bandwidth in half. So it really is no big deal. I see people all the time who are concerned about the "half bandwidth" issue, but are not at all concerned when there are two devices on their network. It's the same thing. And only matters at all when the device is active (transferring data to or from the wan).

[edit] Security

Dd-wrt will often not work unless BOTH the primary router and the secondary router use wpa2-aes security ONLY. Wep will also often work, but it is not secure.

Keep in mind any security settings will need to be configured including MAC filtering in order for the Secondary Router to connect to the Primary Router and also for clients connecting to the Secondary Router to gain full access to the connectivity of the Primary Router. There are some factors to consider when setting up Security for Station Bridge mode that may or may not be factors when setting up Repeater Bridge mode. I simply have not experimented with this.

[NOTE {Montrealmike}]Also when your adding WEP,WPA,WPA2 etc... between the AP and the repeater bridge you have to start with the AP first; then the repeater bridge.When you enable security on the repeater click save not apply, then click on the administration tab scroll down to the bottom and click apply settings. You will then have to power cycle the repeater twice ( unplug and plug back in twice ) in order for the repeater bridge and AP to synchronize. This has worked for four repeater bridges for me.

Edit - pmiller - I can also confirm the power cycling to sync the repeater to the AP. You can confirm that the repeater has syncronized with the AP by going to the Status>Wireless tab on the AP and viewing the MAC address of the repeater with some % signal quality value. Before doing 2 power cycles on the repeater, the MAC address would display on the AP's Status>Wireless tab, but with 0% signal quality. After the power cycles the % quality displayed around 30%. I played around with other security settings later on the AP and found the 2 power cycles to be unnecessary after the 2 had originally sync'ed- no idea why this would work, but it did. I had some difficulty at first because I had security enabled on the AP as WPA2-Personal Mixed, which is basically WPA2-AES or WPA-TKIP simultaneously. The repeater is unable to connect with the AP in this mixed mode; rather you must choose between WPA2-AES or WPA-TKIP . I have now switched both my wireless security settings to WPA-TKIP (physical and virtual) just for simplicity, though in theory the virtual need not match the physical. Your security is as good as the weakest link. For those having trouble, I would turn off all security and turn on SSID broadcast first, then once you get a good sync turn on security on the AP first, then

Edit - crandler - WPA2 personal mixed with Linksys WAG160N as DSL uplink with original firmware and WRT160N with dd-wrt v24 std in repeater bridge mode does not function. Had do switch both devices to WPA2 personal.

Edit - ytal - Using encryption for the bridged connection only works if I either use the same encryption data (incl. ESSID) on the other (virtual) interface or do not use any encryption on the virtual interface at all. If set differently, the wireless link to the base station fails. Base station is a Speedport W500V / Targa WR 500 VoIP (http://forum.openwrt.org/viewtopic.php?id=5774) with the original Telekom firmware.

Edit - RamonBuckland - I found that setting the security to off worked first. But WPA2 Personal did not. I then lowered the key refresh to 15 seconds (same Wireless Security settings tab) on both routers and applied. They then found each other. One would figure if I were patient enough (to wait 3600 seconds, 1 hour) then it would have worked. So .. I think the key renewal is what throws them. I have it now working WPA2 Personal (AES) with a key renewal of 15 seconds. Perhaps upping it now to an hour and walking away (from the house) they will work :-) logically. Good work peoples.

Edit - MikeMaven - I'd just like to add my own confirmation. I was having problems with WPA2 at first. I think it was a result of the key refresh not occuring. I set it to 15 seconds, reconnected, and everything seems to be working great! For the record, I'm connecting to a 2wire AP using WPA2-Personal and the same key on both the physical and virtual interface.

[edit] Accessing Both Routers?

Since all routers are on the same subnet, you will be able to access both of the routers when connected to either of them.

[edit] MAC Filtering

For those of you who have enabled MAC filtering on your Primary router, you need to add the WLAN MAC address of your Secondary router to the permitted MAC filter list of the Primary router. This is different than the MAC address printed on the bottom of the case, you can find it by going to Status->Wireless and the top line will list the internal MAC address. Of course, you will want to add the MAC filter list to the Secondary router. This should be setup prior configuring your WPA, WPA2, etc. settings otherwise you will spend some time pondering why the bridge isn't working.

[EDIT - Redhawk] - The wording here was a little confusing. Once I used the Wireless MAC address then all worked correctly....the MAC filter address on the Primary router needs to be the "Wireless MAC" address listed on the Router Status page and not the LAN MAC address . (Use Router MAC +2) - Yes...I know it says WLAN but for an noob doing this procedure it could be confused.


Special thanks to Griminal for providing a basic graphic which I modified for this Wiki Entry.

IF YOUR ROUTER WIRELESS KEEPS DISCONNECTING PLEASE CHOOSE REPEATER AND NOT REPEATER BRIDGE

[edit] Site Survey Adjustment

Site Survey does NOT create any connection. It only fills in the name of the primary router, which you must save for site survey to have any use. You can fill in the primary SSID simply by typing it in on the secondary router instead of using site survey to type it for you.

You can verify that the Bridge is using correct settings by looking at the Status -> Wireless page on the Bridge where it will show details of the SSID, channel, and encryption in use. The real indicator of proper association is on the Access Point, where the Bridge's MAC should appear on AP's list of active clients (also Status -> Wireless if the AP is running dd-wrt).

[edit] See Also