Punto acceso inalámbrico

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:38, 3 July 2010 (edit)
G sintornillos (Talk | contribs)
(Instalación)
← Previous diff
Revision as of 07:10, 3 July 2010 (edit) (undo)
Glenn (Talk | contribs)
(Image:Mypage puc.gif -> {{Under construction}})
Next diff →
Line 1: Line 1:
 +{{Under construction}}
 +
{{Languages|Wireless Access Point}} {{Languages|Wireless Access Point}}
Traducción del artículo del wiki de DD-WRT en inglés [[Wireless Access Point]] Traducción del artículo del wiki de DD-WRT en inglés [[Wireless Access Point]]
- 
-[[Image:Mypage puc.gif]] 
Tú estás aquí: '''[[Main_Page|DD-WRT wiki mainpage]] / [[Espanol|DD-WRT wiki en Español]] / [[HOWTOs_configuración]] / [[Enlazando_routers]] / Punto_acceso_inalámbrico''' Tú estás aquí: '''[[Main_Page|DD-WRT wiki mainpage]] / [[Espanol|DD-WRT wiki en Español]] / [[HOWTOs_configuración]] / [[Enlazando_routers]] / Punto_acceso_inalámbrico'''

Revision as of 07:10, 3 July 2010

Image:Mypage puc.gif
Please note: This template application {{Under construction}} should be removed from the article in a few days.


Traducción del artículo del wiki de DD-WRT en inglés Wireless Access Point

Tú estás aquí: DD-WRT wiki mainpage / DD-WRT wiki en Español / HOWTOs_configuración / Enlazando_routers / Punto_acceso_inalámbrico


Si usted tiene una red grande, para lo que DD-WRT no es un núcleo de router adecuado es probable que desee que clientes inalámbricos sean parte de la red más grande. En este caso, los clientes obtendrían configuración DHCP de algún otro servidor DHCP, y se puede acceder por otros clientes en la red.

Como ejemplo, algunas universidades que aún permiten que los estudiantes tengan sus propios puntos de acceso inalámbrico (WAP) requiere que el WAP entregue direcciones IP privadas (como muchos routers con DHCP/NAT hacen por defecto), ya que hace que sea difícil rastrear cual cliente que está causando problemas (por ejemplo, las infecciones de virus, gusanos, etc)

Típicamente, los proveedores como Linksys cobran más por los dispositivos que funcionan como WAP independiente ya que los routers son típicamente usados por usuarios domésticos y los WAP son más populares para las empresas. Con DD-WRT usted puede comprar un dispositivo comercializado como un router y usarlo como un WAP.

Contents

Instalación

Aquí está como crear un punto de acceso inalámbrico usando DD-WRT v24. Por favor preste especial atención a la sección revisión de este artículo, especialmente si usted está utilizando una versión más vieja.

  1. Hard reset or 30/30/30 el router a la configuración por defecto
  2. Ingrese al router en http://192.168.1.1
    • Nota: Si este router está cableado a otro router, puede haber conflictos (ambos routers pueden tener la misma dirección de IP).De momento, desconecte este router del principal o cree una entrada ARP estática.
  3. Abra la pestaña Setup -> Basic Setup
    • WAN Connection Type/Tipo de Conexión : Disabled/Desactivar
    • Local IP Address/IP Local (LAN) : 192.168.1.2 (ej. diferente del router primario y fuera del grupo DHCP)
    • Subnet Mask/Máscara Subred : 255.255.255.0 (ej. la misma del router primario)
    • DHCP Server/Servidor DHCP : Disable/Desactivar (también desmarque las opciones DNSmasq)
    • (Recomendado) Gateway/Puerta de Enlace & Local DNS/DNS Local : dirección IP del router primario (muchas veces fallará sin esto)
    • (Opcional) Assign WAN Port to Switch/Assigar Puerto WAN Port a cambiar : marque esto si desea usar el puerto WAN como puerto switch
    • (Opcional) NTP Client/Cliente NTP : Enable/Enable o Disable/Desactivar (si es Enable , especifique Gateway/Local DNS más arriba)
    • Save/Aplicar
  4. Abra la pestaña Setup -> Advanced Routing/Setup -> Ruteo Avanzado
    • Change operating mode to/Modo de Operación : Router
    • Save/Aplicar
  5. Abra la pestaña Wireless -> Basic Settings/Inalámbrico -> Config Básica
    • Wireless Network Name (SSID)/Nombre de Red Wi-Fi (SSID) : El nombre de su red
    • (Opcional) Sensitivity Range : La máxima distancia (en metros) a los clientes x2
    • Save/Aplicar
  6. Abra la pestaña Wireless -> Wireless Security
    • Note: Security is optional, but recommended! Clients must support whatever mode you select here.
    • (Recommended) Security Mode : WPA2
    • (Recommended) WPA Algorithm : AES
    • (Recommended) WPA Shared Key: >8 characters
    • Save
  7. Open the Services -> Services tab
    • (Optional) DNSMasq : Disable
    • (Optional) ttraff Daemon : Disable
    • Save
  8. Open the Security -> Firewall tab
    • Uncheck all boxes...except Filter Multicast
    • Save
    • Disable SPI firewall
    • Save
  9. Open the Administration -> Management tab
    • (Recommended) Info Site Password Protection : Enable
    • Under routing select disabled
    • Apply Settings and connect ethernet cable to main router via LAN-to-LAN uplink*


  • Notes:
    1. To connect the WAP to the main router, you can probably use either a patch cable, straight-thru, or a crossover cable. As far as I know, most dd-wrt capable devices can do autosensing (at least mine do) so the cable type doesn't really matter.
    2. You can connect the WAP to the main router via LAN-to-WAN so long as you have assigned the WAN port to switch (see step 3). Although some problems have been reported when doing so...maybe not all routers support it? When using this configuration the LAN ports are also available for standard wired connections. Making this a wired and wireless access point.

