Station Mode

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 14:44, 9 July 2006 (edit)
219.240.12.173 (Talk)
(Introduction)
← Previous diff
Current revision (20:21, 19 December 2023) (edit) (undo)
Kernel-panic69 (Talk | contribs)

 
(100 intermediate revisions not shown.)
Line 1: Line 1:
-__toc__+'''''Wiki Path''''': [[Main_Page|DD-WRT Wiki Main]] / [[Tutorials]] / [[Linking Routers]] / '''Client Mode'''
 +----
 +[[image:Client_Bridge.jpg|660px]]<br>
 +The secondary (station) router is unbridged in a different subnet (with NAT), while a [[Client_Bridge|Station Bridge]] or [[Client_Bridged|Station Bridge (Routed)]] is the same subnet as the host.
-=Introduction=+==Introduction==
-This wireless mode allows a router to connect to a remote router as a client. This mode creates 2 separate subnets. Since the computers within the different subnets cannot see each other directly, this requires the enabling of NAT between the wireless and the wired ports, and setting up port forwarding for the computers behind the local wireless device. Segments connected via Client Mode Wireless cannot share a DHCP server.+This mode is NOT for WIRED connections between two routers, like an Access Point. It is a wireless connection between two routers only, usually to the primary gateway router. A Station Mode router connects to a Wireless Access Point (WAP) wireless connection as the WAN interface, and shares the internet connection only to the LAN ports, or a separate WAP for multi-radio routers. It is not seen as a WAP, nor accepts wireless connections by other client devices.
-If you have a wireless router connected to the Internet in a location and would like to connect wired clients in a remote location to allow shared Internet, one solution is to use [[Client Mode Wireless]]. This requires the remote router is a WRT54G running DD-WRT (or similar firmware). The WRT running client mode will connect to the main router as though it were any other computer, and will share the connection as though the main router were connected directly to its WAN port. This means that both routers will be on seperate subnets--and thus the clients will all be on seperate subnets), and NAT will exist between the routers so port forwarding will need to be done at both routers, not just the main router.+The primary (host) router is not required to be running DD-WRT firmware. The primary and secondary (Station Mode) routers must be on separate subnets, and NAT is used between them. Thus, when port forwarding is needed it must be configured at both routers - not just on the host router.
 +
 +A Station Mode router uses its own DHCP server for IP Address, Gateway, and DNS server to connected devices. To have computers connected to both routers (main and secondary) and co-exist in the same subnet, set up DD-WRT as a [[Client_Bridge|Station Bridge]](Broadcom), [[Client_Bridged|Station Bridge (Routed)]], [[Repeater Bridge]], or use [[WDS_Linked_router_network|WDS]]. Further explanation of bridging modes is at [[Linking_Routers|Linking Routers]].
