樹莓派3用create_ap變身無線AP


1.git clone https://github.com/oblique/create_ap.git
2.cd create_ap
3.sudo make install就這樣安裝好了
4.接下來安裝依賴庫sudo apt-get install util-linux procps hostapd iproute2 iw haveged dnsmasq
5.就這么簡單幾個命令就能安裝好全部環境
6.接下來保證你的網線插在pi3上並且能上網就行了。輸入下面的命令啟動無線AP:
sudo create_ap wlan0 eth0 熱點名 密碼
接下來就去打開手機wifi看看有沒有上面命令中設置的熱點名吧,有的話輸入密碼即可連接上,enjoy your PI3 wireless AP!
可以把上述的啟動命令添加到/etc/rc.local就可以開機自啟動了。
是不是很簡單,這個AP的局域網無線傳輸速度居然比我原來那個老AP還快一倍,也算是驚喜了,從此我的樹莓派3又增加了一個功能。

 文件下載:

 http://files.cnblogs.com/files/wangbin/create_ap-master.zip

Installation

Generic

git clone https://github.com/oblique/create_ap
cd create_ap
make install

ArchLinux (AUR)

yaourt -S create_ap

Gentoo

emerge layman
layman -f -a jorgicio
emerge net-wireless/create_ap

Examples

No passphrase (open network):

create_ap wlan0 eth0 MyAccessPoint

WPA + WPA2 passphrase:

create_ap wlan0 eth0 MyAccessPoint MyPassPhrase

AP without Internet sharing:

create_ap -n wlan0 MyAccessPoint MyPassPhrase

Bridged Internet sharing:

create_ap -m bridge wlan0 eth0 MyAccessPoint MyPassPhrase

Bridged Internet sharing (pre-configured bridge interface):

create_ap -m bridge wlan0 br0 MyAccessPoint MyPassPhrase

Internet sharing from the same WiFi interface:

create_ap wlan0 wlan0 MyAccessPoint MyPassPhrase

Choose a different WiFi adapter driver

create_ap --driver rtl871xdrv wlan0 eth0 MyAccessPoint MyPassPhrase

No passphrase (open network) using pipe:

echo -e "MyAccessPoint" | create_ap wlan0 eth0

WPA + WPA2 passphrase using pipe:

echo -e "MyAccessPoint\nMyPassPhrase" | create_ap wlan0 eth0

Enable IEEE 802.11n

create_ap --ieee80211n --ht_capab '[HT40+]' wlan0 eth0 MyAccessPoint MyPassPhrase

Client Isolation:

create_ap --isolate-clients wlan0 eth0 MyAccessPoint MyPassPhrase

Systemd service

Using the persistent systemd service

Start service immediately:

systemctl start create_ap

Start on boot:

systemctl enable create_ap


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM