This message will disappear after all relevant tasks have been resolved.
Semantic MediaWiki
There are 1 incomplete or pending task to finish installation of Semantic MediaWiki. An administrator or user with sufficient rights can complete it. This should be done before adding new data to avoid inconsistencies.![]() |
This page is a candidate for renaming (move). The requested new name is: How to configure a WLAN interface in hotspot mode. The supplied reason is: WLAN in caps. -- Registered User (-) 11:43, 3 June 2022 (CEST). Wiki maintainers: remember to update the pages that link this page before renaming (moving) it. |
WiFi hotspots are internet access points that allow you to connect to a WiFi network using your computer, smartphone or another device while away from your home or office network.
- Configure the WLAN interface for systemd/netword : see How_to_setup_wifi_connection#How_to_set_a_wireless_configuration_with_networkd
- Add the following rule on /lib/systemd/network/
cat /lib/systemd/network/hostapd.network [Match] Name=wlan0 [Network] Address=192.168.72.1/24 DHCPServer=yes IPForward=ipv4 IPMasquerade=yes
192.168.72.1/24: ip address affected to the hotspot device.
This configuration supports dhcpserver, ip forward and ip masquerade for this WLAN interface: wlan0.
- Create the hotspot configuration by replacing /etc/hostapd.conf content by the following lines
cat /etc/hostapd.conf interface=wlan0 driver=nl80211 # mode Wi-Fi (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g) hw_mode=g ssid=STExampleNetwork channel=7 wmm_enabled=0 macaddr_acl=0 # Wi-Fi closed, need an authentication auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_passphrase=ExamplePassPhraseNetwork wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP
STExampleNetwork is the visible name of the new wlan hotspot (SSID).
ExamplePassPhraseNetwork is the passphare associated to the wlan hotspot (SSID).
- Correct one issue with systemd-networkd.service which does not enable the wifi link by default
Add the highlighted line in /lib/systemd/system/hostapd.service file
cat /lib/systemd/system/hostapd.service [Service] ExecStartPre=/sbin/ip link set wlan0 up ExecStart=/usr/sbin/hostapd /etc/hostapd.conf -P /run/hostapd.pid -B
- Enable systemd service
systemctl enable hostapd