-For those who want all computers to be on the same subnet, try running the WRT as a [[Wireless Bridge]]+*'''<font color=darkred>If using a multi-band router, do not set more than one band to CB.</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.
-181102422459396867887851+
-73510666285019540708379+
-=Einleitung=+==Station Mode Setup==
-Bei diesem Modus wird es möglich den Router an einen anderen Router, der schon als AccessPoint fungiert, als Client anzubinden. In diesem Modus werden zwei separate Subnetze gebildet. Wobei die Rechner, die Mitglieder der beiden Subnetzmasken sich nicht sehen können, deshalb muß NAT zwischen den Wireless und den kabelgebundenen Ports freigeschaltet sein, auch Port forwarding für die Rechner, die hinter dem Wireless device stehen. Segmente, die man durch Client Mode Wireless verbindet, können keinen DHCP Server untereinander teilen.+The secondary station router will be on a different subnet than the primary host router. For example, if the host router IP address is 192.168.1.1, configure the station router to 192.168.2.1.
 +#These instructions assume a reset router. '''Broadcom routers:''' read the [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=51486 Peacock thread]
 +#Connect a cable from your computer to the LAN port on your router.
 +#''(Optional)'' Set your computer to a static IP address (e.g. 192.168.1.7, subnet 255.255.255.0)
 +#Connect to the DD-WRT GUI at 192.168.1.1 in a browser
 +#Set a username and password - if not asked for this, do a proper [[Reset_And_Reboot|reset]]!
 +#Go to ''Wireless'': '''these settings must match the primary host router - '''Check spelling and case!'''
 +#*In ''Wireless->Basic Settings'' and change the ''Wireless Mode'' to "Station"
 +#*Set the ''Wireless Network Name (SSID)'' to exactly match the primary router. Click ''Save'' ('''not''' ''Apply'')
 +#**If multiple routers broadcast the same SSID, to connect to a specific one (i.e. the primary router, instead of a repeater), enable MAC Filtering on the Wireless Tab, and add the specific device's MAC Address.
 +#**MAC Address can be found on the "Site Survey" page, linked from the ''Wireless'' tab in ''Status''
 +#*''Wireless Security'': set the ''Security Mode'' and other information same as primary router. Click ''Save'' ('''not''' ''Apply'')
 +#''(Optional)'' If available, in ''Wireless'' tab (or under ''Advanced''), set (or disable) the Ack Timing in meters
 +#Go to ''Setup->Basic Setup'': if needed, change ''Connection Type'' to ''Static IP'' from "Automatic Configuration - DHCP"
 +#*Static IP allows easier access remote GUI, SSH, or telnet access is enabled under ''Administration''
 +#*If the station router requires external management, go to ''Setup->Basic Setup'', set the WAN port protocol as needed and enter info provided by your ISP. This is the setting that is bonded to the wireless interface.
 +#In ''Network Setup'' set the Local IP Address '''to a different subnet''' from the primary host router (e.g. 192.168.2.1)
 +#Set the ''Gateway'' address to the '''primary host router gateway''' or internet will not work (e.g. 192.168.1.1)
 +#*The device should be in GATEWAY ''Advanced Routing'' mode, not ROUTER, or Masquerade/NAT does not happen.
 +#''(Optional)'' Set your local DNS to the IP address of your station router
 +#''(Optional)'' Set Static DNS servers in ''Network Address Server Settings (DHCP)'' if not provided or wanted from WAN
 +#''(Recommended)'' Change the Time Zone and DST settings as needed.
 +#''(Optional)'' Set a "Server IP/Name" in ''Time Setting'' section for NTP (blank uses a default server)
 +#Click ''Save'' ('''not''' ''Apply'')
 +#''(Optional)'' In ''Security->Firewall'', disable ''SPI Firewall'' '''if security between AP & Station is not needed'''
 +#Click ''Apply'', then change the computer back to auto IP/DNS if needed (replug the LAN cable if not working)
 +#Let the station router reboot and connect to the host, then configure '''on the new Station IP address''' as needed
 +#If not working, unplug the router for 30sec and retry
-Wenn sie einen WRT54 Wireless Router haben, der zum Internet verbunden ist, und wollen auch kabelgebunden Clients an dem Router anschliessen, damit sie sich die Internetverbindung teilen, gibt es folgende Möglichkeiten:+==Station Mode Restrictions==
 +To allow internet access but prevent ''192.168.1.x'' clients from seeing each other on ''br0'', use this firewall script (iptables):
 + iptables -I FORWARD -i br0 -d 192.168.1.0/24 -j DROP
-Benutzen sie [[Client Mode Wireless]]. In dem Fall unser remote router soll WRT54G mit laufendem DD-WRT sein.Das nur als Beispiel es könnte auch OpenWRT sein oder ähnliches. Der WRT, der im Client Mode läuft, wird sich mit dem Mainrouter verbinden, als ob er ganz normaler Rechner ist, und so wird er die Verbindung teilen als ob der Mainrouter zu dem WAN Port des Clientrouters verbunden wäre. Das bedeutet beiden Router werden im zwei separaten Subnetzen, deshalb die Clients werden auch in verschiedenen Netzen sein. Man kann NAT verwenden und in dem Fall port forwarding soll gemacht werden auf den beiden und nicht nur bei dem Mainrouter.+==Troubleshooting==
 +If the preceding instructions do not work, it is usually an encryption or password problem. Disable encryption on the primary router and retry the setup. Using proper encryption and the correct case-sensitive password is key. Do a reset and start over. Note: WPA2-AES (aka CCMP) ''is required for 802.11N (and newer) devices''.
