WDS Linked router network

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 04:42, 10 March 2009 (edit)
Soulstace (Talk | contribs)
m (Working Products - this section is kind of silly)
← Previous diff
Current revision (19:11, 3 January 2019) (edit) (undo)
Jeremywh7 (Talk | contribs)
m (Add definition of Lazy WDS)
 
(193 intermediate revisions not shown.)
Line 1: Line 1:
-You are here: '''[[Main_Page|DD-WRT wiki mainpage]] / [[Linking_Routers|Linking Routers]] / WDS Linked router network'''+'''''Wiki Path''''': [[Main_Page|DD-WRT Wiki Main]] / [[Tutorials]] / [[Linking Routers]] / '''WDS Linked router network'''
-=Atheros=+{{Languages|WDS_Linked_router_network}}
-==FAQ==+
-* Only set the ap to "'''wds ap'''" and the clients to "'''wds station'''". Put all on the same SSID. Now set your prefered wireless encryption. '''Don´t''' set the wds mac table! This makes always trouble so stay away from it.+
-* WDS between different chip vendors (atheros, broadcom, ralink) will not work since its '''INCOMPATIBLE''' and no we will '''NOT''' fix it<br>+
-* WDS-Sta will not ork as AP. This is not possible @ atheros+
-=Broadcom=+=Basic Definitions=
 +'''WDS''' – Wireless Distribution System connects one or more routers to a main router to wirelessly share internet, allows roaming between routers
