Chinaunix首页 | 论坛 | 博客
  • 博客访问: 845685
  • 博文数量: 116
  • 博客积分: 1472
  • 博客等级: 上尉
  • 技术积分: 1725
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-06 11:45
文章分类

全部博文(116)

文章存档

2015年(1)

2014年(42)

2013年(5)

2012年(19)

2011年(49)

我的朋友

分类:

2011-07-19 11:16:28

简介

    WDS(Wireless Distribution System)在多个AP之间建立了一条无线主干连接WDS,成为同一无线网络的一部分。它允许使用多个AP而不必使用传统的网线就可以对一个无线网络进行扩展。启用WDS的AP能够接受无线客户端的访问。

    同时要注意到一个事实:对于所有的Repeater包括WDS Repeater模式,对于所有连接到Repeater的无线客户来说,都将会牺牲来自主Router一半的有效带宽

切记

    必须意识到WDS并不是IEEE一个认证标准,每个硬件生产厂商都有自己的标准,结果使得WDS在不同的硬件上进行应用时出现不兼容的问题。因此,这不是DD-WRT的bug,而是一个设计上的问题

 替代方案

如果你没有必要一定要使用WDS,那么有其它途径可以无线连接两个Router  或者 . 你甚至可以发现这两种模式相对于WDS来说,速度更快. 更多的信息可以参考 和 .

基于Atheros芯片的设备和WIFI网卡

    这里没有太多内容,只有列出一些需要注意的地方,因为Atheros的WDS与其它WDS有所不同!

一般的常问题

    在不同芯片(atheros, broadcom, ralink)之间建立WDS,基本上不能正常工作,这是由于硬件不兼容造成的。不过,你仍可以做一些尝试。

    一个WDS站点不能作为AP运行,不允许无线客户连接上中继信号。在Atheros芯片的设备上,只有用网线连接到WDS站点,或者建立虚拟AP(Virtual Access Point)。更多的信息参考

  • Don't set MACs to the WDS-Table. This always causes trouble so stay away from it. It won't work.
 DD-WRT to DD-WRT WDS
  • 只要设备主AP为"wds ap"模式和 第二路由为 "wds station"模式.设置相同的SSID和加密算法
  • NO WDS support for connecting current DD-WRT MadWIFI <-> DD-WRT MadWIFI-N
 DD-WRT to Ubiquiti WDS
  • AirOS <=3.X <-> DD-WRT: 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 MadWIFI-N and AirOS 5.X <-> DD-WRT MadWIFI/DD-WRT MadWIFI-N
 DD-WRT 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.
 Broadcom to Atheros WDS Configuration (不支持)

 为了建立稳定性能的WDS,应该使用相同芯片的设备,比如 Broadcom-to-Broadcom 或者Atheros-to-Atheros.也就是说,在不同芯片上建立WDS的话,互通性是可能的,但是不能保证正常工作.

BOTH ROUTERS:

  • Wireless / Basic Settings: Wireless Mode = G-only
  • Wireless / Basic Settings: Network Name (SSID) = dd-wrt (modify to your liking)
  • Wireless / Wireless Security: Security Mode = WEP
  • 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

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

    上述例子是使用下面的设备进行最小测试得到的,于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)'

   不要把上述固件当作是这些设备的推荐固件。请参考Atheros和Broadcom的WIKI;s和论坛,获取官方的推荐固件。.

   在这一配置中,WPA/TKIP和WPA2/AES组合是不能使用的。 "AP"和"WDS AP" 两种模式在Atheros芯片上也不能使用.

   如果在WDS连接中出现困难,可以禁用加密再尝试进行连接。

基于Broadcom芯片的设备

刷写了DD-WRT固件的话,可以稳定地工作于WEP, WPA, 和 WPA2之下,这是被证实的。