-Für diese, die alle Rechner im selben Subnetz wollen, man kann den WRT im [[Wireless Bridge]] Mode laufen lassen. 
-=Introducción=+[[Category:Wlan]][[Category:Linking Routers]]
-Si tienes un router conectado a Internet en 1 localizaci&oacute;n y te gustar&iacute;a conectar varios clientes en una localizaci&oacute;n remota y permitir el acceso a Internet, la soluci&oacute;n ideal es usar el modo Cliente del Linksys WRT54G. Se necesita un WRT54G en el sitio remoto corriendo nuestro firmware DD-WRT o alguno similar. El modo cliente recoge la se&ntilde;al wireless a trav&eacute;s del puerto WAN (internet) y es compartida por los 4 puertos de la LAN. Adem&aacute;s se pueden separar los 4 puertos en 4 VLANs diferentes. Con este tipo de configuraci&oacute;n se consigue mayor velocidad en las conexiones que con WDS, adem&aacute;s de que la red remota queda invisible para la red inal&aacute;mbrica, a no ser que se configuren las rutas para que no lo sea. Con esta configuraci&oacute;n s&oacute;lo consumiremos una direcci&oacute;n IP de la red inal&aacute;mbrica y en nuestra red local podremos tener todas las computadoras que queramos, conectadas por cable. Para que nos hagamos una idea, funciona igual que un router ADSL conectado a Internet, en el que el cable del tel&eacute;fono se conecta al puerto WAN y es de donde obtenemos Internet, y en el resto de los puertos tenemos nuestra red privada que encamina todas las salidas a Internet por el cable telef&oacute;nico. Al igual que los routers ADSL, hay que abrir los puertos para los diferentes servicios que queramos sean accesibles desde la red Wireless.+
- +
-A diferencia del modo WDS, en el modo cliente no es posible acceder m&aacute;s ordenadores por Wireless.+
- +
-Nota del Traductor. Esta traducci&oacute;n difiere un poco de la original, por lo tanto se recomienda leer tambi&eacute;n el original en ingl&eacute;s.+
- +
-=Introduction=+
-Si vous avez un routeur wifi connecté à Internet à un endroit et que vous souhaitez connecter des clients par cables situés à un autre endroit afin de partager une connection Internet, une solution est d'utiliser le mode client wifi. Cela nécessite d'avoir un routeur distant installé avec DD-WRT (ou équivalent). Le routeur fonctionnant en mode Client Wi-Fi va se connecter au routeur principal comme n'importe quel autre PC du reseau, et va partager la connection comme s'il etait relié directement sur le port WAN du premier routeur. Cela veut dire que les deux routeurs seront sur des Masques de sous reseaux séparés, donc les clients aussi, et qu'il y aura une redirection NAT entre les deux routeurs. Le port forwarding doit donc etre fait sur les deux routeurs, et non pas juste le principal.+
- +
-Note du traducteur : je ne fais que traduire le texte en anglais, lui meme traduction du texte original. Mes connaissances du sujet sont limitées, et vu le message en espagnol, ca a l'air d'etre plus compliqué.+
- +
-=Instructions=+
-A very good forum post was made about running a router in client wireless mode using the command line to set up the linksys. +
- +
-Find it here:+
-http://forum.bsr-clan.de/ftopic694.html+
- +
-A more extensive wiki based description of how to do this from the DD-WRT Web interface is here:+
- +
-http://wrt-wiki.bsr-clan.de/index.php?title=Talk:Client_Mode_Wireless#ROUTER_setup_step_1:+
- +
-=Future=+
-This page should eventually contain the information in the link above, along with any DD-WRT specific updates to the instructions. +
- +
- +
-[[Category:basic HOWTO]]+
- +
-[[Category:English documentation]]+

Current revision

Wiki Path: DD-WRT Wiki Main / Tutorials / Linking Routers / Client Mode



The secondary (station) router is unbridged in a different subnet (with NAT), while a Station Bridge or Station Bridge (Routed) is the same subnet as the host.

Contents

[edit] Introduction

