WDS(sta+ap+wds实现repeater功能)
1、实现方法: 1)设备端ap Create ath1 ap mode //创建接口ath1为ap模式,用于连接下行客户端sta Create ath0 sta mode//创建接口ath0为sta模式,用于扫描和连接上行ROOTap Bridge ath0 and ath1//桥接ath1 ath0 iwpriv ath0 wds 1//开启wds功能 Associate ath0 with Root AP//sta接口扫描并关联上行ROOTap 2)ROOTap Create ath0 ap mode//AP模式 iwpriv ath0 wds 1//开启wds功能 2、实现原理: sta到ROOTap RA:ROOT_BSS TA:ath0 DA:ROOTAP SA:STA ROOTap到sta RA:ath0 TA:ROOT_BSS DA:STA SA:ROOTAP
NAWDS(不支持加密方式,只支持open和wep模式)
1、实现方法: 设备端ap和ROOTap端均如下操作: Create ath0 ap mode//一般的AP模式 wlanconfig ath0 nawds mode 1 wlanconfig ath0 nawds add-repeater [peer mac] 0x9 iwpriv ath0 wds 1//开启wds功能 2、实现原理: 通过iwpriv ath0 wds 1开启wds功能 sta到ROOTap RA:ROOT_BSS TA:ath0 DA:ROOTAP SA:STA ROOTap到sta RA:ath0 TA:ROOT_BSS DA:STA SA:ROOTAP
EXTAP:
1、实现方法: 1)设备端ap Create ath1 ap mode //创建接口ath1为ap模式,用于连接下行客户端sta Create ath0 sta mode//创建接口ath0为sta模式,用于扫描和连接上行ROOTap Bridge ath0 and ath1//桥接ath1 ath0 iwpriv ath0 extap 1//开启ext功能 //iwpriv ath0 vap_ind 1 //选用是否开启,开启表示ap VAP不依赖sta VAP是否已经关联上ROOTap的状态 Associate ath0 with Root AP//sta接口扫描并关联上行ROOTap 2)ROOTap Create ath0 ap mode//一般AP模式即可 2、实现原理: 通过IP-MAC Map Table,实现sta的IP和MAC的映射。 当数据包从sta到设备ap后,通过ext将源MAC为sta的MAC转换为ath0的mac,再发往ROOTap 当数据包从ROOTap到设备ap后,将DSTMAC由ath0根据IP-MAC Map Table转换为sta的mac,再发往sta
Q-WRAP(QCA Wireless Repeater AP)
1、实现方法: 与EXTAP的实现方法类似 2、实现原理: 在客户端sta连接到设备端ap时,设备会在sta接口ath0根据客户端的mac创建虚拟接口 根据虚拟接口的mac即可实现sta到ROOTap的数据传输
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/220801.html原文链接:https://javaforall.net