正常工作的基于Broadcom芯片的设备
  • 3Com OfficeConnect,3CRWE454G72, in Repeater Mode
  • Alcatel Speedtouch 580
  • Asus WL-500g
  • Asus WL-520gU
  • Asus WL-500g Premium (v1 and v2)
  • Asus WL500W (K24 all and K26 builds up to 15314)
  • Asus RT-N12
  • Asus RT-N16
  • 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
  • Buffalo WLI-TX4-G54HP
  • Buffalo WZR-HP-G54
  • CompUSA SKU#333628 54Mbps Wireless Broadband Router (aka Edimax br-6204WG) []
  • 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 []
  • Linksys WRE54G Wireless Range Expander
  • Linksys WRT54G v1, v2, v3, v4, v5, v6, v8
  • Linksys WRT54G-TM (client) to WRT54GL (server).
  • Linksys WRT54G2 v1.0
  • Linksys WRT54GL v1.1
  • Linksys WRT54GS v1.0, v1.1, v2.0, v4, v5
  • Linksys WRT150N
  • Linksys WRT160N
  • Linksys WRT300N
  • Linksys WRT310N
  • Linksys WRT320N
  • Linksys WRT350N
  • Linksys WRT600N v1.1 (K24 only)
  • Linksys WRT610N v1 (K24 or K26)
  • Linksys WRT610N v2 (K26 Only)
  • Linksys E2000
  • Linksys E3000
  • Motorola WR850G v2, v3
  • Netfaster Iad
  • Netgear WG602 v3 Repeater Mode
  • Netgear WNR2000 v2
  • Netgear WNR834B
  • Netgear WNR834B v2
  • Netgear WNDR3300
  • Siemens Gigaset SE505
  • Siemens Gigaset Repeater
  • Sinus 154 Basic SE
  • Sinus 1054 DSL
  • Thomson ST780
  • USRobotics 5450 (AP Client mode)
  • USRobotics USR5461 (Client mode, AP, G-Only and WAP Personal)
  • Billion BiPAC 7402VGO
  • Billion BiPAC 7402VGP
  • Billion BiPAC 7404VGP


 设置/配置基于Broadcom芯片的设备

   设置两个Router时用到的两个标准术语:

  •  host router:指连接到internet的路由器.它的因特网连接会共享给客户.
  •  client router:指没有连接到internet的路由器。它要连接到host router.
  两个及以上的基于Broadcom兼容芯片的路由器的设置
  1. 推荐  在两个路由器,保存当前的配置: Administration -> Backup,按下Backup按钮并按提示保存NVRAM备份文件,文件名nvram_host.bin, and nvram_client.bin.如果新配置不能正常工作,可以使用这两个备份的配置文件快速恢复路由器 .
  2. 在Client Router, 进行复位到出厂设置,以避免潜在的问题产生.可以使用复位键或者通过图形设置界面: Administration -> Factory Defaults -> Reset router settings -> Restore Factory Defaults - 选择 Yes (radio button), 然后 按下Apply Settings按钮并等待重启. 
  3. 在client router, change the WAN Connection Type to Disabled. Setup -> Basic Setup -> WAN Setup -> WAN Connection Type . Also enable STP.
  4. On the client router, 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. On the 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. On the client router, Navigate to Setup > Advanced Routing. In the dropdown box for Operating Mode, Select Router. Click Save
  7. Again, client router; Navigate to Services. Disable DNSMasq as well as WAN Traffic Counter. Click Save
  8. On the 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. On both the host and client, 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. On both routers, disable wireless security (this should already be done if you reset both routers to factory defaults). Security can be re-enabled after all other steps are complete, but in order to minimize troubleshooting, it's best to get things set up with no security active. If this is impractical, e.g. the host is part of a working network, make certain that all security settings on the client match those of the host exactly. Wireless -> Wireless Security -> Wireless Security wl0
  11. Important: On the host, disable MAC address filtering
  12. On 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 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. On 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. If disabled, enable wireless security now (highly recommended). 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.

原文:

阅读(22224) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~