Review

There were three basic configuration changes you made to set up your router as a wireless access point.

Turn Off DHCP

If you did not turn off DHCP, when you plug your router into the network (after configuration), your WAP may provide IP addresses to clients on the wired network, and this may be inappropriate. Tracking down problems caused by multiple DHCP servers can be time-consuming and difficult.

Because its so important, it is worth repeating: Turn off DHCP before you continue!

Set the IP address of the LAN Interface

Immediately after turning off DHCP, while your PC still has the IP address the WAP gave you, set the LAN interface of the WAP to the IP address you want it to use, eg. if host router is 192.168.1.1, give WAP an IP of 192.168.1.2. Alternatively, you can use the instructions below to set the WAPs IP address via DHCP.

If you cannot connect to the WAP in order to set the LAN interface's IP address, it is probably because your computer no longer has an IP address on the same subnet. To get past this issue, simply set your computer's IP address and subnet to 192.168.1.8 and 255.255.255.0 respectively. (This assumes you are still using the default settings. If not, change the IP address and subnet as appropriate) You should now be able to point your browser at 192.168.1.1 (again assuming default settings).

LAN Uplink

There are two ways to connect your WAP to the LAN. You can either Uplink through one of the router's LAN ports, or use the WAN port that is normally connected to the cable/DSL modem.

LAN Uplink Through LAN Port

To complete the link between the two routers, connect a LAN port on the central router, to a LAN port on Linksys router (to be used as your WAP). You may need a crossover cable to do this, although many modern routers have an automatic polarity sensing. To test this, connect a standard ethernet cable between the two routers. If the LAN light comes on, the router has automatically switched the polarity and a crossover cable is not required.

LAN Uplink Through WAN Port

If you use your DD-WRT router as a WAP only, you may use your DD-WRT router's WAN port to connect it to your existing LAN. To do this, you need to disable the Internet Connection and "Assign WAN Port to Switch".

Normally, the router does Layer 3 IP routing. but by "Assigning WAN Port to Switch," your DD-WRT router will bypass that functionality and just pass on the Layer 2 ethernet packets from your wired network to the wireless network and vice versa.

Alternatively, if you have a router that supports assigning the WAN port to the switch:
Setup -> Basic Setup -> Internet Connection Type -> Connection Type = Disabled
Setup -> Basic Setup -> Network Setup -> WAN Port -> Assign WAN Port to Switch
you can connect the WAN port as your uplink to your main router. All this really buys you is an extra port (4 available instead of 3), but why not?

Tested/Proven routers that support this method (there may be more not listed yet):

Linksys:
WRT54GL
WRT150N
WRT300N
WRT320N
WRT610NV1

Buffalo:
WHR-G54S
WHR-HP-G54

Siemens:
SE505 (only 10Mbps)

Roaming access

If you are installing additional Access Points to cover a broader area with Wi-Fi access, it is possible to allow clients to roam freely between them. The common method is to use the same SSID and Security settings on each access point.

Use a different channel on each AP. e.g. if you are in the US and installed two access points, use channels #1 and #11. Or if three access points, then use channels #1, #6, and #11 (setting the channels at least 5 apart should help keep interference between APs to a minimum). If you have a residential gateway with wireless turned on, and just one AP, then the same applies: each gets a different channel.

When using multiple Access Points, each one should be connected by LAN to LAN uplink as described above. They can even be attached to different switches within the same organization.

How To Use DHCP to Set the WAP's IP Address

Note: This step is optional. It is not required to set the WAP's IP address via DHCP. It can be made static, as shown above.

It is not possible to set the LAN interface to get its IP address via DHCP using the web configuration interface. You can, however, set your startup script to obtain an IP address.

Simply set your IP address to:

udhcpc -i br0 -p /var/run/udhcpc.pid -s /tmp/udhcpc -H test-wrt-wireless
hostname `nslookup \`ifconfig br0 | grep 'inet addr' |cut -f 2 -d ':'\` | grep 'Name:' | awk '{print $2;}' | cut -f 1 -d '.'`
if test `hostname` != `nvram get wan_hostname`; then 
     nvram set wan_hostname=`hostname`;
     nvram set router_name=`hostname`;
     nvram commit;
fi

Only the first line is required if you don't want your WAP to set its name based on the IP address it gets. However, if you want to save a configuration file which will apply to several WAPs, that can be a handy feature.

It seems that in some cases, the /tmp/udhcpc link doesn't exist. in that case, prepend:

ln -s /sbin/rc /tmp/udhcpc

to your startup script.

Related Forum links

Secure remote management for a WAP