wifi access point with NetworkManager
NetworkMangerでaccess pointを作れる
NetworkManagerを使うなら/etc/NetworkManager/以下にファイルがある.
nmcliを使うと /etc/NetworkManager/system-connections 以下に保存される.
code: sh
sudo nmcli con add type wifi ifname wlan0 mode ap con-name WIFI_AP ssid wawawa-wpa
sudo nmcli con modify WIFI_AP 802-11-wireless-security.key-mgmt wpa-psk
sudo nmcli con modify WIFI_AP 802-11-wireless-security.proto rsn
sudo nmcli con modify WIFI_AP 802-11-wireless-security.group ccmp
sudo nmcli con modify WIFI_AP 802-11-wireless-security.pairwise ccmp
sudo nmcli con modify WIFI_AP 802-11-wireless-security.psk 'password'
sudo nmcli con modify WIFI_AP ipv4.method shared
# 2.4Ghz
# sudo nmcli con modify WIFI_AP 802-11-wireless.band bg
# sudo nmcli con modify WIFI_AP 802-11-wireless.channel 1
# 5Ghzを使うなら以下
# sudo nmcli con modify WIFI_AP 802-11-wireless.band a
# sudo nmcli con modify WIFI_AP 802-11-wireless.channel 36
sudo nmcli con modify WIFI_AP ipv4.addr 192.168.2.1/24
sudo systemctl restart NetworkManager