Hostapd で2.4GHz帯と5GHz帯を同時に利用する。 [Hostapd で無線LAN AP構築]
Ubuntu 12.04をベースにしてHostapdを利用して無線LANアクセスポイントを構築しているのですが、a/n系とb/g/n系両対応するためのメモ。
両方を利用するためには、
1.物理的に別デバイスとして認識される無線LANデバイスが2つ必要
(もちろん、a/n対応のものと、b/g/n対応のもの)
両方のデバイス共に、アクセスポイントモードに対応している
AP modeへの対応可否はこちらから確認できます。
伴い、/etc/network/interfaces の修正が必要。
2.デバイスごとに/etc/hostapd/hostapd.confを用意することと、
それを読み込ませるために、/etc/default/hostapdを修正する。
3.Hostapd ver. 1.0以上を利用する。
さて、早速1からですが、
まえのエントリ「PLANEX 無線LANアダプタ GW-USMICRON をUbuntuで利用する」でGW-USMICRONを認識させましたので、/etc/network/interfacesを修正します。
そもそも2つのデバイスが必要なの??という点については不明です。
1つのデバイスでa/b/g/nに対応しているもので何とかならないのかと、wlan0のaliasを作ったり試行錯誤しましたが、結局わからなかったため、デバイスを2つ用意して、構築した次第です。
物理的に別デバイスとは、iw listしたときに、Wiphy phy0とWiphy phy1が表示されればOKということです。
さてさて、下記の赤字の部分が追記したところです。
--/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# Wired network interface
auto eth0
iface eth0 inet static
address 0.0.0.0
# Wireless network interface
auto wlan0
iface wlan0 inet static
address 0.0.0.0
auto wlan1
iface wlan1 inet static
address 0.0.0.0
# Bridge network interface
auto br0
iface br0 inet static
address 192.168.1.253
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.1
bridge_ports eth0 wlan0 wlan1
bridge_stp off
--
2については、もとの/etc/hostapd/hostapd.conf をベースにhostapd-2.4gh.confとhostapd-5ghz.confを作成します。
--hostapd-2.4ghz.conf
interface=wlan1
bridge=br0
driver=nl80211
country_code=JP
ieee80211d=1
ssid=AP7
channel=6
hw_mode=g
#ssid=AP8
#channel=44
#hw_mode=a
wpa=2
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
ieee80211n=1
wmm_enabled=1
ht_capab=[SMPS-STATIC][GF][HT40+][SHORT-GI-20][SHORT-GI-40][RX-STBC1]
macaddr_acl=0
deny_mac_file=/etc/hostapd/hostapd.deny
logger_syslog=-1
logger_syslog_level=3
--
--hostapd-5ghz.conf
interface=wlan0
bridge=br0
driver=nl80211
country_code=JP
ieee80211d=1
#ssid=AP7
#channel=6
#hw_mode=g
ssid=AP8
channel=44
hw_mode=a
wpa=2
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
ieee80211n=1
wmm_enabled=1
ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]
macaddr_acl=0
deny_mac_file=/etc/hostapd/hostapd.deny
logger_syslog=-1
logger_syslog_level=3
--
/etc/default/hostapd については、上で作成した2つのファイルを指定します。
DAEMON_CONF="/etc/hostapd/hostapd-5ghz.conf /etc/hostapd/hostapd-2.4ghz.conf"
最後に3ですが、Ubuntu12.04のapt-get installでインストールできるhostapdはver. 0.73で2つのデバイスを起動することには対応していないようです。そこで、ver. 1.0をビルドします。
ここから
# apt-get install libssl-dev libnl-dev
この辺が入っていないと、
../src/drivers/driver_nl80211.c:22:31: warning: netlink/genl/genl.h: No such file or directory
などとおこられます。
# tar zxvf hostapd-1.0.tar.gz
# cd hostapd-1.0
# cp defconfig .config
# vi ./.config
基本的にはそのままですが、
# IEEE 802.11n (High Throughput) support
CONFIG_IEEE80211N=y
ここだけ、コメントを外します。
# make
# make install
あと、serviceコマンドで起動できるようにします。
# vi /etc/init.d/hostapd
#DAEMON_SBIN=/usr/sbin/hostapd
DAEMON_SBIN=/usr/local/bin/hostapd
# service hostapd start
これでOKのはず!
Comparacion Viagra Cialis Levitra <a href=http://nefoc.com>dosis de propecia</a> Finish Amoxicillin Can Amoxicillin Be Taken When Expired
by StevNite (2019-05-13 10:33)
Precios De Cialis En Farmacias <a href=http://try-rx.com>cialis from canada</a> Ordering Viagra From Cananda
by StepOdors (2019-06-07 19:57)
Paxil On The Internet Balding Propecia Cialis Originale Prezzo <a href=http://antabusefast.com>buy antabuse online</a> Cialis Professional Review Secure Drugshop Propecia 1mg
by StevNite (2019-06-15 15:04)
Mail Order Progesterone No Script Needed Amex Accepted Buy Cheap Atomoxetine Online <a href=http://cialvia.com>generic cialis from india</a> Online Doxycycline Forum
by AustJath (2019-06-20 13:49)
Cheap Pariet <a href=http://achetercialisfr.com>cialis 5 mg tablet</a> Vendo Cialis Italia Online Progesterone Ups Worldwide Cytotec France
by StepOdors (2019-06-25 11:27)
Propecia Pris I Sverige <a href=http://asacdz.com>canadian pharmacy cialis</a> Cipro Or Amoxicillin Bladder Infection
by StevNite (2019-06-30 08:00)
Order Viagra From Canadian Pharmacy Zithromax Antibiotic Over The Counter <a href=http://tadalaf.com>cialis generic</a> Levitra Tempi Di Azione Effects Of Tadalis Sx Soft Amoxicillin And Lab Tests
by StevNite (2019-07-11 17:30)
Cialis E Extrasistole Levitra Cialis Foro <a href=http://cialisan.com>cialis</a> 25 Mcg Levothyroxine For Sale Viagra Brand Without Prescription. Buy Now Clobetasol Internet
by StepOdors (2019-07-12 11:53)
Buy Now Finasteride Keflex 750 <a href=http://cheapcial20mg.com>cialis 5mg</a> Wo Kann Ich Viagra Kaufen Euro Levitra Stendra Sale
by StevNite (2019-07-21 11:58)
Cialis Se Puede Comprar Sin Receta Expired Amoxil Levitra Kaufen Rezeptfrei <a href=http://abtsam.com>online pharmacy</a> Pvp Viagra Cheap Zoloft Without Prescription Cialis Comprar Foro
by StepOdors (2019-07-21 23:28)
Order Cialis Online Usa <a href=http://ciali5mg.com>cialis overnight shipping from usa</a> Alternativas Del Viagra
by FranBiape (2019-07-27 06:30)
Walmart Cephalexin Amoxicillin Sinus Infection <a href=http://lapizmoon.com>cialis</a> Buy Generic Cialis Online Uk Amoxicillin Tev
by AustJath (2019-07-28 18:54)
Le Viagra Est Il En Vente Libre En Pharmacie Le Cialis Prise <a href=http://cialibuy.com>Buy Cialis</a> Where Can I Buy Progesterone Mastercard Accepted Prix Propecia En France Prevacid Buy One Get One Rebate
by Matunmaks (2020-01-17 01:04)
Amoxicillin And Chewable Tablets http://cialibuy.com - cheap cialis online Propecia Vente Libre <a href=http://cialibuy.com>Cialis</a> Propecia Dose It Really Work
by StevBiaddy (2020-01-25 06:05)
Brand Name Cialis 20mg https://buyciallisonline.com/# - Buy Cialis Cheap Generic Prevacid <a href=https://buyciallisonline.com/#>Cialis</a> Canadian Pharmacy 24 Hour Online
by LesAlelty (2020-02-15 11:39)
Viagra Rezeptfrei 25 Mg http://viacialisns.com/# - Cialis Cheap Viagra Pill <a href=http://viacialisns.com/#>Cialis</a> Cialis Hoher Dosieren
by Matunmaks (2020-02-22 11:17)
Amoxicillin Dosage For Tooth Infection http://buycialisuss.com - cialis tablets for sale Prezzo Levitra In Farmacia <a href=http://buycialisuss.com>Cialis</a> Cialis Pharmacie Lyon
by Matunmaks (2020-02-25 11:52)
Viagra Se Vende Bajo Receta <a href=http://cheapcialisir.com>Cialis</a> Kamagra Bestellen Und Kaufen <a href=http://cheapcialisir.com>Cialis</a> Propecia Precio Comprar
by StepLot (2020-02-28 14:29)
Canadiana Pharmcy In Sarasato <a href=http://apcialisle.com/#>Cialis</a> Xenical A Petit Prix <a href=http://apcialisle.com/#>cialis no prescription</a> Crohn'S Disease Cephalexin
by StepLot (2020-03-05 06:54)
Acheter Viagra Contre Remboursement <a href=http://apcialisle.com/#>generic cialis from india</a> No Script Canadian Pharmacy <a href=http://apcialisle.com/#>generic cialis canada</a> Commande Viagra Et Cialis
by StepLot (2020-03-12 13:20)
Lasix 100mg <a href=http://cialibuy.com/#>Cialis</a> Cialis Mg <a href=http://cialibuy.com/#>Cialis</a> Propecia Uno De 50
by Jansyhorgo (2020-03-31 19:02)
Comprare Cialis Generico Italia <a href=https://buyciallisonline.com/#>Cialis</a> Cialis Ubersetzung <a href=https://buyciallisonline.com/#>Cialis</a> Effet Du Cialis 10
by Jansyhorgo (2020-04-11 21:06)
Cialis Acquistare In Farmacia https://cheapcialisll.com/ - Cialis Reputable Online Pharmacies Uk <a href=https://cheapcialisll.com/#>Cheap Cialis</a> kamagra ajanta pharma limited
by Estuase (2020-06-21 08:30)
Drug prescribing information. Short-Term Effects.
prednisolone buy https://prednisolone4u.top in Canada
All news about medicament. Read now.
https://amp.en.vaskar.co.in/translate/1?to=ru&from=en&source=Meds%20prescribing%20information.%20Short-Term%20Effects.%20%0D%0Aonline%20allopurinol%20https%3A%2F%2Fallopurinol4u.top%20in%20USA%20%0D%0ABest%20trends%20of%20medicament.%20Read%20information%20here.%20%0D%0A%20%0D%0Ahttps%3A%2F%2Fadvocate-gaidukov.ru%2F%25d1%2580%25d0%25b0%25d0%25b7%25d0%25b4%25d0%25b5%25d0%25bb-%25d0%25b1%25d0%25b8%25d0%25b7%25d0%25bd%25d0%25b5%25d1%2581%25d0%25b0-%25d0%25bc%25d0%25b5%25d0%25b6%25d0%25b4%25d1%2583-%25d1%2581%25d1%2583%25d0%25bf%25d1%2580%25d1%2583%25d0%25b3%25d0%25b0%25d0%25bc%25d0%25b8-%25d0%25bf%25d1%2580%25d0%25b8-%25d1%2580%25d0%25b0%2F%23comment-11200%20Actual%20what%20you%20want%20to%20know%20about%20pills.%20http%3A%2F%2Falim.mn%2Farticle%2F1086%20Everything%20trends%20of%20drugs.%20https%3A%2F%2Fakarui-mirai.blog.ss-blog.jp%2F2014-04-06-01%3Fcomment_success%3D2021-01-10T00%3A13%3A21%26time%3D1610205201%20All%20news%20about%20pills.%20%20ca3c01d%20&result=%D0%9B%D0%B5%D0%BA%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B0%2C%20%D0%B2%D1%8B%D0%BF%D0%B8%D1%81%D1%8B%D0%B2%D0%B0%D1%8E%D1%89%D0%B8%D0%B5%20%D0%B8%D0%BD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D1%85%D0%BE%D1%82%D0%B8%D1%82%D0%B5%20%D0%B7%D0%BD%D0%B0%D1%82%D1%8C%20%D0%BE%20%D1%82%D0%B0%D0%B1%D0%BB%D0%B5%D1%82%D0%BA%D0%B0%D1%85.%20http%3A%2F%2Falim.mn%2Farticle%2F1086%20%D0%B2%D1%81%D0%B5%20%D1%82%D0%B5%D0%BD%D0%B4%D0%B5%D0%BD%D1%86%D0%B8%D0%B8%20%D1%80%D0%B0%D0%B7%D0%B2%D0%B8%D1%82%D0%B8%D1%8F%20%D0%BD%D0%B0%D1%80%D0%BA%D0%BE%D1%82%D0%B8%D0%BA%D0%BE%D0%B2.%20https%3A%2F%2Fakarui-mirai.blog.ss-blog.jp%2F2014-04-06-01%3Fcomment_success%3D2021-01-10T00%3A13%3A21%26time%3D1610205201%20%D0%B2%D1%81%D0%B5%20%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8%20%D0%BE%20%D1%82%D0%B0%D0%B1%D0%BB%D0%B5%D1%82%D0%BA%D0%B0%D1%85.%20ca3c01d Some trends of medicine. https://amp.en.vaskar.co.in/translate/1?to=ru&from=en&source=Meds%20prescribing%20information.%20Long-Term%20Effects.%20%0D%0Ahow%20to%20buy%20allopurinol%20https%3A%2F%2Fallopurinol4u.top%20in%20Canada%20%0D%0ASome%20news%20about%20medicine.%20Get%20here.%20%0D%0A%20%0D%0Ahttp%3A%2F%2Falim.mn%2Farticle%2F300%20Actual%20information%20about%20medicament.%20https%3A%2F%2Fakarui-mirai.blog.ss-blog.jp%2FHONDA-N-BOX-SLASH-X-TD1-03%3Fcomment_success%3D2021-01-10T00%3A13%3A20%26time%3D1610205200%20Some%20information%20about%20meds.%20http%3A%2F%2Fabrozza.com.br%2Fproduto%2FBanner.html%23reviews%20Actual%20what%20you%20want%20to%20know%20about%20medication.%20%20f11c2_c%20&result=%D0%9B%D0%B5%D0%BA%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B0%2C%20%D0%B2%D1%8B%D0%BF%D0%B8%D1%81%D1%8B%D0%B2%D0%B0%D1%8E%D1%89%D0%B8%D0%B5%20%D0%B8%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D0%B8%D1%8E.%20%D0%94%D0%BE%D0%BB%D0%B3%D0%BE%D1%81%D1%80%D0%BE%D1%87%D0%BD%D1%8B%D0%B5%20%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82%D1%8B.%20%D0%BA%D0%B0%D0%BA%20%D0%BA%D1%83%D0%BF%D0%B8%D1%82%D1%8C%20%D0%90%D0%BB%D0%BB%D0%BE%D0%BF%D1%83%D1%80%D0%B8%D0%BD%D0%BE%D0%BB%20https%3A%2F%2Fallopurinol4u.top%20%D0%B2%20%D0%9A%D0%B0%D0%BD%D0%B0%D0%B4%D0%B5%20%D0%BA%D0%B0%D0%BA%D0%B8%D0%B5-%D1%82%D0%BE%20%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8%20%D0%BE%20%D0%BC%D0%B5%D0%B4%D0%B8%D1%86%D0%B8%D0%BD%D0%B5.%20%D0%98%D0%B4%D0%B8%20%D1%81%D1%8E%D0%B4%D0%B0.%20http%3A%2F%2Falim.mn%2Farticle%2F300%20%D0%B0%D0%BA%D1%82%D1%83%D0%B0%D0%BB%D1%8C%D0%BD%D0%B0%D1%8F%20%D0%B8%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D0%B8%D1%8F%20%D0%BE%20%D0%BB%D0%B5%D0%BA%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D0%BE%D0%BC%20%D1%81%D1%80%D0%B5%D0%B4%D1%81%D1%82%D0%B2%D0%B5.%20https%3A%2F%2Fakarui-mirai.blog.ss-blog.jp%2FHONDA-N-BOX-SLASH-X-TD1-03%3Fcomment_success%3D2021-01-10T00%3A13%3A20%26time%3D1610205200%20%D0%BD%D0%B5%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D0%B0%D1%8F%20%D0%B8%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D0%B8%D1%8F%20%D0%BE%20%D0%BB%D0%B5%D0%BA%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B0%D1%85.%20http%3A%2F%2Fabrozza.com.br%2Fproduto%2FBanner.html%23reviews%20%D0%BD%D0%B0%20%D1%81%D0%B0%D0%BC%D0%BE%D0%BC%20%D0%B4%D0%B5%D0%BB%D0%B5%20%D1%82%D0%BE%2C%20%D1%87%D1%82%D0%BE%20%D0%B2%D1%8B%20%D1%85%D0%BE%D1%82%D0%B8%D1%82%D0%B5%20%D0%B7%D0%BD%D0%B0%D1%82%D1%8C%20%D0%BE%20%D0%BB%D0%B5%D0%BA%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B0%D1%85.%20f11c2_c Actual news about medication. http://alim.mn/article/337 Best about medication. 64d3730
by DavidRnn (2021-01-10 02:06)
Drug information for patients. Long-Term Effects. <a href="https://prednisone4u.top">where buy generic prednisone tablets</a> in the USA. Actual trends of pills. Get now.
<a href=http://eshop.goodmat.cz/index.php?action=detail&id=ID1482>All trends of meds.</a> <a href=https://justdacey.com/the-quarantine-life/#comment-61812>Actual trends of medicines.</a> <a href=http://kireevsk-crb-zdrav.ru/forums/topic/everything-trends-of-medicines/>Everything trends of medicines.</a> 141_42f
by UznOT (2021-01-10 08:20)
5G already!? wooah!
by https://eyelashextensionspittsburghpa.com (2021-06-30 10:32)
next level!!! happy for u
by https://eyelashextensionsalbany.com (2021-06-30 10:32)
коли почалась друга світова війна <a href="http://bitly.com/skilky-shche-bude-tryvaty-viyna-v-ukrayini">коли закінчиться війна в україні</a> коли почалась друга світова війна
by Aberthap (2022-03-05 10:59)
https://t.me/holostyaktntofficial2022
by Abrthap (2022-03-12 18:59)
https://t.me/holostyaktntofficial2022
by Abrthap (2022-03-14 17:38)
<a href="https://t.me/filmfilmfilmes/5">Выживший</a>
by Abrthap (2022-03-17 06:16)
<a href="https://t.me/filmfilmfilmes/13">12 лет рабства</a>
by Abrthap (2022-03-18 06:22)
<a href="https://t.me/filmfilmfilmes/18">Последний богатырь 2</a>
by Abrthap (2022-03-19 06:34)
<a href="https://t.me/filmfilmfilmes/6">Охотник на лис</a>
by Abrthap (2022-03-20 06:28)
I felt bad before I read this article, but I am feeling better now. My brothere also deals with. Please write new posts often. Many thanks.
https://totoblogs.com
by 먹튀검증 (2022-11-02 17:12)
Hello, I read good information. I will be visiting your website often in the future.
golden112233
에볼루션바카라 http://www.golden-evolution.com/
by 에볼루션바카라 (2023-11-25 14:48)