-WDS (Wireless Distribution Service) creates a wireless backbone link between multiple access points that are part of the same wireless network. This allows a wireless network to be expanded using multiple access points without the need for a wired backbone to link them, as is traditionally required. The WDS-enabled access points '''can''' accept wireless clients (e.g. wireless laptop users) just as traditional APs would.+'''Subnet''' – the octets of an IP address selected by the subnet mask (e.g. 255.255.255.0, thus for 192.168.X.Y the subnet low octet is X)
-Also take note of the fact that all repeaters, including this WDS Repeater 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 taking turns talking to not just one partner, but to two, and having to relay the traffic between them. As long as your bandwidth requirements are within this halved bandwidth amount there will be little or no reduction in "speed".+'''Host router''' – the main router connected to the internet, to share with clients
-In regards to integration with DD-WRT, it is confirmed working with WEP, WPA, and WPA2.+'''Client router''' – the router not connected to the internet, to connect with the host router. There can be several clients
-==Working Products==+'''WDS AP''' – the host router "Wireless Mode" selection, only on Qualcomm Atheros routers
-Pretty much everything works with WDS... (maybe in the future we should replace this list of working products with a list of devices that don't work instead. but I bet we'll be hard pressed to find any..)+
-* 3Com OfficeConnect,3CRWE454G72, in Repeater Mode+
-* Alcatel Speedtouch 580+
-* [http://www.dd-wrt.com/wiki/index.php?title=WDS_Linked_router_network#Setting_up_WDS_between_a_DD-WRT_router_and_an_Apple_Airport_Express Apple Airport Express]+
-* Asus WL-500g+
-* Asus WL-520gU+
-* Belkin F5D7130 Wireless Range Extender/Access Point+
-* Belkin F5D7230-4 802.11g Wireless DSL/Cable Gateway Router+
-* Belkin F5D7231-4+
-* Buffalo WHR-G54S+
-* Buffalo WHR-G125+
-* Buffalo WBR2-G54+
-* Buffalo WHR-HP-G54+
-* CompUSA SKU#333628 54Mbps Wireless Broadband Router (aka Edimax br-6204WG) [[http://www.edimax.com.tw/html/english/frames/b-download.htm upgrade firmware]]+
-* CompuShack SWA-103 (Waveline Micro AccessPoint) AP+Repeater Mode (only with static IP or DHCP over LAN - not WLAN)+
-* Comtrend 536++
-* D-link DGL-4300+
-* Fujitsu Siemens AP-600RP+
-* HighGainAntennas 8186HP CPE [[http://www.highgainantennas.com/product_p/8186hp%20cpe.htm 8186HP]]+
-* Linksys WRE54G Wireless Range Expander+
-* Linksys WRT54G v2, v3, v4, v5, v6, v8+
-* Linksys WRT54GS v1.1+
-* Linksys WRT350N+
-* Linksys WRT600N v1.1+
-* Motorola WR850G v3+
-* Netfaster Iad+
-* Netgear WG602 v3 Repeater Mode+
-* Siemens Gigaset SE505+
-* Siemens Gigaset Repeater+
-* Sinus 154 Basic SE+
-* Sinus 1054 DSL+
-* USRobotics 5450 (AP Client mode)+
-* Billion BiPAC 7402VGO+
-* Billion BiPAC 7402VGP+
-* Billion BiPAC 7404VGP+
-==Installation (only for Broadcom based devices)==+'''WDS Station''' the client router "Wireless Mode" selection only on Qualcomm Atheros routers
-Standard terminology for a two router setup:+
-* The '''client router''' is the router which does not have an internet connection.+
-* The '''host router''' is the router which does have the internet connection and is going to share it with other routers.+
-===Setup===+'''WDS AP VAP''' a virtual access point created on the WDS Station to extend the WDS AP’s wireless network, only required on Qualcomm Atheros routers (see more under Multiple WLANs)
-====Two or more WRT54G / WRT54GS / WRT54GL boxes====+
-# ''(Optional)'' Save the current configuration of both routers: '''Administration -> Backup'''. Click "Backup" button and follow prompts so save nvram backup files, i.e. nvram_host.bin, and nvram_client.bin. The configurations can be restored if the setup doesn't work out and you need to quickly get back to a different (working) configuration.+
-# Reset both routers to factory default settings so other settings will not have a possible conflict: Use the router's reset button or do it via the UI '''Administration -> Factory Default - select yes - click "Save Settings" button.'''+
-# Give both the routers a different IP address, i.e. 192.168.1.1 (host/internet gateway) and 192.168.1.2 ("client router") on the same subnet. '''Setup -> Basic Setup'''+
-# ''(Optional)'' Change the Internet Connection Type to Disable on the client router. '''Setup -> Basic Setup -> Internet Setup -> Internet Connection Type -> Disable'''+
-# Set the Gateway and DNS IP addresses of the client router to the LAN IP address of the host router. '''Setup -> Basic Setup -> Network Setup -> Router IP -> Gateway'''+
-# For the client router router, under '''Setup -> Basic Setup -- Network Address Server Settings (DHCP) -- disable DHCP server. '''Only have the gateway router perform DHCP services. There can only be one DHCP server on any subnet (network) for reliable operation.'''+
-# '''Important !''' Do Not use the DHCP forwarder either. It is equally as confusing to the network. The WDS bridge is exactly that, a bridge. All clients connecting to the repeater are bridged at the MAC layer to the primary radio and they will obtain their DHCP lease from the primary radio as though they were connecting directly to it.+
-# ''(Optional)'' Turn off the firewall on the client router. '''Security -> Firewall -> Firewall Protection -> Disable'''+
-# Turn off security on both routers (this should already be done if you reset as above). Security can be re-enabled after all other steps are complete, but in order to minimize troubleshooting, it's best to get things setup with no security active. '''Wireless -> Wireless Security -> Security Mode -> Disabled'''+
-# Put both routers into AP mode and on the same channel. '''Wireless -> Basic Settings'''+
-# Under '''Wireless -> Basic Settings''', set the SSID to your liking. For WPA WDS, the SSID for the routers needs to be the same. For WEP, different SSIDs can make troubleshooting easier.+
-# If you plan to use WPA later, select '''Mixed''' or '''G-only''' in '''Wireless -> Basic Settings'''. You cannot use B-only with WDS.+
-# Open WDS configuration on both routers. '''Wireless -> WDS'''+
-# On each router, you will see its wireless MAC address at the top of the '''Wireless -> WDS''' page (note that this MAC address is different from the one that may be printed on the case!). Select '''LAN''' for the type, and put each router's wireless MAC into the table of the other router. If needed, consult [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=174523 WDS - configuration for more than two routers] for some helpful info.+
-# There is no need to enable '''Lazy WDS''' or '''WDS subnet''' on either router.+
-# ''(Optional)'' Finally, Under '''Setup > Advanced Routing [ Static Routing ]''' : For the Host router put in the IP for client router & for the client router put in the IP for the host router. Use same subnet and gateway of host router. Select LAN&WLAN. This makes sure the bridge is given a static IP route.+
-# You can go to Status > Wireless and at bottom check WDS Nodes make sure signal strength is not zero+
-# Test that you can ping the gateway from the client. Note that it may take a short amount of time for the WDS to be established, and you may need to reboot both the gateway and the client.+
-# Enable encryption now, if you like (highly recommended).+
-====Multiple router setup====+'''Lazy WDS''' - normally only used on the host instead of setting the client MAC, to dynamically grant WDS membership to any client
-See [[WDS multiple router setup]]+
-====Apple Airport Express====+'''MAC address''' – device specific address, not easily changeable. Usually in the format XX:XX:XX:XX:XX:XX, where X is a Hex number (0 to F)
-Verified with DD-WRT v2.3 (12/25/05) and AirPort Express v6.20 [1-21-2006]+
-Information updated for AirPort Express v6.3 and AirPort Utility v5.3.1 [3-16-2008]+=Qualcomm Atheros, Broadcom, or Ralink (Must be running dd-wrt)=
 +The first step is to know what chipset your routers use, specifically the manufacturer.
 +For WDS to work reliably the routers must be all the same chip manufacturer.
 +A good way to determine the chip manufacturer is to go to the Status page and read what CPU Model it has. Another method is to go to https://wikidevi.com and look up the model number and specific hardware revision. Ex: TP-Link 1043nd v3
-'''DD-WRT''' (Save settings after each step)+===Note about WDS and different chip manufacturers===
-# '''Wireless -> Basic Settings"''' Set the channel on the DD-WRT to 1. +WDS between different chip vendors (qualcomm atheros, broadcom, ralink) will not work most of the time since it's INCOMPATIBLE and no we will NOT fix it. There is an unsupported, unsecure (no wireless security or WEP) method to connect a Broadcom (main router) with a Qualcomm Atheros (secondary router). This will be discussed further down.
-## '''Wireless -> WDS:''' Select "LAN" option and enter the Airport Express's "AirPort ID" (can be found on the underside of the AirPort Express itself - be careful not to choose the "Ethernet ID"). +
-## Set Lazy WDS and WDS subnet to disable+
-# '''Administration -> Management:''' Set Loopback to disable. +
-# '''Security -> Firewall:''' Turn off "Block Anonymous Internet Requests."+
-'''AirPort Express'''+===Note about dual-band WDS===
-# Open AirPort Utility (found in /Applications/Utilities), select your AirPort Express from the left panel, and click "Manual Setup"+Only use a WDS bridge on one radio's (2.4GHz '''or''' 5GHz) Wireless Mode, as bridging more may cause wireless issues.
-# In the "AirPort" section:+
-## Select "Wireless" tab+
-### Select "Participate in WDS network"+
-### Set Network name to your wireless SSID name+
-### Set the wireless channel to 1+
-### Choose your security (only WEP will work wirelessly - if you want WPA on your network, you're going to have to connect the AirPort via an ethernet cable)+
-## Select "WDS" tab+
-### Set "WDS mode" as "WDS remote"+
-### In the Main Aiport ID section enter your DD-WRT wireless MAC (can get this in '''Status -> Wireless''')+
-# In the "Music" section (if you want to use AirTunes):+
-## Make sure "Enable AirTunes" is selected+
-## Name and password-protect your speakers+
-# Click "update"+
-If it works then there will be a solid green light (may take a couple of minutes) . If it does not work, you should connect Airport Express and WRT54G/GS using a CAT-5 cable and set up it. It might work.+=Qualcomm Atheros Based Devices=
 +Before starting these instructions, please read [[Atheros/ath_wireless_settings|QCA Wireless Settings]]
-This information is from [http://ryanschwartz.net/2004/08/05/airtunes-airport-express-and-the-wrt54g AirTunes, AirPort Express, and the WRT54G at ryanschwartz.net - and has since been edited to update information].+'''Step 1:''' First set a static IP in the same subnet as the WDS AP and WDS Station. Use any number outside of the DHCP range (default range is 192.168.1.100 to 192.168.1.149). It is easier to have hardwired access to both routers when setting this up.
-Also note that the above configuration with the Airport Express works with either no encryption or WEP encryption. When using WEP encryption, make sure you enter your WEP key into the Airport Express exactly how it is entered into the WRT54G, but '''add a <code>$</code> to the beginning of the key'''. $ key is meant for hex (WEP). If you're not using hex, then you can leave it blank as normal. +'''Step 1 a):''' (Optional, but advised) Reset to default all of the routers if possible. Do not restore settings, you can make a backup if you wish. Change the filename of the back up to match the router and record the build revision.
-In addition, also note that the wireless channel does not need to be 1, but it must be the same for both the DD-WRT and Airport Express. I have both units set to channel 11 and WDS works perfectly.+'''Step 2:''' Log in to the WDS AP.
-WPA/WPA2 encryption does not appear to work over WDS (but will work when the Airport Express is configured in client mode - but in client mode, the RJ45 connection is not usable). The error that the WRT54G reports back when the Airport Express is trying to associate via WPA over WDS is: <code>eapol_sup_dispatch wds0.49153: unknown EPOL type 3 </code>. EPOL has to do with WPA, so perhaps if this issue can be resolved, then the two devices could associate. [EDIT: WPA2 seems to work just fine with the above configuration, as of March 16 2008.]+'''Step 3''': On the Setup → Basic Setup page change the following settings
 +* STP – Enabled
 +* Click Save (at the bottom)
-Warning: This guide does not work for Atheros-based DD-WRT routers, such as the D-Link DIR-300. Airport Express will not be able to participate in the WDS network.+'''Step 4:''' On the Wireless → Basic Settings page change the following settings
 +* Change Wireless mode to WDS AP
 +* Make sure Wireless SSID Broadcast is enabled
 +* Make a note of the other settings (not advanced settings) on that page, you will need them for the WDS Station later
 +* Check the Advanced Tickbox
 +* Enable Short Preamble
 +* Enable Short GI
 +* Click Save
-Troubleshooting: Make sure that you disable the "AP Watchdog" daemon. If you have a wireless endpoint (like a laptop) which connects to the Airport station (because you use WDS) then the Linksys does not see any clients connected and restarts the wireless network over and over. You also could change other channel apart from 1, if you're having problems and you don't have to disable loopback.+'''Step 4 a):''' Go to the appropriate WDS page, you only need to use one,
 +* Wireless → ath0-WDS page - 2.4GHz
 +* Wireless → ath1-WDS page - 5GHz
 +* Wireless → WDS page for single band routers
 +* Make a note of the MAC addresses listed on the top of the page
-===Notes===+'''Step 5:''' On the Wireless → Wireless Security page make a note of all of the settings:
-* In some cases it may help to put the IP of the client router as a DMZ'd machine in the host router. Of course, this only works with a WDS between 2 routers.+* password
-** http://www.dd-wrt.com/phpBB2/viewtopic.php?t=669&highlight=dmz+* encryption type, see recommended settings [[Atheros/ath_wireless_settings|QCA Wireless Settings]]
-* The source material for this list comes primarily from the following DD-WRT forum posts:+* Click Apply, wait for the page to reload (Don’t close the page)
-**http://www.dd-wrt.com/phpBB2/viewtopic.php?t=124+
-* If you're using encryption, remember to configure it on all routers!+
-* Set encryption after you got a running WDS.+
-* On the main '''Status''' page and the '''Wireless Status''' you can see the signal strength for any other routers in the WDS. If they are showing 0 then you're not connecting to them for some reason (wrong MAC address or, for WPA links, wrong SSID).+
-** It seems that when WPA2 is enabled, WDS does not work well with TKIP+AES: client router reports no signal from the host router, while the host router reports a valid signal from the client routeur. Using TKIP only helps.+
-** WPA2 is works fine with TKIP+AES: Set both client and host to the same security settings, with the same password. Version in use is v24 Beta (07/12/07) - std on 2 Buffalo WHR-G125s.+
-* If you want to use more than 2 repeaters with WDS and define multiple WDS paths for redundancy then you MUST enable STP or the network will loop back on itself and destroy all functionality. [Quote from GeeTek]+
-* There is a known bug in v24 and v24-sp1 that affects WDS. See+
-http://www.dd-wrt.com/phpBB2/viewtopic.php?p=208327#208327+
-<font color=blue>+'''Step 6:''' Log in to the WDS Station.
-==Installation en français==+
-<br><br>+
-'''THIS IS AN ENGLISH DOCU SO REMOVE THE FRENCH STUFF AN MOVE IT WHERE IT BELONGS. Else it will be deleted!'''<br><br>+
-Terminologie standard dans le cas d'une configuration basée sur deux routeurs:+
-* Le '''routeur client''' est le routeur qui n'a pas de connection internet.+
-* Le '''routeur hote''' est donc le routeur qui a la connection internet et la partage avec les autres routeurs.+
-===Deux routeurs WRT54G / WRT54GS / WRT54GL ou plus===+'''Step 7:''' On the Setup Basic Setup page change the following settings
-===Configuration===+* Change WAN Connection Type to Disabled
-# Sauvegardez la configuration de chacun des deux routeurs: '''Administration -> Backup'''. Cliquez sur le bouton "Backup" et suivez les instructions afin de sauvegarder les fichiers nvram, i.e. nvram_host.bin, et nvram_client.bin. Ces configurations pourront être restaurées si le setup ne fonctionne pas correctement et que vous soyez obligé de revenir rapidement à une configuration (fonctionnelle ;0) ) différente.+* STP – Enabled
-# Réinitialisez les deux routeurs en mode usine de façon à éviter tout conflit de paramètrage: '''Administration -> Factory Default - choisissez yes - cliquez sur le bouton "Save Settings".'''+* Local IP address must be in the same subnet as the WDS AP but outside of its DHCP range (Ex: 192.168.1.2, if using the default range)
-# Attribuez sur le même sous-réseau une adresse IP différente à chaque routeur, i.e. 192.168.1.1 (hote/passerelle internet) et 192.168.1.2 ("routeur client". '''Setup -> Basic Setup'''+* (Optional) Assign WAN Port to switch – Enable (This provides another LAN port on the WDS Station)
-# Sur le routeur client modifiez Internet Connection Type à Disable. '''Setup -> Basic Setup -> Internet Setup -> Internet Connection Type -> Disable'''+* Change the Default Gateway and Local DNS (default is 0.0.0.0 for both) to the IP address of the WDS AP
-# Sur le routeur client configurez comme adresse IP de la passerelle l'adresse LAN du routeur hote. '''Setup -> Basic Setup -> Network Setup -> Router IP -> Gateway''' (Dans notre exemple 192.168.1.1)+* Click Save
-# Pour chaque routeur, dans '''Setup -> Basic Setup -- Network Address Server Settings (DHCP) -- Start IP Address''', déclarez des adresses IP de départ différentes. Par exemple l'hote 192.168.1.1 démarrera ses adresses DHCP à 100 et le client à 200. Ceci vous permettra de déclarer un serveur DHCP sur chaque routeur et de savoir sur lequel vous êtes connecté. Ceci s'avère très pratique lorsque connecté en WiFi à l'aide de votre portable vous voulez savoir à quel routeur vous êtes relié et modifier vos paramètre de puissance (à la fois portable et routeur).Alternativement, vous pourrez disabler le DHCP sur le(s) routeur(s) client et ne conserver que les services DHCP de la passerelle (gateway).+* Uncheck all of the check boxes under DHCP
-# Sur le routeur client, dans '''Setup -> Basic Setup -- Network Address Server Settings (DHCP) -- Static DNS 1,2,3''' saisir les adresses DNS fournies par votre fournisseur d'accés ([http://www.zonehd.net/dossier/les-dns-des-fai-haut-debit/]). On peut aussi les trouver sur le routeur hote dans Status -> Router -- Internet.+* Disable the DHCP Server
-# Désactiver le firewall sur le routeur client. '''Security -> Firewall -> Firewall Protection -> Disable'''+* Click Save (at the bottom)
-# Désactivez la sécurité sur les deux routeurs (si vous avez fait un reset ça doit déjà être fait). vous pourrez réactiver la sécurité à la fin du tutorial mais pour minimiser les problèmes il est préférable de la desactiver. '''Wireless -> Wireless Security -> Security Mode -> Disabled'''+
-# Configurez les deux routeurs en AP sur le même canal. '''Wireless -> Basic Settings '''+
-# Dans '''Wireless -> Basic Settings''', configurez le SSID. Pour un WDS en WPA, les SSIDs doivent être identiques. Pour le WEP différents SSIDs peuvent causer des problèmes.+
-# Si vous souhaiter par la suite activer le WPA sélectionner '''G-only''' dans '''Wireless -> Basic Settings'''. Il n'est pas possible d'uiliser le B en WDS.+
-# Ouvrez la configuration WDS sur les deux routeurs. '''Wireless -> WDS'''+
-# Notez pour chaque routeur l'adresse MAC affichée en haut de '''Wireless -> WDS page'''. Renseigner l'adresse MAC dans la table de l'autre routeur (host dans client et client dans host), et sélectionnez LAN pour le type. (Note that this MAC address is different from the one that may be printed on your case!=> Pas compris l'intérêt de cette phrase: Sur le boîtier du WRT on trouve une MAC Address et un numéro de série. Cette MAC address *n'est pas* la bonne. Le WRT a en fait trois MAC address: 1 pour le WAN, 1 pour le LAN et une pour le Wifi).+
-# Inutile d'activer '''Lazy WDS''' or '''WDS subnet''' sur les routeurs.+
-# Essayez de pinger la passerelle à partir du client. (Le WDS peut prendre quelques temps à se mettre en place, il est aussi possible que vous soyez amené à rebooter les deux routeurs ; faites-le, ne serait-ce que pour être sûr de fonctionner après une coupure de courant)+
-# Vous pouvez maintenant activer l'encryption (trés recommandé). +
-</font>+
-==WDS Bridging without Access Point Function==+'''Step 8:''' Go to the Security → Firewall page
-(NOTE: This appears to be broke with v24 Final)+* Uncheck all of the boxes except Filter Multicast
 +* Click Save
 +* Check the Disable button at the top
 +* Click Save
-Sometimes you just want to bridge two points together. WDS has the advantage of correctly passing MAC addresses so either end could be the host (Internet connection on the LAN side). +'''Step 9:''' Go to the Wireless → Basic Wireless page
-# Set up your WDS routers as you wish+* Put in the exact same settings as on the WDS AP - same SSID, encryption, etc
-# Turn off the AP function using the following commands in the shell+* Change the Wireless Mode to WDS Station
-<pre>nvram set wl0_mode=wds+* Check the Advanced check box
-nvram commit+* Enable Short Preamble
-reboot</pre>+* Enable Short GI
 +* Click Save
-You may also need to issue an additional command of+'''Step 10:''' (Optional) - To extend the wireless network of the WDS AP, or daisy chain WDS Station to WDS Station
-<pre>nvram set wl_mode=wds</pre>+* Under Virtual Interfaces, Click Add
-to turn off the AP.+* Change the Wireless Mode of the Virtual Interface to WDS AP
-#After it reboots you'll have a WDS bridge which doesn't allow wireless clients.+* Type in the SSID for the Virtual Interface exactly (same capitalization) as it is on the WDS AP (main router)
 +* Click Save
-==Troubleshooting==+'''Step 11:''' Go to the Wireless → Wireless Security page
-WDS between DD-WRT v23 and DD-WRT v24 is imposible, thats a broadcom driver issue!+* Put in the same Security Mode (WPA vs WPA2), WPA Algorithms (AES vs TKIP), and WPA shared password, on the ath0 or ath1 network.
-by Meex+* Repeat this step if you added a Virtual interface in WDS AP mode. Ex: ath0.1, ath1.1, etc
-info by BrainSlayer +* Click Save
-===Same LAN MAC Address Problem===+'''Step 12:''' On the WDS Station, go to the appropriate WDS page, same as Step 4.a)
-If you are using two WRT54G V5V6 with same firmware version, you may end up on that both router use exactly same MAC address on its LAN, WAN, Wireless. Although you can change WAN and Wireless MAC address at WEB interface, it is hard to change LAN MAC address. +* Change one of the drop-down boxes to LAN
 +* Put in the WDS AP MAC in the boxes on the same row
 +* Put in a user recognizable name in the large box next to the MAC (Does not have to be the actual name of the router)
 +* Repeat this step for adding other Stations to connect to this station.
 +* Make sure Lazy WDS and WDS subnet are Disabled
 +* Click Save
 +* Click Apply, wait until the page reloads
-If both router use same LAN MAC address on WDS, you will see that: you can Ping any computer on both router, but you can NOT ping either router's IP, it will show "Destination Host Unreachable".+'''Step 13:''' Go back to the WDS AP (main router)
-To fix this, please refer thread:+'''Step 14:''' On the WDS AP, go to the appropriate WDS page. Same as Step 4.a)
 +* Change one of the drop-down boxes to LAN
 +* Put in the WDS Station’s MAC in the boxes on the same row.
 +* Put in a user recognizable name in the large box next to the MAC (Does not have to be the actual name of the router). This only helps in identifying if the routers are connected as seen on the Status – Wireless page
 +* Repeat this step for adding other WDS Stations to connect to this station.
 +* Make sure Lazy WDS and WDS Subnet are Disabled
 +* Click Save
 +* Click Apply, wait until the page reloads
-https://www.dd-wrt.com/phpBB2/viewtopic.php?p=174925&highlight=&sid=4b806e3de8e572f678c8526ccf9ae5f6+'''Step 15:''' Go back to the WDS Station
-I have to revert one of my router back to Linksys version, then flash it again with custom build killer file.+'''Step 16:''' Go to the Administration → Keep Alive page
 +* Enable the WDS Connection watchdog
 +* Put in the IP address of the WDS AP
 +* Put in an interval such as 300 (5 min) or 1000 seconds.
 +* This will reboot the WDS Station if it can’t find the WDS AP
 +* This means that if you have to reboot the WDS AP, you don’t have to manually reboot all of the WDS Stations
-Info by Victor+'''Step 17:''' Test the setup, move the routers apart and test with various wireless devices.
-===Constantly losing connection to Samba/Shared folder=== 
-If you notice that you constantly lose connection to your machine while streaming a video or transferring a file from a Samba/Shared folder over your WDS, you might want try underclocking your routers to the same CPU speed. Some Linksys WRT54G/GS are set as 216mhz (factory default), even after flashing dd-wrt. Try underclocking them to 200mhz under Administration -> Management -> Overclocking, in the dd-wrt administrative console. For a detailed list of which versions of Linksys WRT54G/GS run at what speed, please check the Wikipedia link to [http://en.wikipedia.org/wiki/WRT54G Linksys WRT54G Series] 
-Note: This may not be necessary, if you experience this problem it might be worth trying but don't do it unless you have a problem. Changing the clock speed is somewhat of a risk and could damage your router.+=Broadcom Based Devices=
 +'''Setup/Configuration for Broadcom Based Devices'''
 + 
 +'''1.''' [Both routers] Save the current configurations: Administration -> Backup. Click the Backup button and follow prompts to save NVRAM files, e.g. nvram_host.bin and nvram_client.bin. These can be restored if the new setup doesn't work, to quickly revert to the previous (working) configuration.
 + 
 +'''2.''' [Client] Reset to factory defaults to eliminate potential conflicts from other settings. Either use the router reset button or the GUI: Administration -> Factory Defaults -> Reset router settings -> Restore Factory Defaults, select Yes (radio button), click Apply Settings, then wait for the router to reboot. (Optional) Reset the host router also, unless impractical (e.g. the host is part of a working network), to simplify debugging the new setup.
 + 
 +'''3.''' [Client] Change the WAN Connection Type to Disabled. Setup -> Basic Setup -> WAN Setup -> WAN Connection Type . Also enable STP.
 + 
 +'''4.''' [Client] Set the Local IP Address to one in the same subnet as the host router (e.g. 192.168.1.1 (host/internet gateway) and 192.168.1.2 (client router)). If the host router has been reset, set its Local IP Address as well. On the client, set the Gateway and Local DNS IP addresses to the Local IP Address of the host. Setup -> Basic Setup -> Network Setup -> Router IP
 + 
 +'''5.''' [Client] Disable the DHCP server. This allows the host to perform DHCP services. There can only be one DHCP server on any subnet (network) for reliable operation. Setup -> Basic Setup -> Network Address Server Settings (DHCP) . Also Uncheck the Three boxes below the DHCP Server.
 + 
 +'''6.''' [Client] Navigate to Setup > Advanced Routing. In the dropdown box for Operating Mode, Select Router. Click Save
 + 
 +'''7.''' [Client] Navigate to Services. Disable DNSMasq as well as WAN Traffic Counter. Click Save
 + 
 +'''8.''' [Client] Disable the firewall. Security -> Firewall -> Firewall Protection -> SPI Firewall. First Uncheck everything BUT Filter Multicast, click Save. Now Disable the SPI Firewall and click Save.
 + 
 +'''9.''' [Both routers] Set the Wireless Mode to AP and make sure the Wireless Channel is the same. For Wireless Network Mode, you can select Mixed , G-Only , NG-Mixed, or N-Only. Set the Wireless Network Name (SSID) to your liking as long as it is exactly the same on both routers. If running N or NG-Mixed , WPA2 + AES is the only form of encryption that can be used.
 + 
 +'''10.''' [Both routers] (Recommended) Disable wireless security (the default after reset) until WDS is working to minimize troubleshooting. If impractical (e.g. host is part of a working network), ensure all security settings on the client and host match exactly. Wireless -> Wireless Security -> Wireless Security wl0
 + 
 +'''11.''' [Host] (Important) disable MAC address filtering
 + 
 +'''12.''' [Both routers] Open the WDS configuration page/Tab. For each router, you will see its wireless MAC address (Wireless MAC) at the top of the page. Note that this MAC address is different from the one that may be printed on the case. In the first open row of the table, select LAN from the dropdown list (The router will pause for a second) and enter each router's wireless MAC address into the table of the other router. It is not necessary to enable Lazy WDS or WDS Subnet on either router. If necessary, consult WDS - configuration for more than two routers for some helpful info. Wireless -> WDS -> WDS Settings
 + 
 +'''13.''' (Optional, but not recommended) On the client router, configure static routing (Setup -> Advanced Routing) for Destination LAN NET and enter the IP address of the host router. Use the same settings for Subnet Mask and Gateway that are used by host router. For Interface, select LAN & WLAN. This step ensures that the bridge is given a static IP route. Setup > Advanced Routing -> Static Routing
 + 
 +'''14.''' [Both routers] Check the wireless status page to see that the other is present in the WDS Nodes section. Make sure signal strength for each is not zero. Status -> Wireless -> Wireless Nodes -> WDS Nodes. If it is 0%, and there are no indication of the router transmitting or receiving packets, Unplug the client router for ~10 seconds , then re-insert power. Give it no more than 3 minutes to boot and obtain the WDS link from the host router.
 + 
 +'''15.''' Test that you can ping the host from the client. Note that it may take a short amount of time for the WDS link to be established, and you may need to reboot either the client or host router (or both).
 + 
 +'''16.''' (Highly recommended) If disabled, enable wireless security now. First enable it on the Client router, wait 5 seconds, then enable it on the Host router. Watch the Wireless LED's on the host router, if they are blinking, you're in business. If they're solid, power cycle the client router.
 + 
 +'''17.''' If you set the SSID of the client router to be different from that of the host router, you need to make them the same in order to enable WPA/WPA2 encryption security. Using WPA/WPA2 encryption also requires STP to be enabled on all routers for a reliable link.
 + 
 +'''Screenshots of the process, with examples of the respected configurations in the best order as outlined above:'''
 +[[Image:SetupBasic.png]]
 + 
 +[[Image:SetupAdvanced.png]]
 + 
 +[[Image:SetupServices.png]]
 + 
 +[[Image:SetupFirewall.png]]
 + 
 +[[Image:SetupWifiEnc.png]]
 + 
 +[[Image:SetupWDS.png]]
 + 
 +[[Image:SetupWireless.png]]
 + 
 +[[Image:Client.png]]
 + 
 + 
 +=Ralink Based Devices=
 + 
 +'''Ralink to Ralink Devices'''
 + 
 +* Wireless → WDS → WDS Settings → Select LAN, enter MAC address of the routers you wish to connect, enter a note so you know which router the MAC refers to. i.e. UpstairsRouter.
 +* Extra Options→ Disable – Easy WDS,
 +* Click Save, then Apply Settings
 +May have to add the physical interface to the bridged network:
 +To do this, go to Setup => Networking => Assign to Bridge => Add => Select "br0", Interface "ra0" => Apply Settings
 +Tested on D-Link DIR-615 D4/D2 dd-wrt build 15778, Do NOT use this as a firmware recommendation for these devices! Please see the forums for official firmware recommendations. You can find the latest builds here: [https://www.dd-wrt.com/wiki/index.php/Index:FAQ#Where_do_I_download_firmware.3F Where do I download firmware?]
 + 
 + 
 +'''Ralink to Qualcomm Atheros'''
 + 
 +Ralink to Qualcomm Atheros WDS connection works but only with WEP or Unsecured. Qualcomm Atheros WDS AP to Ralink Client Mode can use WPA or WPA2 but it is no longer a WDS bridge.
 + 
 + 
 +'''Ralink to Broadcom'''
 + 
 +Ralink to Broadcom WDS connection works but only Unsecured or WEP.
 + 
 +=Broadcom to Qualcomm Atheros WDS Configuration (Unsupported)=
 + 
 +For the best WDS stability and performance, you should use the same wireless chipset on both sides, ie: Broadcom-to-Broadcom or Qualcomm Atheros-to-Qualcomm Atheros. That being said, multi-vendor WDS interoperability is possible but not necessarily guaranteed to work.
 +Note: there are configuration differences between DD-WRT builds & different platforms. If you don't see the exact configuration items below on your router, you may need to look for it on a different configuration page.
 + 
 + 
 +'''BOTH ROUTERS:'''
 + 
 +* Wireless / Basic Settings: Wireless Mode = G-only or NG-Mixed
 +* Wireless / Basic Settings: Network Name (SSID) = dd-wrt (modify to your liking)
 +* Wireless / Wireless Security: Security Mode = WEP or Unsecured
 +* Wireless / Wireless Security: Default Transmission Key = 1
 +* Wireless / Wireless Security: Encryption = 64 or 128 bits (either works)
 +* Wireless / Wireless Security: Passphrase = (blank)
 +* Wireless / Wireless Security: Key 1 = 10 or 26-digit encryption key (modify to your liking)
 + 
 + 
 +'''BROADCOM-SPECIFIC SETTINGS:'''
 + 
 +* Wireless / Basic Settings: Wireless Mode = AP
 +* Wireless / Basic Settings: Wireless Channel = (pick something suitable for your environment)
 +* Wireless / Advanced Settings: Preamble = Short
 +* Wireless / WDS: Enter MAC address of Atheros device and select "LAN" in the drop-down box
 + 
 + 
 +'''QUALCOMM ATHEROS-SPECIFIC SETTINGS:'''
 + 
 +* Wireless / Basic Settings: Wireless Mode = "WDS Station"
 +* Wireless / Basic Settings / Advanced Tickbox / Short Preamble = Enable
 +* Wireless / WDS: Enter MAC address of Broadcom device and select "LAN" in the drop-down
 +* Note: Wireless Channel will be automatically selected based on the Broadcom configuration
 + 
 + 
 +The above examples were minimally tested using the following hardware / firmware on 1/12/2011:
 +* Broadcom BCM4704 (v9): Netgear WNDR3300 '(dd-wrt.v24-15508_NEWD-2_std-nokaid_nohotspot_nostor.bin)'
 +* Atheros AR2315: Engenius / Senao EOC-2610 '(v24 preSP2 [Beta] Build: 14896)'
 + 
 + 
 +Do NOT use this as a firmware recommendation for these devices! Please see the Qualcomm Atheros and Broadcom forums for official firmware recommendations. You can find the latest builds here: ftp://ftp.dd-wrt.com/betas/
 +In this configuration, combinations of WPA/TKIP and WPA2/AES were unsuccessful. "AP" and "WDS AP" modes on the Qualcomm Atheros didn't work in this configuration either.
 + 
 + 
 +If you are having difficulty getting the WDS link up, disable security on both sides and try again:
 +* Wireless / Wireless Security: Security Mode = Disabled
 + 
 + 
 +=DD-WRT to other router firmwares=
 + 
 + 
 +'''DD-WRT MadWIFI to Ubiquiti WDS'''
 +* AirOS <=3.X <-> DD-WRT (madwifi): set AirOS to WDS-AP <-> DD-WRT v.24 (or higher) to WDS-Sta. Put all on the same SSID and set your prefered wireless encryption.
 +* NO WDS support for connecting current AirOS 3.x <-> DD-WRT ath9k and AirOS 5.X <-> DD-WRT MadWIFI/DD-WRT ath9k
 + 
 + 
 +'''DD-WRT MadWIFI to MTik WDS'''
 +* Connect as DD-WRT WDS-Sta to an MTik AP. Set DD-WRT MTik compability to on. The other way round should work, too. Put all on the same SSID and set your prefered wireless encryption.
 + 
 + 
 +'''DD-WRT to Apple Airport Express (Broadcom only)''' - last tested with AirPort Express v6.3 and AirPort Utility v5.3.1 [3-16-2008]
 + 
 +Warning: This does not work for Qualcomm Atheros-based DD-WRT routers. Airport Express will not be able to participate in the WDS network.
 + 
 +*'''DD-WRT''' (Save settings after each step)
 +#Wireless -> Basic Settings" Set the channel on the DD-WRT to 1 or the same as the AirPort Express.
 +#Wireless -> WDS: Select "LAN" option and enter the Airport Express's "AirPort ID" (can be found on the underside of the AirPort Express itself - be careful not to choose the "Ethernet ID").
 +#Set Lazy WDS and WDS subnet to disable
 +#Administration -> Management: Set Loopback to disable.
 +#Security -> Firewall: Turn off "Block Anonymous Internet Requests."
 + 
 +*'''AirPort Express'''
 +#Open AirPort Utility (found in /Applications/Utilities), select your AirPort Express from the left panel, and click "Manual Setup"
 +#In the "AirPort" section:
 +#Select "Wireless" tab
 +#Select "Participate in WDS network"
 +#Set Network name to your wireless SSID name
 +#Set the wireless channel to 1, or the same as the dd-wrt compatible router
 +#Choose your security (only WEP will work wirelessly - if you want WPA/WPA2 on your network, you're going to have to connect the AirPort via an ethernet cable)
 +#Select "WDS" tab
 +#Set "WDS mode" as "WDS remote"
 +#In the Main Aiport ID section enter your DD-WRT wireless MAC (can get this in Status -> Wireless)
 +#In the "Music" section (if you want to use AirTunes):
 +#Make sure "Enable AirTunes" is selected
 +#Name and password-protect your speakers
 +#Click "update"
 + 
 +If it works then there will be a solid green light (may take a couple of minutes). If it does not work, you should connect Airport Express and dd-wrt compatible router using an Ethernet cable and set up it. It might work.
 +This information is from AirTunes, AirPort Express, and the WRT54G at ryanschwartz.net - and has since been edited to update information.
 +Encryption: The above method works with: No encryption, WEP, and WPA2
 +Troubleshooting: Make sure that you disable the "AP Watchdog" daemon. If you have a wireless endpoint (like a laptop) which connects to the Airport station (because you use WDS) then the Linksys does not see any clients connected and restarts the wireless network over and over. You also could change other channel apart from 1, if you're having problems and you don't have to disable loopback. Notes:
 +* If you're using encryption, remember to configure it on all routers!
 +* Set encryption after you got a running WDS
 +* On the main Status page and the Wireless Status you can see the signal strength for any other routers in the WDS. If they are showing 0 then you're not connecting to them for some reason (wrong MAC address or, for WPA links, wrong SSID).
 +* NOTE: Some security works with some dd-wrt and not with others. Lately (2010) the only security that has worked reliably is WEP and WPA2-AES. WPA2-AES is the ONLY security that should be used with N routers if you wish to have N speed.
 +* If you want to use more than 2 repeaters with WDS and define multiple WDS paths for redundancy then you MUST enable STP or the network will loop back on itself and destroy all functionality.
 + 
 + 
 +=Troubleshooting=
 + 
 +'''Same LAN MAC Address Problem'''
 + 
 +If you are using two WRT54G v5/6 with same firmware version, you may end up on that both router use exactly same MAC address on its LAN, WAN, Wireless. Although you can change WAN and Wireless MAC address in the GUI, it is hard to change LAN MAC address.
 + 
 +If both router use same LAN MAC address on WDS, you can ping any computer on both routers, but NOT either router's IP, and will show "Destination Host Unreachable". To fix this, refer to this [https://www.dd-wrt.com/phpBB2/viewtopic.php?p=174925 thread] or revert to OEM first.
 + 
 +'''Don’t see the other router (or Status list shows 0%)'''
 + 
 +If you don’t see the other router and you can’t ping eithe, reboot both. If that does not work, disable encryption on both the client (WDS Station) and host router (WDS AP). If it still does not work, make sure the Firewall on the client (WDS Station) is disabled. Check if STP is enabled on both routers.
 + 
=External Links= =External Links=
-[http://en.wikipedia.org/wiki/Wireless_Distribution_System Wikipedia's WDS entry]+[http://en.wikipedia.org/wiki/Wireless_Distribution_System Wikipedia Wireless Distribution System]
-[[Category:English documentation]]+[[Category:Routing]]
-[[Category:Basic tutorials]]+[[Category:Wlan]]
 +[[Category:Linking Routers]]

Current revision

Wiki Path: DD-WRT Wiki Main / Tutorials / Linking Routers / WDS Linked router network


Contents

[edit] Basic Definitions

WDS – Wireless Distribution System connects one or more routers to a main router to wirelessly share internet, allows roaming between routers

Subnet – the octets of an IP address selected by the subnet mask (e.g. 255.255.255.0, thus for 192.168.X.Y the subnet low octet is X)

Host router – the main router connected to the internet, to share with clients

Client router – the router not connected to the internet, to connect with the host router. There can be several clients

WDS AP – the host router "Wireless Mode" selection, only on Qualcomm Atheros routers

WDS Station – the client router "Wireless Mode" selection only on Qualcomm Atheros routers

WDS AP VAP – a virtual access point created on the WDS Station to extend the WDS AP’s wireless network, only required on Qualcomm Atheros routers (see more under Multiple WLANs)

Lazy WDS - normally only used on the host instead of setting the client MAC, to dynamically grant WDS membership to any client

MAC address – device specific address, not easily changeable. Usually in the format XX:XX:XX:XX:XX:XX, where X is a Hex number (0 to F)

[edit] Qualcomm Atheros, Broadcom, or Ralink (Must be running dd-wrt)

The first step is to know what chipset your routers use, specifically the manufacturer. For WDS to work reliably the routers must be all the same chip manufacturer. A good way to determine the chip manufacturer is to go to the Status page and read what CPU Model it has. Another method is to go to https://wikidevi.com and look up the model number and specific hardware revision. Ex: TP-Link 1043nd v3

[edit] Note about WDS and different chip manufacturers

WDS between different chip vendors (qualcomm atheros, broadcom, ralink) will not work most of the time since it's INCOMPATIBLE and no we will NOT fix it. There is an unsupported, unsecure (no wireless security or WEP) method to connect a Broadcom (main router) with a Qualcomm Atheros (secondary router). This will be discussed further down.

[edit] Note about dual-band WDS

Only use a WDS bridge on one radio's (2.4GHz or 5GHz) Wireless Mode, as bridging more may cause wireless issues.

[edit] Qualcomm Atheros Based Devices

Before starting these instructions, please read QCA Wireless Settings

Step 1: First set a static IP in the same subnet as the WDS AP and WDS Station. Use any number outside of the DHCP range (default range is 192.168.1.100 to 192.168.1.149). It is easier to have hardwired access to both routers when setting this up.

Step 1 a): (Optional, but advised) Reset to default all of the routers if possible. Do not restore settings, you can make a backup if you wish. Change the filename of the back up to match the router and record the build revision.

Step 2: Log in to the WDS AP.

Step 3: On the Setup → Basic Setup page change the following settings

  • STP – Enabled
  • Click Save (at the bottom)

Step 4: On the Wireless → Basic Settings page change the following settings

  • Change Wireless mode to WDS AP
  • Make sure Wireless SSID Broadcast is enabled
  • Make a note of the other settings (not advanced settings) on that page, you will need them for the WDS Station later
  • Check the Advanced Tickbox
  • Enable Short Preamble
  • Enable Short GI
  • Click Save

Step 4 a): Go to the appropriate WDS page, you only need to use one,

  • Wireless → ath0-WDS page - 2.4GHz
  • Wireless → ath1-WDS page - 5GHz
  • Wireless → WDS page for single band routers
  • Make a note of the MAC addresses listed on the top of the page

Step 5: On the Wireless → Wireless Security page make a note of all of the settings:

  • password
  • encryption type, see recommended settings QCA Wireless Settings
  • Click Apply, wait for the page to reload (Don’t close the page)

Step 6: Log in to the WDS Station.

Step 7: On the Setup → Basic Setup page change the following settings

  • Change WAN Connection Type to Disabled
  • STP – Enabled
  • Local IP address must be in the same subnet as the WDS AP but outside of its DHCP range (Ex: 192.168.1.2, if using the default range)
  • (Optional) Assign WAN Port to switch – Enable (This provides another LAN port on the WDS Station)
  • Change the Default Gateway and Local DNS (default is 0.0.0.0 for both) to the IP address of the WDS AP
  • Click Save
  • Uncheck all of the check boxes under DHCP
  • Disable the DHCP Server
  • Click Save (at the bottom)

Step 8: Go to the Security → Firewall page

  • Uncheck all of the boxes except Filter Multicast
  • Click Save
  • Check the Disable button at the top
  • Click Save

Step 9: Go to the Wireless → Basic Wireless page

  • Put in the exact same settings as on the WDS AP - same SSID, encryption, etc
  • Change the Wireless Mode to WDS Station
  • Check the Advanced check box
  • Enable Short Preamble
  • Enable Short GI
  • Click Save

Step 10: (Optional) - To extend the wireless network of the WDS AP, or daisy chain WDS Station to WDS Station

  • Under Virtual Interfaces, Click Add
  • Change the Wireless Mode of the Virtual Interface to WDS AP
  • Type in the SSID for the Virtual Interface exactly (same capitalization) as it is on the WDS AP (main router)
  • Click Save

Step 11: Go to the Wireless → Wireless Security page

  • Put in the same Security Mode (WPA vs WPA2), WPA Algorithms (AES vs TKIP), and WPA shared password, on the ath0 or ath1 network.
  • Repeat this step if you added a Virtual interface in WDS AP mode. Ex: ath0.1, ath1.1, etc
  • Click Save

Step 12: On the WDS Station, go to the appropriate WDS page, same as Step 4.a)

  • Change one of the drop-down boxes to LAN
  • Put in the WDS AP MAC in the boxes on the same row
  • Put in a user recognizable name in the large box next to the MAC (Does not have to be the actual name of the router)
  • Repeat this step for adding other Stations to connect to this station.
  • Make sure Lazy WDS and WDS subnet are Disabled
  • Click Save
  • Click Apply, wait until the page reloads

Step 13: Go back to the WDS AP (main router)

Step 14: On the WDS AP, go to the appropriate WDS page. Same as Step 4.a)

  • Change one of the drop-down boxes to LAN
  • Put in the WDS Station’s MAC in the boxes on the same row.
  • Put in a user recognizable name in the large box next to the MAC (Does not have to be the actual name of the router). This only helps in identifying if the routers are connected as seen on the Status – Wireless page
  • Repeat this step for adding other WDS Stations to connect to this station.
  • Make sure Lazy WDS and WDS Subnet are Disabled
  • Click Save
  • Click Apply, wait until the page reloads

Step 15: Go back to the WDS Station

Step 16: Go to the Administration → Keep Alive page

  • Enable the WDS Connection watchdog
  • Put in the IP address of the WDS AP
  • Put in an interval such as 300 (5 min) or 1000 seconds.
  • This will reboot the WDS Station if it can’t find the WDS AP
  • This means that if you have to reboot the WDS AP, you don’t have to manually reboot all of the WDS Stations

Step 17: Test the setup, move the routers apart and test with various wireless devices.


[edit] Broadcom Based Devices

Setup/Configuration for Broadcom Based Devices

1. [Both routers] Save the current configurations: Administration -> Backup. Click the Backup button and follow prompts to save NVRAM files, e.g. nvram_host.bin and nvram_client.bin. These can be restored if the new setup doesn't work, to quickly revert to the previous (working) configuration.

2. [Client] Reset to factory defaults to eliminate potential conflicts from other settings. Either use the router reset button or the GUI: Administration -> Factory Defaults -> Reset router settings -> Restore Factory Defaults, select Yes (radio button), click Apply Settings, then wait for the router to reboot. (Optional) Reset the host router also, unless impractical (e.g. the host is part of a working network), to simplify debugging the new setup.

3. [Client] Change the WAN Connection Type to Disabled. Setup -> Basic Setup -> WAN Setup -> WAN Connection Type . Also enable STP.

4. [Client] Set the Local IP Address to one in the same subnet as the host router (e.g. 192.168.1.1 (host/internet gateway) and 192.168.1.2 (client router)). If the host router has been reset, set its Local IP Address as well. On the client, set the Gateway and Local DNS IP addresses to the Local IP Address of the host. Setup -> Basic Setup -> Network Setup -> Router IP

5. [Client] Disable the DHCP server. This allows the host to perform DHCP services. There can only be one DHCP server on any subnet (network) for reliable operation. Setup -> Basic Setup -> Network Address Server Settings (DHCP) . Also Uncheck the Three boxes below the DHCP Server.

6. [Client] Navigate to Setup > Advanced Routing. In the dropdown box for Operating Mode, Select Router. Click Save

7. [Client] Navigate to Services. Disable DNSMasq as well as WAN Traffic Counter. Click Save

8. [Client] Disable the firewall. Security -> Firewall -> Firewall Protection -> SPI Firewall. First Uncheck everything BUT Filter Multicast, click Save. Now Disable the SPI Firewall and click Save.

9. [Both routers] Set the Wireless Mode to AP and make sure the Wireless Channel is the same. For Wireless Network Mode, you can select Mixed , G-Only , NG-Mixed, or N-Only. Set the Wireless Network Name (SSID) to your liking as long as it is exactly the same on both routers. If running N or NG-Mixed , WPA2 + AES is the only form of encryption that can be used.

10. [Both routers] (Recommended) Disable wireless security (the default after reset) until WDS is working to minimize troubleshooting. If impractical (e.g. host is part of a working network), ensure all security settings on the client and host match exactly. Wireless -> Wireless Security -> Wireless Security wl0

11. [Host] (Important) disable MAC address filtering

12. [Both routers] Open the WDS configuration page/Tab. For each router, you will see its wireless MAC address (Wireless MAC) at the top of the page. Note that this MAC address is different from the one that may be printed on the case. In the first open row of the table, select LAN from the dropdown list (The router will pause for a second) and enter each router's wireless MAC address into the table of the other router. It is not necessary to enable Lazy WDS or WDS Subnet on either router. If necessary, consult WDS - configuration for more than two routers for some helpful info. Wireless -> WDS -> WDS Settings

13. (Optional, but not recommended) On the client router, configure static routing (Setup -> Advanced Routing) for Destination LAN NET and enter the IP address of the host router. Use the same settings for Subnet Mask and Gateway that are used by host router. For Interface, select LAN & WLAN. This step ensures that the bridge is given a static IP route. Setup > Advanced Routing -> Static Routing

14. [Both routers] Check the wireless status page to see that the other is present in the WDS Nodes section. Make sure signal strength for each is not zero. Status -> Wireless -> Wireless Nodes -> WDS Nodes. If it is 0%, and there are no indication of the router transmitting or receiving packets, Unplug the client router for ~10 seconds , then re-insert power. Give it no more than 3 minutes to boot and obtain the WDS link from the host router.

15. Test that you can ping the host from the client. Note that it may take a short amount of time for the WDS link to be established, and you may need to reboot either the client or host router (or both).

16. (Highly recommended) If disabled, enable wireless security now. First enable it on the Client router, wait 5 seconds, then enable it on the Host router. Watch the Wireless LED's on the host router, if they are blinking, you're in business. If they're solid, power cycle the client router.

17. If you set the SSID of the client router to be different from that of the host router, you need to make them the same in order to enable WPA/WPA2 encryption security. Using WPA/WPA2 encryption also requires STP to be enabled on all routers for a reliable link.

Screenshots of the process, with examples of the respected configurations in the best order as outlined above: Image:SetupBasic.png

Image:SetupAdvanced.png

Image:SetupServices.png

Image:SetupFirewall.png

Image:SetupWifiEnc.png

Image:SetupWDS.png

Image:SetupWireless.png

Image:Client.png


[edit] Ralink Based Devices

Ralink to Ralink Devices

  • Wireless → WDS → WDS Settings → Select LAN, enter MAC address of the routers you wish to connect, enter a note so you know which router the MAC refers to. i.e. UpstairsRouter.
  • Extra Options→ Disable – Easy WDS,
  • Click Save, then Apply Settings

May have to add the physical interface to the bridged network: To do this, go to Setup => Networking => Assign to Bridge => Add => Select "br0", Interface "ra0" => Apply Settings Tested on D-Link DIR-615 D4/D2 dd-wrt build 15778, Do NOT use this as a firmware recommendation for these devices! Please see the forums for official firmware recommendations. You can find the latest builds here: Where do I download firmware?


Ralink to Qualcomm Atheros

Ralink to Qualcomm Atheros WDS connection works but only with WEP or Unsecured. Qualcomm Atheros WDS AP to Ralink Client Mode can use WPA or WPA2 but it is no longer a WDS bridge.


Ralink to Broadcom

Ralink to Broadcom WDS connection works but only Unsecured or WEP.

[edit] Broadcom to Qualcomm Atheros WDS Configuration (Unsupported)

For the best WDS stability and performance, you should use the same wireless chipset on both sides, ie: Broadcom-to-Broadcom or Qualcomm Atheros-to-Qualcomm Atheros. That being said, multi-vendor WDS interoperability is possible but not necessarily guaranteed to work. Note: there are configuration differences between DD-WRT builds & different platforms. If you don't see the exact configuration items below on your router, you may need to look for it on a different configuration page.


BOTH ROUTERS:

  • Wireless / Basic Settings: Wireless Mode = G-only or NG-Mixed
  • Wireless / Basic Settings: Network Name (SSID) = dd-wrt (modify to your liking)
  • Wireless / Wireless Security: Security Mode = WEP or Unsecured
  • Wireless / Wireless Security: Default Transmission Key = 1
  • Wireless / Wireless Security: Encryption = 64 or 128 bits (either works)
  • Wireless / Wireless Security: Passphrase = (blank)
  • Wireless / Wireless Security: Key 1 = 10 or 26-digit encryption key (modify to your liking)


BROADCOM-SPECIFIC SETTINGS:

  • Wireless / Basic Settings: Wireless Mode = AP
  • Wireless / Basic Settings: Wireless Channel = (pick something suitable for your environment)
  • Wireless / Advanced Settings: Preamble = Short
  • Wireless / WDS: Enter MAC address of Atheros device and select "LAN" in the drop-down box


QUALCOMM ATHEROS-SPECIFIC SETTINGS:

  • Wireless / Basic Settings: Wireless Mode = "WDS Station"
  • Wireless / Basic Settings / Advanced Tickbox / Short Preamble = Enable
  • Wireless / WDS: Enter MAC address of Broadcom device and select "LAN" in the drop-down
  • Note: Wireless Channel will be automatically selected based on the Broadcom configuration


The above examples were minimally tested using the following hardware / firmware on 1/12/2011:

  • Broadcom BCM4704 (v9): Netgear WNDR3300 '(dd-wrt.v24-15508_NEWD-2_std-nokaid_nohotspot_nostor.bin)'
  • Atheros AR2315: Engenius / Senao EOC-2610 '(v24 preSP2 [Beta] Build: 14896)'


Do NOT use this as a firmware recommendation for these devices! Please see the Qualcomm Atheros and Broadcom forums for official firmware recommendations. You can find the latest builds here: ftp://ftp.dd-wrt.com/betas/ In this configuration, combinations of WPA/TKIP and WPA2/AES were unsuccessful. "AP" and "WDS AP" modes on the Qualcomm Atheros didn't work in this configuration either.


If you are having difficulty getting the WDS link up, disable security on both sides and try again:

  • Wireless / Wireless Security: Security Mode = Disabled


[edit] DD-WRT to other router firmwares

DD-WRT MadWIFI to Ubiquiti WDS

  • AirOS <=3.X <-> DD-WRT (madwifi): set AirOS to WDS-AP <-> DD-WRT v.24 (or higher) to WDS-Sta. Put all on the same SSID and set your prefered wireless encryption.
  • NO WDS support for connecting current AirOS 3.x <-> DD-WRT ath9k and AirOS 5.X <-> DD-WRT MadWIFI/DD-WRT ath9k


DD-WRT MadWIFI to MTik WDS

  • Connect as DD-WRT WDS-Sta to an MTik AP. Set DD-WRT MTik compability to on. The other way round should work, too. Put all on the same SSID and set your prefered wireless encryption.


DD-WRT to Apple Airport Express (Broadcom only) - last tested with AirPort Express v6.3 and AirPort Utility v5.3.1 [3-16-2008]

Warning: This does not work for Qualcomm Atheros-based DD-WRT routers. Airport Express will not be able to participate in the WDS network.

  • DD-WRT (Save settings after each step)
  1. Wireless -> Basic Settings" Set the channel on the DD-WRT to 1 or the same as the AirPort Express.
  2. Wireless -> WDS: Select "LAN" option and enter the Airport Express's "AirPort ID" (can be found on the underside of the AirPort Express itself - be careful not to choose the "Ethernet ID").
  3. Set Lazy WDS and WDS subnet to disable
  4. Administration -> Management: Set Loopback to disable.
  5. Security -> Firewall: Turn off "Block Anonymous Internet Requests."
  • AirPort Express
  1. Open AirPort Utility (found in /Applications/Utilities), select your AirPort Express from the left panel, and click "Manual Setup"
  2. In the "AirPort" section:
  3. Select "Wireless" tab
  4. Select "Participate in WDS network"
  5. Set Network name to your wireless SSID name
  6. Set the wireless channel to 1, or the same as the dd-wrt compatible router
  7. Choose your security (only WEP will work wirelessly - if you want WPA/WPA2 on your network, you're going to have to connect the AirPort via an ethernet cable)
  8. Select "WDS" tab
  9. Set "WDS mode" as "WDS remote"
  10. In the Main Aiport ID section enter your DD-WRT wireless MAC (can get this in Status -> Wireless)
  11. In the "Music" section (if you want to use AirTunes):
  12. Make sure "Enable AirTunes" is selected
  13. Name and password-protect your speakers
  14. Click "update"

If it works then there will be a solid green light (may take a couple of minutes). If it does not work, you should connect Airport Express and dd-wrt compatible router using an Ethernet cable and set up it. It might work. This information is from AirTunes, AirPort Express, and the WRT54G at ryanschwartz.net - and has since been edited to update information. Encryption: The above method works with: No encryption, WEP, and WPA2 Troubleshooting: Make sure that you disable the "AP Watchdog" daemon. If you have a wireless endpoint (like a laptop) which connects to the Airport station (because you use WDS) then the Linksys does not see any clients connected and restarts the wireless network over and over. You also could change other channel apart from 1, if you're having problems and you don't have to disable loopback. Notes:

  • If you're using encryption, remember to configure it on all routers!
  • Set encryption after you got a running WDS
  • On the main Status page and the Wireless Status you can see the signal strength for any other routers in the WDS. If they are showing 0 then you're not connecting to them for some reason (wrong MAC address or, for WPA links, wrong SSID).
  • NOTE: Some security works with some dd-wrt and not with others. Lately (2010) the only security that has worked reliably is WEP and WPA2-AES. WPA2-AES is the ONLY security that should be used with N routers if you wish to have N speed.
  • If you want to use more than 2 repeaters with WDS and define multiple WDS paths for redundancy then you MUST enable STP or the network will loop back on itself and destroy all functionality.


[edit] Troubleshooting

Same LAN MAC Address Problem

If you are using two WRT54G v5/6 with same firmware version, you may end up on that both router use exactly same MAC address on its LAN, WAN, Wireless. Although you can change WAN and Wireless MAC address in the GUI, it is hard to change LAN MAC address.

If both router use same LAN MAC address on WDS, you can ping any computer on both routers, but NOT either router's IP, and will show "Destination Host Unreachable". To fix this, refer to this thread or revert to OEM first.

Don’t see the other router (or Status list shows 0%)

If you don’t see the other router and you can’t ping eithe, reboot both. If that does not work, disable encryption on both the client (WDS Station) and host router (WDS AP). If it still does not work, make sure the Firewall on the client (WDS Station) is disabled. Check if STP is enabled on both routers.


[edit] External Links

Wikipedia Wireless Distribution System