Softcloud Wiki
Linux, Raspberry Pi, YunoHost, RaspAP
Recherche
Accueil
Linux
Raspberry Pi
YunoHost
RaspAP
Explorateur
Rechercher
Connexion
Accueil
Explorateur
Ajouter un article
Accueil
Softcloud Wiki
Contribuer
Edition de l'article
AP-STA mode
Les champs marqués * sont obligatoires !
Paramètres
* Contenu
Fermer
Insérer un lien vers un article
Titre de l'article
1
2
3
4
5
Pour insérer un lien vers un article veuillez utiliser la balise link : [link=$a]$b[/link] où $a représente le titre de l'article (sans caractères spéciaux, tel qu'il apparaît dans l'adresse) et $b représente le nom du lien
Couleur du texte
Couleur du fond
Taille du texte
Choisir la taille du texte (px)
Aperçu du texte
Police d'écriture
Andale Mono
Arial
Arial Black
Book Antiqua
Comic Sans MS
Courier New
Georgia
Helvetica
Impact
Symbol
Tahoma
Terminal
Times New Roman
Trebuchet MS
Verdana
Webdings
Wingdings
Alignement
Aligner à gauche
Insérer
Centrer
Insérer
Aligner à droite
Insérer
Justifier
Insérer
Positionnement
Flottant à gauche
Insérer
Flottant à droite
Insérer
Indentation
Insérer
Exposant
Insérer
Indice
Insérer
Titrage
Titre 1
Insérer
Titre 2
Insérer
Titre 3
Insérer
Titre 4
Insérer
Titre 5
Insérer
Liste
Nombre de lignes
Liste ordonnée
Sélectionner
Tableau
Nombre de lignes
Nombre de colonnes
Entête
Sélectionner
Conteneur
Paragraphe
Insérer
Bloc
Insérer
Conteneur personnalisable
Choisir
Bloc champs
Choisir
Abréviation
Choisir
Conteneur personnalisable
Ces critères nécessitent la connaissance des langages HTML/CSS et les propriétés du thème utilisé.
Identifiant
Classes
Style
Bloc champs
Titre du bloc champs
Style
Abréviation
Abréviation
Nom complet
Citation
Auteur de la citation
Citation
Contenu Caché
Cacher le contenu et l'afficher au clic
Insérer
Cacher le contenu aux visiteurs
Insérer
Cacher la fin du contenu aux visiteurs
Insérer
Cacher le contenu aux membres
Insérer
Style
Remarque
Insérer
Question
Insérer
Succès
Insérer
Avertissement
Insérer
Erreur
Insérer
Lien
Adresse du lien
Texte du lien
Adresse email
Adresse email
Texte de la balise
Lien wikipedia
Mot
Définir une langue dans le lien
Sinon
fr
est ajouté automatiquement
Sélectionner
Langue
Allemand
Anglais
Arabe
Arménien
Azéri
Basque
Bélarusse
Bulgare
Catalan
Cebuano
Chinois
Croate
Danois
Espagnol
Espéranto
Estonien
Finlandais
Français
Galicien
Géorgien
Grec
Hebreu
Hindi
Hollandais
Hongrois
Indonésien
Italien
Japonais
Kazakh
Koréen
Lituanien
Malais
Norvegien (nn)
Norvegien (no)
Ourdou
Persan
Polonais
Portugais
Roumain
Russe
Serbo-Croate
Slovaque
Slovène
Serbe
Suédois
Tchétchène
Tchèque
Thai
Turc
Ukrainien
Vietnamien
Winaray
Flux RSS
Nom du module
Choisir un module
Wiki
Catégorie
Nombre d'éléments à afficher
Ancre vers un endroit de la page
Nom de l'ancre
Ajouter le lien vers l'ancre
Sélectionner
Son
Adresse du fichier audio
Vidéo
Adresse de la vidéo
Hébergeur
Fichier distant
Youtube
Dailymotion
Vimeo
Largeur de la vidéo
Hauteur de la vidéo
Ajouter une vignette
Ajouter une image avec un effet lightbox
Adresse de l'image
Largeur max de la vignette (px)
Ajouter une image avec description
Adresse de l'image
Texte alternatif
Description de l'image
Largeur max de l'image (px)
Smileys
Emojis HTML
D'autres emojis sur
unicode-table.com
ou
w3c.com
Smileys
😀
😉
😁
😆
😅
😂
🤣
😊
🙂
😄
🙃
😇
😃
😚
🥰
😙
😍
😗
🥲
😘
🤩
😋
😛
😜
🤪
😝
🤑
🤔
🤭
🤗
🤫
😐
😶
🤨
😬
😏
😑
😒
🙄
🤐
🤥
😌
😔
😪
😴
🤤
🥶
🤧
😷
🤯
🥴
😵
🤒
🥵
🤮
🤕
🤢
🥸
🤠
🥳
🤓
😎
🧐
😕
😖
😧
🥺
😫
😱
😞
😯
😮
😭
😟
😓
😩
😢
😲
😨
🥱
😳
🙁
😥
😣
😦
😰
☠
😤
😈
😡
💀
👿
🤬
😠
💩
🤡
🤖
👽
👾
👻
👺
👹
🙉
🙊
🙋
🗨
💭
💬
💢
💥
💣
💯
💨
💦
💫
💤
👀
💪
🧡
🤎
🤍
🖤
💚
💙
💜
💛
💋
💔
💘
💖
💝
✋
👋
🖖
🖐
🤙
🤞
🤟
🤘
👌
🤌
🤏
👆
👇
👈
👉
🤛
🤜
👍
✊
👊
👎
👐
🤝
👏
🤲
🙏
🙌
Icônes Font Awesome
[fa=fa-style,fa-option]nom de l'icône (sans le "fa-")[/fa]
Code
Chemin vers un fichier
Langage
Text
Sql
Xml
BBCode
Template
HTML
CSS
Javascript
PHP
Asp
Python
Pearl
Ruby
Bash
C
C++
C#
D
Go
Java
Pascal++
Delphi
Fortran
Vb
Asm
Afficher sur une seule ligne
Sélectionner
-- Overview Experimental (Unsupported) -- This walkthrough describes an installation of RaspAP on the [url=https://www.raspberrypi.com/products/raspberry-pi-zero-w/]Raspberry Pi Zero W[/url] or [url=https://www.raspberrypi.com/products/raspberry-pi-zero-2-w/]Zero 2 W[/url] models. However, the same steps apply to any device with a chipset capable of supporting this mode. A managed mode AP, variously known as [b]WiFi client AP mode[/b], a [b]micro-AP[/b] or simply [b]AP-STA[/b], [i]usually[/i] works with the Quick Installer if the steps below are followed carefully. This feature was added to RaspAP specifically to support Internet of Things (IoT) and embedded applications for the Pi Zero W, however it is equally useful for a broad range of projects. Disclaimer This mode is [i]completely unsupported[/i] and should be used for educational purposes only. If you need a reliable solution with an access point (AP) and wireless client (STA) on the same device, buy a second Wi-Fi adapter and follow [url=https://docs.raspap.com/faq/#interfaces]this FAQ[/url] instead. [url=https://github.com/RaspAP/raspap-webgui/assets/229399/d9adadde-9e96-4281-9978-4150f03026f2][Image][/url] Before proceeding with the installation, it's important to have a basic understanding of how AP-STA works. -- What is AP-STA mode? -- Many wireless devices support [i]simultaneous[/i] operation as both an access point (AP) and as a wireless client/station (STA). This is sometimes called Wi-Fi AP/STA concurrency. In this configuration, it is possible to create a software AP acting as a [url=https://docs.raspap.com/repeater/]wireless repeater[/url] for an existing network, using a single wireless device. This capability is listed in the following section in the output of [code=text,0,1]iw list[/code]: [code=text]$ iw list | grep -A 4 'valid interface' valid interface combinations: * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1, total <= 3, #channels <= 2 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1, total <= 4, #channels <= 1[/code] The second valid interface combination indicates that both a [code=text,0,1]managed[/code] and [code=text,0,1]AP[/code] configuration is possible. The constraint [code=text,0,1]#channels <= 1[/code] means that your software AP must operate on the same channel as your Wi-Fi client connection. Note If you have a second wireless adapter bound to [code=text,0,1]wlan1[/code] on a Pi Zero W (or other device), refer to [url=https://docs.raspap.com/faq/#interfaces]this FAQ[/url]. -- Use cases -- There are many scenarios in which AP-STA mode might be useful. These are some of the more popular ones: [list=ordered][*]A device that connects to a wireless AP but needs an admin interface to configure the network and/or other services.[*]A hub for Internet of Things devices, while also creating a bridge between them and the internet.[*]A guest interface to your home wireless network.[/list] Security is an important consideration with IoT and it can be beneficial to keep your devices on a separate network, for safety’s sake. No one wants a random internet user turning your lights on and off. -- How does AP-STA work? -- In this configuration, we create a virtual network interface (here [code=text,0,1]uap0[/code]) and add it as the AP to the physical [code=text,0,1]wlan0[/code] device. This virtual interface is used by several of the services needed to operate a software access point. RaspAP manages these configurations in the background for you. Relevant sections are displayed below as examples. [code=text,0,1]dhcpcd.conf[/code]: [code=text]# RaspAP uap0 configuration interface uap0 static ip_address=192.168.50.1/24 nohook wpa_supplicant[/code] [code=text,0,1]hostapd.conf[/code]: [code=text]# RaspAP wireless client AP mode interface=uap0[/code] [code=text,0,1]dnsmasq.conf[/code]: [code=text]# RaspAP uap0 configuration interface=lo,uap0 # Use interfaces lo and uap0 bind-interfaces # Bind to the interfaces domain-needed # Don't forward short names bogus-priv # Never forward addresses in the non-routed address spaces[/code] On AP-STA startup and system reboots, RaspAP's service control script adds the virtual [code=text,0,1]uap0[/code] interface and brings it up, like so: [code=text]iw dev wlan0 interface add uap0 type __ap ifconfig uap0 up[/code] After the virtual [code=text,0,1]uap0[/code] interface is added to the [code=text,0,1]wlan0[/code] physical device, we can then start up [code=text,0,1]hostapd[/code]. It is important that the virtual interface is brought up first, otherwise it will fail with the message "could not configure driver mode". We also need to be sure that the interface is not managed by [code=text,0,1]systemd-networkd[/code], so this service should be disabled. These steps are handled by the [url=https://docs.raspap.com/faq/#raspap-service]RaspAP daemon[/url]. With a basic understanding of AP-STA mode, we can proceed with the installation. -- Installation -- [list=ordered][*]Begin by flashing an SD card with the latest release of [url=https://www.raspberrypi.com/software/operating-systems/]Raspberry Pi OS (32- or 64-bit) Lite[/url].[*]Prepare the SD card to connect to your WiFi network in headless mode [url=https://docs.raspap.com/faq/#headless]according to this FAQ[/url].[*]Enable [code=text,0,1]ssh[/code] access by creating an empty file called "ssh" (no extension) in the SD card's root.[*]Insert the SD card into the Pi Zero W and connect it to power. [b]Note:[/b] the standard power supply for the Raspberry Pi is 5.1V @ 2.5A. Other power sources may result in undervoltage or other issues. Do [i]not[/i] use the micro USB connection.[*]Connect to your Pi via ssh. [code=text,0,1]ssh pi@raspberrypi.local[/code] is typical.[*]Follow the [url=https://docs.raspap.com/#quick-start]project prerequisites[/url] exactly. Do [i]not[/i] skip any of these steps.[*]Invoke the [url=https://docs.raspap.com/quick/]Quick Installer[/url] as normal: [code=text,0,1]curl -sL https://install.raspap.com | bash[/code].[*]The installer automatically detects a Pi (or other device) without an active [code=text,0,1]eth0[/code] interface. In this case, you will [i]not[/i] be prompted to reboot your Pi.[*]Open the RaspAP admin interface in your browser, usually [code=text,0,1]http://raspberrypi.local[/code].[*]The status widget should indicate that hostapd is inactive. This is expected.[*]Confirm that the [b]Wireless Client[/b] dashboard widget displays an active connection.[*]Choose [b]Hotspot > Advanced[/b] and enable the [b]WiFi client AP mode[/b] option.[*]Optionally, enable [b]Logfile output[/b] as this is often helpful for troubleshooting.[*]Choose [b]Save settings[/b] and [b]Start hotspot[/b].[*]Wait a few moments and confirm that your AP has started.[/list] [img]https://user-images.githubusercontent.com/229399/224536460-b4c3550f-7cbb-4b47-8230-fc7be74fd69c.png[/img] Note The [b]WiFi client AP mode[/b] option will be disabled, or "greyed out", until a wireless client is configured. -- When to reboot? -- Rebooting [i]before[/i] configuring AP-STA mode is likely the main cause of problems for users with the Pi Zero W. The reason is the [url=https://docs.raspap.com/defaults/]default configuration[/url] is designed for a wired (ethernet) AP. Once the Pi Zero W is configured in AP-STA mode, RaspAP will store several values in [code=text,0,1]/etc/raspap/hostapd.ini[/code]: [code=text]LogEnable = 1 WifiAPEnable = 1 BridgedEnable = 0 WifiManaged = wlan0[/code] These are used by RaspAP's [url=https://docs.raspap.com/faq/#raspap-service]systemd control service[/url] [code=text,0,1]raspapd[/code] to determine that a managed mode AP is enabled for the Pi and restore the connection after subsequent reboots. -- Changing hostapd settings -- Changes to the hotspot configuration should be applied to the [code=text,0,1]wlan0[/code] physical device, not [code=text,0,1]uap0[/code] (a virtual interface). In other words, if you wish to change [code=text,0,1]hostapd[/code] settings, stop the hotspot, disable AP-STA, make your config changes on [code=text,0,1]wlan0[/code], re-enable AP-STA and finally restart hostapd. An explanation is available [url=https://github.com/RaspAP/raspap-webgui/issues/752#issuecomment-757448664]here[/url].
Prévisualisation
Prévisualisation
Nature de la modification (facultatif, 100 caractères max)
* Code de vérification
Combien font 4 + cinq ?
Valider
Valider
Défaut