2008年10月6日 星期一

madwifi - VAPs

VAP = Virtual AP
就是虛擬裝置
可以把一張網卡模擬成很多張 (最多四個!? 不確定)

http://madwifi.org/users-guide/node14.html
裡面就有很多範例

1.
Example:If we wish to use the system as a station only, we would create a single station VAP once the driver is loaded. The following command creates a single station VAP named ath0 on device wifi0:

2.
Example:Now, we wish to create two AP VAPs on device wifi0. Both devices will have a the same MAC address cloned from the underlying device. The first VAP will be ath0 and the second VAP will be ath1.

3.
Example:Now, we wish to create two AP VAPs and one station VAP. The AP VAPs will be ath0 and ath2 and the station VAP will be ath1.

4.
Example:Now, we wish to destroy a VAP (regardless of its operating mode). We assume that there is a VAP named ath0, and it's the one we wish to destroy.


第三個範例 就打
wlanconfig ath create wlandev wifi0 wlanmode ap
wlanconfig ath create wlandev wifi0 wlanmode sta nosbeacon
wlanconfig ath create wlandev wifi0 wlanmode ap

--------------------------------------------------

也可以模仿meraki 兩個master 一個managed 一個monitor

wlanconfig ath create wlandev wifi0 wlanmode ap -bssid
wlanconfig ath create wlandev wifi0 wlanmode sta nosbeacon
wlanconfig ath create wlandev wifi0 wlanmode monitor
wlanconfig ath create wlandev wifi0 wlanmode ap -bssid

--

不過VAP好像不能用 adhoc !?!?

沒有留言: