frank-w
Anmeldungsdatum: 30. September 2008
Beiträge: 419
|
Hallo, hat jemand schonmal mit Hostapd einen Dual-Band-AccessPoint aufgesetzt? hier habe ich einen Ansatz (für Raspbian), wie man hostapd für das 5GHz-Band konfiguriert...nur es gibt ja Einstellungen (z.B. Channel), welche auch bei 2,4GHz existieren und dann überschrieben werden.
http://www.raspberrypi.org/forums/viewtopic.php?f=63&t=31374 edit: hier hat jemand einem Hostapd 2 Config-Dateien übergeben...da werden aber scheinbar 2 Interfaces (wlan0,wlan1) verwendet: http://ubuntuforums.org/showthread.php?t=1585948 hier hat jemand das auch gefragt: http://permalink.gmane.org/gmane.linux.drivers.hostap/26817, er konnte wohl mit der Karte nur ein Band bedienen und braucht eine separate Karte für das andere Band... gibt es Karten, die beide Bänder gleichzeitig bedienen können und wie kann man das testen? Gruß Frank
|
raptor2101
Anmeldungsdatum: 8. Juni 2009
Beiträge: 1249
Wohnort: Stuttgart, Deutschland
|
Auf deine Frage: ja habe ich aber unter OpenWRT auf einem Buffallo WZR 300 AG. Es werden dort zwei Hostapd gestartet. Jeweils einer für ein Band. Macht auch Sinn, da du unter 2.4GHz meist eine andere "Bandbreite" (20 oder 40MHz) als unter 5GHz wählen willst. Bei endgeräten die beide Bänder sehen können, wird es dann witzig mit der Konfiguration.
|
frank-w
(Themenstarter)
Anmeldungsdatum: 30. September 2008
Beiträge: 419
|
sorry für die späte Antwort, hatte das Thema aus den Augen verloren... sind bei dir 2 verschiedene Wlan-Interfaces definiert? ich habe bei der netzwerkkarte ja nur wlan0, welches ich entweder als 2,4 oder 5 ghz ansprechen kann...wird auch mit 2 hostapd vermutlich nicht funktionieren, da der erste das interface blockiert. kann man da auch virtuelle intefaces wlan0:1/wlan0:1 verwenden wie bei normalen eth-Schnittstellen? letzendlich muss ja die Netzwerkkarte selbst in 2 Bändern gleichzeitig funken
|
elektronenblitz63
Anmeldungsdatum: 16. Januar 2007
Beiträge: 29307
Wohnort: NRW
|
Hallo, hostapd erzeugt eine zweite virtuelle Schnittstelle, welche für das 5GHz-Band konfiguriert werden kann. Dazu muss die MAC-Adresse des Adapters (wlan0) angegeben werden. Für das zweite Interface ändert sich dann das letzte Oktett der MAC-Adresse. Für beide AP's kann ein eigener Zugangsschlüssel, Funkkanal, SSID usw. festgelegt werden. Die IP-Konfiguration, IP-Forward und ggf. NAT oder eine Bridge muss ebenfalls separat eingestellt werden. Das sieht in der hostapd.conf dann etwa so aus:
# WLAN0-Konfiguration
interface=wlan0
bssid=<MAC-Adresse>
driver=nl80211
# WLAN-Konfiguration wlan0
...
# WLAN1-Konfiguration / VLAN
bss=wlan1
driver=nl80211
# WLAN-Konfiguration wlan1
...
|
frank-w
(Themenstarter)
Anmeldungsdatum: 30. September 2008
Beiträge: 419
|
werde ich demnächst mal probieren...wird das wlan1 als richtiges device angelegt? du hast auch 2 separate hostapd-prozesse, oder? kann man die per config bei systemstart starten (/etc/default) oder muss ich den 2. per rc-local bzw. kopiertem init-script+update-rc.d o.ä. starten gibt es mittlerweile dual-band-usb-wlan-karten, die keine gepatchte hostapd benötigen (also mit dem hostapd-Paket aus den offiziellen Repos funktioniert)?
|
phlomos
Anmeldungsdatum: 13. Oktober 2017
Beiträge: 8
|
elektronenblitz63 schrieb: hostapd erzeugt eine zweite virtuelle Schnittstelle, welche für das 5GHz-Band konfiguriert werden kann. Dazu muss die MAC-Adresse des Adapters (wlan0) angegeben werden. Für das zweite Interface ändert sich dann das letzte Oktett der MAC-Adresse. Für beide AP's kann ein eigener Zugangsschlüssel, Funkkanal, SSID usw. festgelegt werden. Die IP-Konfiguration, IP-Forward und ggf. NAT oder eine Bridge muss ebenfalls separat eingestellt werden. Das sieht in der hostapd.conf dann etwa so aus:
# WLAN0-Konfiguration
interface=wlan0
bssid=<MAC-Adresse>
driver=nl80211
# WLAN-Konfiguration wlan0
...
# WLAN1-Konfiguration / VLAN
bss=wlan1
driver=nl80211
# WLAN-Konfiguration wlan1
...
Basierend auf dieser Erklärung habe folgende hostapd.conf kreiert: #
# 2,4GHz
#
interface=wlp6s0
#bssid=04:f0:21:25:1c:11 # Original: 0000:0100:1111:0000:0010:0001:0010:0101:0001:1100:0001:0001
bssid=06:f0:21:25:1c:10 # New: 0000:0110:1111:0000:0010:0001:0010:0101:0001:1100:0001:0000
driver=nl80211
hw_mode=g
country_code=CH
channel=6
ssid=Netz24
#
# 5GHz
#
bss=wlp6s0_0
driver=nl80211
hw_mode=a
country_code=CH
channel=40
ssid=Netz5
Das Ganze läuft auf einem COMPEX WLE900VX-7A miniPCIe-Modul (http://www.compexshop.com/product_info.php/products_id/452), das gemäss Beschreibung Simultaneous Dual Band auf einem Atheros AR9880 anbieten sollte.
Leider erzeugt hostapd (upstream v2.4) mit der oben zitierten Konfiguration nur zwei Netze im 5GHz-Bereich und nicht wie gewünscht eines im 2,4GHz und ein zweites im 5GHz-Bereich. Als Treiber wird der ath10k_pci v4.9.0-4-amd64 SMP mod_unload modversions verwendet: # lsmod|grep ath
ath10k_pci 45056 0
ath10k_core 249856 1 ath10k_pci
ath 32768 1 ath10k_core
mac80211 671744 1 ath10k_core
cfg80211 589824 3 mac80211,ath,ath10k_core
Weiss jemand, wie ich rausfinden kann, ob diese Karte wirklich zwei Radios hat? Oder muss ich hostapd patchen? Falls ja, wie? Oder weiss jemand, was ich falsch mache?
|
elektronenblitz63
Anmeldungsdatum: 16. Januar 2007
Beiträge: 29307
Wohnort: NRW
|
Hallo, was zeigt nach der Konfiguration ...
| iw list
ifconfig -a
iwconfig
|
Genaue Hardwareinfo:
| lspci -nnk | grep -i net -A2
|
Weiss jemand, wie ich rausfinden kann, ob diese Karte wirklich zwei Radios hat?
Es muss zuvor ein zus. virtuelles Interface mit anderer MAC-Adresse erzeugt werden.
|
phlomos
Anmeldungsdatum: 13. Oktober 2017
Beiträge: 8
|
Guten Morgen, Vielen Dank für Deine Antwort! elektronenblitz63 schrieb: was zeigt nach der Konfiguration ...
| iw list
ifconfig -a
iwconfig
|
Genaue Hardwareinfo:
| lspci -nnk | grep -i net -A2
|
root@hotspot:~# iw list
Wiphy phy0
max # scan SSIDs: 16
max scan IEs length: 195 bytes
max # sched scan SSIDs: 0
max # match sets: 0
max # scan plans: 1
max scan plan interval: -1
max scan plan iterations: 0
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports RSN-IBSS.
Device supports AP-side u-APSD.
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP-128 (00-0f-ac:4)
* CMAC (00-0f-ac:6)
Available Antennas: TX 0x7 RX 0x7
Configured Antennas: TX 0x7 RX 0x7
Supported interface modes:
* managed
* AP
* AP/VLAN
* monitor
* mesh point
Band 1:
Capabilities: 0x19ef
RX LDPC
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 8 usec (0x06)
HT TX/RX MCS rate indexes supported: 0-23
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 2412 MHz [1] (20.0 dBm)
* 2417 MHz [2] (20.0 dBm)
* 2422 MHz [3] (20.0 dBm)
* 2427 MHz [4] (20.0 dBm)
* 2432 MHz [5] (20.0 dBm)
* 2437 MHz [6] (20.0 dBm)
* 2442 MHz [7] (20.0 dBm)
* 2447 MHz [8] (20.0 dBm)
* 2452 MHz [9] (20.0 dBm)
* 2457 MHz [10] (20.0 dBm)
* 2462 MHz [11] (20.0 dBm)
* 2467 MHz [12] (disabled)
* 2472 MHz [13] (disabled)
* 2484 MHz [14] (disabled)
Band 2:
Capabilities: 0x19ef
RX LDPC
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 8 usec (0x06)
HT TX/RX MCS rate indexes supported: 0-23
VHT Capabilities (0x338001b2):
Max MPDU length: 11454
Supported Channel Width: neither 160 nor 80+80
RX LDPC
short GI (80 MHz)
TX STBC
RX antenna pattern consistency
TX antenna pattern consistency
VHT RX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: MCS 0-9
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT RX highest supported: 0 Mbps
VHT TX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: MCS 0-9
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT TX highest supported: 0 Mbps
Bitrates (non-HT):
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 5180 MHz [36] (20.0 dBm)
* 5200 MHz [40] (20.0 dBm)
* 5220 MHz [44] (20.0 dBm)
* 5240 MHz [48] (20.0 dBm)
* 5260 MHz [52] (20.0 dBm) (no IR, radar detection)
* 5280 MHz [56] (20.0 dBm) (no IR, radar detection)
* 5300 MHz [60] (20.0 dBm) (no IR, radar detection)
* 5320 MHz [64] (20.0 dBm) (no IR, radar detection)
* 5500 MHz [100] (23.0 dBm) (no IR, radar detection)
* 5520 MHz [104] (23.0 dBm) (no IR, radar detection)
* 5540 MHz [108] (23.0 dBm) (no IR, radar detection)
* 5560 MHz [112] (23.0 dBm) (no IR, radar detection)
* 5580 MHz [116] (23.0 dBm) (no IR, radar detection)
* 5600 MHz [120] (23.0 dBm) (no IR, radar detection)
* 5620 MHz [124] (23.0 dBm) (no IR, radar detection)
* 5640 MHz [128] (23.0 dBm) (no IR, radar detection)
* 5660 MHz [132] (23.0 dBm) (no IR, radar detection)
* 5680 MHz [136] (23.0 dBm) (no IR, radar detection)
* 5700 MHz [140] (23.0 dBm) (no IR, radar detection)
* 5720 MHz [144] (disabled)
* 5745 MHz [149] (disabled)
* 5765 MHz [153] (disabled)
* 5785 MHz [157] (disabled)
* 5805 MHz [161] (disabled)
* 5825 MHz [165] (disabled)
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* new_mpath
* set_mesh_config
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* join_mesh
* remain_on_channel
* set_tx_bitrate_mask
* frame
* frame_wait_cancel
* set_wiphy_netns
* set_channel
* set_wds_peer
* probe_client
* set_noack_map
* register_beacons
* start_p2p_device
* set_mcast_rate
* channel_switch
* set_qos_map
* connect
* disconnect
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0x40 0xb0 0xc0 0xd0
* managed: 0x40 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* mesh point: 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* P2P-device: 0x40 0xd0
software interface modes (can always be added):
* AP/VLAN
* monitor
valid interface combinations:
* #{ AP, mesh point } <= 8, #{ managed } <= 1,
total <= 8, #channels <= 1, STA/AP BI must match
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
Device supports TX status socket option.
Device supports HT-IBSS.
Device supports SAE with AUTHENTICATE command
Device supports scan flush.
Device supports AP scan.
Device supports per-vif TX power setting
Driver supports full state transitions for AP/GO clients
Driver supports a userspace MPM
Driver/device bandwidth changes during BSS lifetime (AP/GO mode)
Device supports static SMPS
Device supports configuring vdev MAC-addr on create.
Device supports VHT-IBSS.
root@hotspot:~# ifconfig -a
br-lan: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.234.1 netmask 255.255.255.0 broadcast 192.168.234.255
ether 00:d0:b7:af:d2:0e txqueuelen 1000 (Ethernet)
RX packets 972 bytes 100525 (98.1 KiB)
RX errors 0 dropped 34 overruns 0 frame 0
TX packets 121203 bytes 10411394 (9.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 1.2.3.4 netmask 255.255.248.0 broadcast 129.194.103.255
ether 1c:1b:0d:95:fc:35 txqueuelen 1000 (Ethernet)
RX packets 52651619 bytes 15004669860 (13.9 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17853507 bytes 24101248866 (22.4 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp5s6: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:d0:b7:af:d2:0e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1 (Local Loopback)
RX packets 1549560 bytes 23028355718 (21.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1549560 bytes 23028355718 (21.4 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp6s0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 06:f0:21:25:1c:10 txqueuelen 1000 (Ethernet)
RX packets 975 bytes 114377 (111.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 236512 bytes 19710659 (18.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp6s0_0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 06:f0:21:25:1c:11 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 237915 bytes 19754441 (18.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@hotspot:~# iwconfig
wlp6s0_0 IEEE 802.11 Mode:Master Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
wlp6s0 IEEE 802.11 Mode:Master Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
enp5s6 no wireless extensions.
enp4s0 no wireless extensions.
lo no wireless extensions.
br-lan no wireless extensions.
root@hotspot:~# lspci -nnk | grep -i net -A2
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet [1458:e000]
Kernel driver in use: r8169
Kernel modules: r8169
05:06.0 Ethernet controller [0200]: Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 [8086:1229] (rev 08)
Subsystem: Intel Corporation EtherExpress PRO/100+ Management Adapter [8086:000c]
Kernel driver in use: e100
--
06:00.0 Network controller [0280]: Qualcomm Atheros QCA986x/988x 802.11ac Wireless Network Adapter [168c:003c]
Kernel driver in use: ath10k_pci
Kernel modules: ath10k_pci Weiss jemand, wie ich rausfinden kann, ob diese Karte wirklich zwei Radios hat?
Es muss zuvor ein zus. virtuelles Interface mit anderer MAC-Adresse erzeugt werden.
Das wäre dann wlp6s0_0 .
|
elektronenblitz63
Anmeldungsdatum: 16. Januar 2007
Beiträge: 29307
Wohnort: NRW
|
Hi, wie gesagt, erzeuge mal vorab ein zweites Interface und übergib dann in der hostapd.conf Name und MAC-Adresse für jedes Interface. Dann müsste ein komplett getrennte Konfiguration möglich sein. Beispiel:
| sudo iw phy phy0 interface add wlan2 type managed
|
Kannst Du so übernehmen, der Name des Interface wird aut. generiert. Erzeugt dann ein zweites Interface mit bereits geänderter MAC:
1
2
3
4
5
6
7
8
9
10
11
12
13 | wlx0015af7278f8 Link encap:Ethernet Hardware Adresse 00:15:af:72:78:f8
BROADCAST MULTICAST MTU:1500 Metrik:1
RX-Pakete:0 Fehler:0 Verloren:0 Überläufe:0 Fenster:0
TX-Pakete:0 Fehler:0 Verloren:0 Überläufe:0 Träger:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX-Bytes:0 (0.0 B) TX-Bytes:0 (0.0 B)
wlx0015af7278ff Link encap:Ethernet Hardware Adresse 00:15:af:72:78:ff
UP BROADCAST MULTICAST MTU:1500 Metrik:1
RX-Pakete:0 Fehler:0 Verloren:0 Überläufe:0 Fenster:0
TX-Pakete:0 Fehler:0 Verloren:0 Überläufe:0 Träger:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX-Bytes:0 (0.0 B) TX-Bytes:0 (0.0 B)
|
Weiss jemand, wie ich rausfinden kann, ob diese Karte wirklich zwei Radios hat?
Das ist eine Dualband-Karte mit zwei getrennten Transceivern. Oder muss ich hostapd patchen? Falls ja, wie?
Das kann ich nicht beantworten.
|
phlomos
Anmeldungsdatum: 13. Oktober 2017
Beiträge: 8
|
Hallo, elektronenblitz63 schrieb: wie gesagt, erzeuge mal vorab ein zweites Interface
root@hotspot:/etc/hostapd# iw phy phy0 interface add wlan2 type managed
root@hotspot:/etc/hostapd# ip address show
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc prio state UP group default qlen 1000
link/ether 1c:1b:0d:95:fc:35 brd ff:ff:ff:ff:ff:ff
inet 1.2.3.4/21 brd 129.194.103.255 scope global enp4s0
valid_lft forever preferred_lft forever
3: enp5s6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master br-lan state DOWN group default qlen 1000
link/ether 00:d0:b7:af:d2:0e brd ff:ff:ff:ff:ff:ff
4: wlp6s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 06:f0:21:25:1c:10 brd ff:ff:ff:ff:ff:ff
5: br-lan: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 00:d0:b7:af:d2:0e brd ff:ff:ff:ff:ff:ff
inet 192.168.234.1/24 brd 192.168.234.255 scope global br-lan
valid_lft forever preferred_lft forever
11: wlan2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 04:f0:21:25:1c:11 brd ff:ff:ff:ff:ff:ff übergib dann in der hostapd.conf Name und MAC-Adresse für jedes Interface.
# cat /etc/hostapd/hostapd.conf
#
# 2,4GHz
#
interface=wlp6s0
driver=nl80211
hw_mode=g
country_code=CH
channel=6
ssid=Netz24
#
# 5GHz
#
bss=wlan2
driver=nl80211
hw_mode=a
country_code=CH
channel=40
ssid=Netz5 Dann müsste ein komplett getrennte Konfiguration möglich sein.
# hostapd -d /etc/hostapd/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Using driver-based off-channel TX
nl80211: interface wlp6s0 in phy phy0
nl80211: Set mode ifindex 4 iftype 3 (AP)
nl80211: Failed to set interface 4 to mode 3: -16 (Device or resource busy)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 4 iftype 3 (AP)
nl80211: Mode change succeeded while interface is down
nl80211: Setup AP(wlp6s0) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x55c3bdbca0e0
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x55c3bdbca0e0 match=
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x55c3bdbca0e0 match=
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x55c3bdbca0e0 match=
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x55c3bdbca0e0 match=
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x55c3bdbca0e0 match=
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c3bdbca0e0 match=
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x55c3bdbca0e0 match=
nl80211: Add own interface ifindex 4
nl80211: if_indices[16]: 4
phy: phy0
BSS count 2, BSSID mask ff:ff:ff:ff:ff:fe (1 bits)
wlp6s0: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code CH, new country code CH
nl80211: Regulatory information - country=CH (DFS-ETSI)
nl80211: 2402-2482 @ 40 MHz 20 mBm
nl80211: 5170-5250 @ 80 MHz 20 mBm
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS)
nl80211: 5490-5710 @ 160 MHz 27 mBm (DFS)
nl80211: 57000-66000 @ 2160 MHz 40 mBm
nl80211: Added 802.11b mode based on 802.11g information
Completing interface initialization
Mode: IEEE 802.11a Channel: 40 Frequency: 5200 MHz
DFS 0 channels required radar detection
nl80211: Set freq 5200 (ht_enabled=0, vht_enabled=0, bandwidth=20 MHz, cf1=5200 MHz, cf2=0 MHz)
* freq=5200
* vht_enabled=0
* ht_enabled=0
RATE[0] rate=60 flags=0x1
RATE[1] rate=90 flags=0x0
RATE[2] rate=120 flags=0x1
RATE[3] rate=180 flags=0x0
RATE[4] rate=240 flags=0x1
RATE[5] rate=360 flags=0x0
RATE[6] rate=480 flags=0x0
RATE[7] rate=540 flags=0x0
hostapd_setup_bss(hapd=0x55c3bdbca900 (wlp6s0), first=1)
wlp6s0: Flushing old station entries
nl80211: flush -> DEL_STATION wlp6s0 (all)
wlp6s0: Deauthenticate all stations
nl80211: send_mlme - da= ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=5200
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-16 (Device or resource busy) (freq=5200 wait=0)
wpa_driver_nl80211_set_key: ifindex=4 (wlp6s0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlp6s0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlp6s0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlp6s0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlp6s0 with hwaddr 06:f0:21:25:1c:10 and ssid "Netz24"
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=57): 80 00 00 00 ff ff ff ff ff ff 06 f0 21 25 1c 10 06 f0 21 25 1c 10 00 00 00 00 00 00 00 00 00 00 64 00 01 00 00 06 4e 65 74 7a 32 34 01 08 8c 12 98 24 b0 48 60 6c 03 01 28
nl80211: Beacon tail - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: ifindex=4
nl80211: beacon_int=100
nl80211: dtim_period=2
nl80211: ssid - hexdump_ascii(len=6):
4e 65 74 7a 32 34 Netz24
* beacon_int=100
nl80211: hidden SSID not in use
nl80211: privacy=0
nl80211: auth_algs=0x3
nl80211: wpa_version=0x0
nl80211: key_mgmt_suites=0x4
nl80211: pairwise_ciphers=0x1
nl80211: group_cipher=0x1
nl80211: beacon_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: proberesp_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: assocresp_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: Set wlp6s0 operstate 0->1 (UP)
netlink: Operstate: ifindex=4 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
hostapd_setup_bss(hapd=0x55c3bdbcbfa0 (wlan2), first=0)
nl80211: Create interface iftype 3 (AP)
Failed to create interface wlan2: -23 (Too many open files in system)
Try to remove and re-create wlan2
nl80211: Remove interface ifindex=11
nl80211: if_indices[16]: 4
nl80211: Create interface iftype 3 (AP)
nl80211: Ignored event (cmd=7) for foreign interface (ifindex 12 wdev 0x0)
nl80211: New interface wlan2 created: ifindex=12
nl80211: Add own interface ifindex 12
nl80211: if_indices[16]: 4 12
nl80211: Setup AP(wlan2) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x55c3bdbce6c0
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x55c3bdbce6c0 match=
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x55c3bdbce6c0 match=
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x55c3bdbce6c0 match=
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x55c3bdbce6c0 match=
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x55c3bdbce6c0 match=
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c3bdbce6c0 match=
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x55c3bdbce6c0 match=
nl80211: Add own interface ifindex 12
nl80211: ifindex 12 already in the list
wlp6s0: Flushing old station entries
nl80211: flush -> DEL_STATION wlan2 (all)
wlp6s0: Deauthenticate all stations
nl80211: send_mlme - da= ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=5200
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-16 (Device or resource busy) (freq=5200 wait=0)
wpa_driver_nl80211_set_key: ifindex=12 (wlan2) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=12 (wlan2) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=12 (wlan2) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=12 (wlan2) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan2 with hwaddr 06:f0:21:25:1c:11 and ssid "Netz5"
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=56): 80 00 00 00 ff ff ff ff ff ff 06 f0 21 25 1c 11 06 f0 21 25 1c 11 00 00 00 00 00 00 00 00 00 00 64 00 01 00 00 05 4e 65 74 7a 35 01 08 8c 12 98 24 b0 48 60 6c 03 01 28
nl80211: Beacon tail - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: ifindex=12
nl80211: beacon_int=100
nl80211: dtim_period=2
nl80211: ssid - hexdump_ascii(len=5):
4e 65 74 7a 35 Netz5
* beacon_int=100
nl80211: hidden SSID not in use
nl80211: privacy=0
nl80211: auth_algs=0x3
nl80211: wpa_version=0x0
nl80211: key_mgmt_suites=0x4
nl80211: pairwise_ciphers=0x1
nl80211: group_cipher=0x1
nl80211: beacon_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: proberesp_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: assocresp_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: Set wlan2 operstate 1->1 (UP)
netlink: Operstate: ifindex=4 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
wlp6s0: interface state COUNTRY_UPDATE->ENABLED
wlp6s0: AP-ENABLED
wlp6s0: Setup of interface done.
ctrl_iface not configured!
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: ifi_index=4 ifname=wlp6s0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface wlp6s0 is up
RTM_NEWLINK: ifi_index=4 ifname=wlp6s0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK: ifi_index=4 ifname=wlp6s0 operstate=6 linkmode=0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
nl80211: Ignore RTM_DELLINK event for foreign ifindex 11
RTM_NEWLINK: ifi_index=12 ifname=wlan2 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface wlan2 is up
RTM_NEWLINK: ifi_index=12 ifname=wlan2 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface wlan2 is up
RTM_NEWLINK: ifi_index=12 ifname=wlan2 operstate=0 linkmode=0 ifi_family=0 ifi_flags=0x1043 ([UP][RUNNING])
wlp6s0: Event INTERFACE_STATUS (5) received
Unknown event 5
VLAN: RTM_NEWLINK: ifi_index=4 ifname=wlp6s0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
VLAN: vlan_newlink(wlp6s0)
VLAN: RTM_DELLINK: ifi_index=11 ifname=wlan2 ifi_family=0 ifi_flags=0x1002 ()
VLAN: vlan_dellink(wlan2)
VLAN: RTM_NEWLINK: ifi_index=12 ifname=wlan2 ifi_family=0 ifi_flags=0x1002 ()
VLAN: vlan_newlink(wlan2)
VLAN: RTM_NEWLINK: ifi_index=12 ifname=wlan2 ifi_family=0 ifi_flags=0x1002 ()
VLAN: vlan_newlink(wlan2)
VLAN: RTM_NEWLINK: ifi_index=12 ifname=wlan2 ifi_family=0 ifi_flags=0x1043 ([UP][RUNNING])
VLAN: vlan_newlink(wlan2)
RTM_NEWLINK: ifi_index=12 ifname=wlan2 operstate=6 linkmode=0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
wlp6s0: Event INTERFACE_STATUS (5) received
Unknown event 5
VLAN: RTM_NEWLINK: ifi_index=12 ifname=wlan2 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
VLAN: vlan_newlink(wlan2)
VLAN: RTM_NEWLINK: ifi_index=12 ifname=wlan2 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
VLAN: vlan_newlink(wlan2)
hostpad stürzt nicht ab, macht aber nur 2 Netze im 5GHz-Bereich. Vielen Dank für die Geduld
|
phlomos
Anmeldungsdatum: 13. Oktober 2017
Beiträge: 8
|
Sorry, habe elektronenblitz63 schrieb:
übergib dann in der hostapd.conf … und MAC-Adresse für jedes Interface.
vergessen. Neue hostapd.conf:
# cat hostapd.conf.2
#
# 2,4GHz
#
interface=wlp6s0
bssid=06:f0:21:25:1c:10
driver=nl80211
hw_mode=g
country_code=CH
channel=6
ssid=Netz24
#
# 5GHz
#
bss=wlan2
bssid=04:f0:21:25:1c:11
driver=nl80211
hw_mode=a
country_code=CH
channel=36
ssid=Netz5
Aber es ändert leider nichts: Immer nur zwei Netze im 5GHz-Bereich.
Beide Netzwerkschnittstellen sind übrigens aktiv:
# ip address show
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc prio state UP group default qlen 1000
link/ether 1c:1b:0d:95:fc:35 brd ff:ff:ff:ff:ff:ff
inet 1.2.3.4/21 brd 129.194.103.255 scope global enp4s0
valid_lft forever preferred_lft forever
3: enp5s6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master br-lan state DOWN group default qlen 1000
link/ether 00:d0:b7:af:d2:0e brd ff:ff:ff:ff:ff:ff
4: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 06:f0:21:25:1c:10 brd ff:ff:ff:ff:ff:ff
5: br-lan: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 00:d0:b7:af:d2:0e brd ff:ff:ff:ff:ff:ff
inet 192.168.234.1/24 brd 192.168.234.255 scope global br-lan
valid_lft forever preferred_lft forever
16: wlan2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 04:f0:21:25:1c:11 brd ff:ff:ff:ff:ff:ff
|
elektronenblitz63
Anmeldungsdatum: 16. Januar 2007
Beiträge: 29307
Wohnort: NRW
|
Wie bereits gesagt ..,
Fuktioniert auch das nicht, dann
|
phlomos
Anmeldungsdatum: 13. Oktober 2017
Beiträge: 8
|
Hallo, elektronenblitz63 schrieb: Wie bereits gesagt ..,
Ja, hatte ich vergessen, sorry. Hab's aber sofort nachgeholt. Wahrscheinlich haben sich dieser mit Deinem Post überschnitten. Und funktioniert leider auch mit eingetragenen BSSIDs nicht. Fuktioniert auch das nicht, dann
Habe ich auch probiert: root@hotspot:/etc/hostapd# cat hostapdg.conf
interface=wlp6s0
driver=nl80211
hw_mode=g
country_code=CH
channel=6
ssid=Netz24
root@hotspot:/etc/hostapd# hostapd -d hostapdg.conf
random: Trying to read entropy from /dev/random
Configuration file: hostapdg.conf
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Using driver-based off-channel TX
nl80211: interface wlp6s0 in phy phy0
nl80211: Set mode ifindex 4 iftype 3 (AP)
nl80211: Setup AP(wlp6s0) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x562b42cc80c0
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x562b42cc80c0 match=
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x562b42cc80c0 match=
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x562b42cc80c0 match=
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x562b42cc80c0 match=
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x562b42cc80c0 match=
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x562b42cc80c0 match=
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x562b42cc80c0 match=
nl80211: Add own interface ifindex 4
nl80211: if_indices[16]: 4
phy: phy0
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
wlp6s0: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code CH, new country code CH
nl80211: Regulatory information - country=CH (DFS-ETSI)
nl80211: 2402-2482 @ 40 MHz 20 mBm
nl80211: 5170-5250 @ 80 MHz 20 mBm
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS)
nl80211: 5490-5710 @ 160 MHz 27 mBm (DFS)
nl80211: 57000-66000 @ 2160 MHz 40 mBm
nl80211: Added 802.11b mode based on 802.11g information
Completing interface initialization
Mode: IEEE 802.11g Channel: 6 Frequency: 2437 MHz
DFS 0 channels required radar detection
nl80211: Set freq 2437 (ht_enabled=0, vht_enabled=0, bandwidth=20 MHz, cf1=2437 MHz, cf2=0 MHz)
* freq=2437
* vht_enabled=0
* ht_enabled=0
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
hostapd_setup_bss(hapd=0x562b42cc8900 (wlp6s0), first=1)
wlp6s0: Flushing old station entries
nl80211: flush -> DEL_STATION wlp6s0 (all)
wlp6s0: Deauthenticate all stations
nl80211: send_mlme - da= ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=2437
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-16 (Device or resource busy) (freq=2437 wait=0)
wpa_driver_nl80211_set_key: ifindex=4 (wlp6s0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlp6s0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlp6s0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlp6s0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlp6s0 with hwaddr 06:f0:21:25:1c:10 and ssid "Netz24"
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=57): 80 00 00 00 ff ff ff ff ff ff 06 f0 21 25 1c 10 06 f0 21 25 1c 10 00 00 00 00 00 00 00 00 00 00 64 00 01 04 00 06 4e 65 74 7a 32 34 01 08 82 84 8b 96 0c 12 18 24 03 01 06
nl80211: Beacon tail - hexdump(len=19): 2a 01 04 32 04 30 48 60 6c 7f 08 04 00 00 02 00 00 00 40
nl80211: ifindex=4
nl80211: beacon_int=100
nl80211: dtim_period=2
nl80211: ssid - hexdump_ascii(len=6):
4e 65 74 7a 32 34 Netz24
* beacon_int=100
nl80211: hidden SSID not in use
nl80211: privacy=0
nl80211: auth_algs=0x3
nl80211: wpa_version=0x0
nl80211: key_mgmt_suites=0x4
nl80211: pairwise_ciphers=0x1
nl80211: group_cipher=0x1
nl80211: beacon_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: proberesp_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: assocresp_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: Set wlp6s0 operstate 0->1 (UP)
netlink: Operstate: ifindex=4 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
wlp6s0: interface state COUNTRY_UPDATE->ENABLED
wlp6s0: AP-ENABLED
wlp6s0: Setup of interface done.
ctrl_iface not configured!
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: ifi_index=4 ifname=wlp6s0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface wlp6s0 is up
RTM_NEWLINK: ifi_index=4 ifname=wlp6s0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface wlp6s0 is up
RTM_NEWLINK: ifi_index=4 ifname=wlp6s0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK: ifi_index=4 ifname=wlp6s0 operstate=6 linkmode=0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
VLAN: RTM_NEWLINK: ifi_index=4 ifname=wlp6s0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
VLAN: vlan_newlink(wlp6s0) root@hotspot:/etc/hostapd# cat /etc/hostapd/hostapda.conf
interface=wlan2
bssid=04:f0:21:25:1c:11
driver=nl80211
hw_mode=a
country_code=CH
channel=36
ssid=Netz5
root@hotspot:/etc/hostapd# iw phy phy0 interface add wlan2 type managed
root@hotspot:/etc/hostapd# hostapd -d /etc/hostapd/hostapda.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapda.conf
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Using driver-based off-channel TX
nl80211: interface wlan2 in phy phy0
nl80211: Set mode ifindex 17 iftype 3 (AP)
nl80211: Setup AP(wlan2) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x5652c78900e0
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x5652c78900e0 match=
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x5652c78900e0 match=
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x5652c78900e0 match=
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x5652c78900e0 match=
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x5652c78900e0 match=
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5652c78900e0 match=
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x5652c78900e0 match=
nl80211: Add own interface ifindex 17
nl80211: if_indices[16]: 17
phy: phy0
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
wlan2: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code CH, new country code CH
nl80211: Regulatory information - country=CH (DFS-ETSI)
nl80211: 2402-2482 @ 40 MHz 20 mBm
nl80211: 5170-5250 @ 80 MHz 20 mBm
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS)
nl80211: 5490-5710 @ 160 MHz 27 mBm (DFS)
nl80211: 57000-66000 @ 2160 MHz 40 mBm
nl80211: Added 802.11b mode based on 802.11g information
Completing interface initialization
Mode: IEEE 802.11a Channel: 36 Frequency: 5180 MHz
DFS 0 channels required radar detection
nl80211: Set freq 5180 (ht_enabled=0, vht_enabled=0, bandwidth=20 MHz, cf1=5180 MHz, cf2=0 MHz)
* freq=5180
* vht_enabled=0
* ht_enabled=0
RATE[0] rate=60 flags=0x1
RATE[1] rate=90 flags=0x0
RATE[2] rate=120 flags=0x1
RATE[3] rate=180 flags=0x0
RATE[4] rate=240 flags=0x1
RATE[5] rate=360 flags=0x0
RATE[6] rate=480 flags=0x0
RATE[7] rate=540 flags=0x0
hostapd_setup_bss(hapd=0x5652c7890900 (wlan2), first=1)
wlan2: Flushing old station entries
nl80211: flush -> DEL_STATION wlan2 (all)
wlan2: Deauthenticate all stations
nl80211: send_mlme - da= ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=5180
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-16 (Device or resource busy) (freq=5180 wait=0)
wpa_driver_nl80211_set_key: ifindex=17 (wlan2) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=17 (wlan2) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=17 (wlan2) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=17 (wlan2) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan2 with hwaddr 04:f0:21:25:1c:11 and ssid "Netz5"
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=56): 80 00 00 00 ff ff ff ff ff ff 04 f0 21 25 1c 11 04 f0 21 25 1c 11 00 00 00 00 00 00 00 00 00 00 64 00 01 00 00 05 4e 65 74 7a 35 01 08 8c 12 98 24 b0 48 60 6c 03 01 24
nl80211: Beacon tail - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: ifindex=17
nl80211: beacon_int=100
nl80211: dtim_period=2
nl80211: ssid - hexdump_ascii(len=5):
4e 65 74 7a 35 Netz5
* beacon_int=100
nl80211: hidden SSID not in use
nl80211: privacy=0
nl80211: auth_algs=0x3
nl80211: wpa_version=0x0
nl80211: key_mgmt_suites=0x4
nl80211: pairwise_ciphers=0x1
nl80211: group_cipher=0x1
nl80211: beacon_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: proberesp_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: assocresp_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
nl80211: Beacon set failed: -16 (Device or resource busy)
Failed to set beacon parameters
wlan2: Flushing old station entries
nl80211: flush -> DEL_STATION wlan2 (all)
wlan2: Deauthenticate all stations
nl80211: send_mlme - da= ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=5180
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-16 (Device or resource busy) (freq=5180 wait=0)
wpa_driver_nl80211_set_key: ifindex=17 (wlan2) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=17 (wlan2) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=17 (wlan2) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=17 (wlan2) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
hostapd_free_hapd_data(wlan2)
Interface initialization failed
wlan2: interface state COUNTRY_UPDATE->DISABLED
wlan2: AP-DISABLED
wlan2: Unable to setup interface.
hostapd_interface_deinit_free(0x5652c788f710)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x5652c788f710)
wlan2: interface state DISABLED->DISABLED
hostapd_bss_deinit: deinit bss wlan2
wlan2: Deauthenticate all stations
nl80211: send_mlme - da= ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=5180
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-16 (Device or resource busy) (freq=5180 wait=0)
wlan2: AP-DISABLED
hostapd_cleanup(hapd=0x5652c7890900 (wlan2))
hostapd_free_hapd_data: Interface wlan2 wasn't started
hostapd_interface_deinit_free: driver=0x5652c5e99d00 drv_priv=0x5652c78917d0 -> hapd_deinit
nl80211: deinit ifname=wlan2 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
nl80211: Remove beacon (ifindex=17)
netlink: Operstate: ifindex=17 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 17 iftype 2 (STATION)
nl80211: Teardown AP(wlan2) - device_ap_sme=0 use_monitor=0
nl80211: Unsubscribe mgmt frames handle 0x8888deda4f018869 (AP teardown)
hostapd_interface_free(0x5652c788f710)
hostapd_interface_free: free hapd 0x5652c7890900
hostapd_cleanup_iface(0x5652c788f710)
hostapd_cleanup_iface_partial(0x5652c788f710)
hostapd_cleanup_iface: free iface=0x5652c788f710
root@hotspot:/etc/hostapd#
Der zweite will dann nicht mehr hochstarten.
|
elektronenblitz63
Anmeldungsdatum: 16. Januar 2007
Beiträge: 29307
Wohnort: NRW
|
Ich werde das mal gegenprüfen, habe jetzt direkt nur keine Dualband-Karte die das kann verfügbar und unter der Woche zudem nur wenig Zeit für solche Dinge. Dauert also etwas, vermutlich klappt das am nächsten WE, wenn dir das genügt.
|
phlomos
Anmeldungsdatum: 13. Oktober 2017
Beiträge: 8
|
|