This mode is NOT for WIRED connections between two routers, like an Access Point. It is a wireless connection between two routers only, usually to the primary gateway router. A Station Mode router connects to a Wireless Access Point (WAP) wireless connection as the WAN interface, and shares the internet connection only to the LAN ports, or a separate WAP for multi-radio routers. It is not seen as a WAP, nor accepts wireless connections by other client devices.

The primary (host) router is not required to be running DD-WRT firmware. The primary and secondary (Station Mode) routers must be on separate subnets, and NAT is used between them. Thus, when port forwarding is needed it must be configured at both routers - not just on the host router.

A Station Mode router uses its own DHCP server for IP Address, Gateway, and DNS server to connected devices. To have computers connected to both routers (main and secondary) and co-exist in the same subnet, set up DD-WRT as a Station Bridge(Broadcom), Station Bridge (Routed), Repeater Bridge, or use WDS. Further explanation of bridging modes is at Linking Routers.

  • If using a multi-band router, do not set more than one band to CB. 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.

[edit] Station Mode Setup

The secondary station router will be on a different subnet than the primary host router. For example, if the host router IP address is 192.168.1.1, configure the station router to 192.168.2.1.

  1. These instructions assume a reset router. Broadcom routers: read the Peacock thread
  2. Connect a cable from your computer to the LAN port on your router.
  3. (Optional) Set your computer to a static IP address (e.g. 192.168.1.7, subnet 255.255.255.0)
  4. Connect to the DD-WRT GUI at 192.168.1.1 in a browser
  5. Set a username and password - if not asked for this, do a proper reset!
  6. Go to Wireless: these settings must match the primary host router - Check spelling and case!
    • In Wireless->Basic Settings and change the Wireless Mode to "Station"
    • Set the Wireless Network Name (SSID) to exactly match the primary router. Click Save (not Apply)
      • If multiple routers broadcast the same SSID, to connect to a specific one (i.e. the primary router, instead of a repeater), enable MAC Filtering on the Wireless Tab, and add the specific device's MAC Address.
      • MAC Address can be found on the "Site Survey" page, linked from the Wireless tab in Status
    • Wireless Security: set the Security Mode and other information same as primary router. Click Save (not Apply)
  7. (Optional) If available, in Wireless tab (or under Advanced), set (or disable) the Ack Timing in meters
  8. Go to Setup->Basic Setup: if needed, change Connection Type to Static IP from "Automatic Configuration - DHCP"
    • Static IP allows easier access remote GUI, SSH, or telnet access is enabled under Administration
    • If the station router requires external management, go to Setup->Basic Setup, set the WAN port protocol as needed and enter info provided by your ISP. This is the setting that is bonded to the wireless interface.
  9. In Network Setup set the Local IP Address to a different subnet from the primary host router (e.g. 192.168.2.1)
  10. Set the Gateway address to the primary host router gateway or internet will not work (e.g. 192.168.1.1)
    • The device should be in GATEWAY Advanced Routing mode, not ROUTER, or Masquerade/NAT does not happen.
  11. (Optional) Set your local DNS to the IP address of your station router
  12. (Optional) Set Static DNS servers in Network Address Server Settings (DHCP) if not provided or wanted from WAN
  13. (Recommended) Change the Time Zone and DST settings as needed.
  14. (Optional) Set a "Server IP/Name" in Time Setting section for NTP (blank uses a default server)
  15. Click Save (not Apply)
  16. (Optional) In Security->Firewall, disable SPI Firewall if security between AP & Station is not needed
  17. Click Apply, then change the computer back to auto IP/DNS if needed (replug the LAN cable if not working)
  18. Let the station router reboot and connect to the host, then configure on the new Station IP address as needed
  19. If not working, unplug the router for 30sec and retry

[edit] Station Mode Restrictions

To allow internet access but prevent 192.168.1.x clients from seeing each other on br0, use this firewall script (iptables):

iptables -I FORWARD -i br0 -d 192.168.1.0/24 -j DROP

[edit] Troubleshooting

If the preceding instructions do not work, it is usually an encryption or password problem. Disable encryption on the primary router and retry the setup. Using proper encryption and the correct case-sensitive password is key. Do a reset and start over. Note: WPA2-AES (aka CCMP) is required for 802.11N (and newer) devices.