Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
zh:docs:guide-user:network:wifi:atheroswds [2019/08/22 09:43] – [使用SSH] biajizh:docs:guide-user:network:wifi:atheroswds [2019/08/22 10:06] – [使用SSH] biaji
Line 58: Line 58:
  
 如果原有的wlan接口不是网桥的一部分的话,新的wlan.staN接口默认*不会*被桥接。 如果原有的wlan接口不是网桥的一部分的话,新的wlan.staN接口默认*不会*被桥接。
-If in your setup the AP interface is not already part of a bridge you will need to create a new bridge interface and associate only the AP wlan interface to it. In this case hostapd will automatically add any new wlan.staN interface to the bridge.+如果您设置的AP接口目前还不是网桥的一部分的话,您必须新建一个网桥接口,并将其关联至接入点wlan接口。这样hostapd才会自动将wlan.staN接口添加至网桥。
  
 === 远端无线终端 === === 远端无线终端 ===
Line 79: Line 79:
 </code> </code>
  
-__**NOTE:**__ LAN interface can stay static ip but need to disable dhcp server for LAN interface. If set LAN interface to get ip from dhcp server then you have to search remote router ip each time you reboot it.+__**注意:**__ LAN接口可以保持静态ip,但必须禁用dhcp服务。如果将LAN接口设置为由dhcp服务获取ip的话,则每次启动时,都会查找远端路由ip
  
-Once those steps are completed, we can setup the actual wireless link.+当上述步骤完成后,我们就可以开始设置wifi连接了。
  
-Edit the [[docs:guide-user:network:wifi:basic|/etc/config/wireless]] file. In the ''radio0'' section, make sure that the wireless settings match the values in the access point.+编辑[[docs:guide-user:network:wifi:basic|/etc/config/wireless]]文件。在''radio0''段,需确保无线设置与接入点的对应设置值保持一致。
  
-Further down in the same file, modify the ''wifi-iface'' section to include the desired SSID to which to connect (the same one as on the access point) and ensure WDS is enabled by setting this value to 1.+同一文件的下面一点,修改''wifi-iface''段,加入想要连接至的SSID(即接入点的SSID),并确认WDS已启用:其值设置为1
  
-This is an example from /etc/config/wireless on the wireless client bridge device. The specific options may be different depending on the hardware but the SSID, channel, encryption type and password must match the access point, and WDS mode must be turned on.+以下是一个无线客户端桥接设备的/etc/config/wireless文件示例。某些选项根据硬件不同可能会有所差异,但SSID、无线通道、加密类型必须与接入点保持一致。而且WDS模式必须开启。
  
 <code> <code>
Line 115: Line 115:
 </code> </code>
  
-See the [[docs:guide-user:network:wifi:encryption|Configure WiFi encryption]] for pointer on how to specify encryption and keys.+参阅[[docs:guide-user:network:wifi:encryption|配置无线密码]]以获取更多密码和密钥配置的信息。
  
-Disconnect the device from the wired network and reboot the device without any wired connection.+将设备由有线网络断开,并在保持没有有线连接的情况下重启。
  
-The device should boot and automatically connect wirelessly to the access point. **Wait until the client bridge device associates with the access point. This can take 1-2 minutes for the association to happen.** Once this has happened, the **wired interface (e.g. eth0)** should succeed in getting a DHCP address through the new wireless bridge connection. Note that the wireless interface itself on the remote client bridge device does not get an IP address as it is now acting as a transparent bridge.+设备重启后将自动连入接入点的无线网络。**客户段网桥设备启动并连入接入点需要花费1-2分钟,需要等待这个过程结束。** 然后,**有线接口(比如eth0**将通过无线桥接连接成功获取DHCP地址。注意,此时远端客户端网桥设备的无线网络自身却不会获取到IP地址,因为它作为透明网桥被使用。
  
-Any //wired devices// connected via Ethernet to the LAN ports on the remote client bridge device should now be transparently bridged into the main network over the wireless link.+通过LAN端口连接至远端客户端网桥设备的//有线设备//此时已经经由无线连接透明网桥至主网络了。
  
 **无线连接,还需最后一步:** **无线连接,还需最后一步:**
  • Last modified: 2019/08/22 10:07
  • by biaji