Инструменты пользователя

Инструменты сайта


wiki:technical:soft:nmcli_up_hostapd

nmcli up hostapd

# Добавляем IP на интерфейс 
nmcli connection add con-name "static-wlan0" ifname wlan0 type wifi ip4 192.168.2.20/24
nmcli connection modify "static-wlan0" ipv4.gateway 192.168.2.1
nmcli connection modify "static-wlan0" ipv4.dns "1.1.1.1, 8.8.8.8"
nmcli connection up "static-wlan0" iface wlan0
 
# Поднимаем точку доступа
nmcli connection add type wifi ifname wlan0 con-name z46 autoconnect yes ssid z46
nmcli connection modify z46 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli connection modify z46 wifi-sec.key-mgmt wpa-psk
nmcli connection modify z46 wifi-sec.psk "256256Did"
nmcli connection up z46
wiki/technical/soft/nmcli_up_hostapd.txt · Последнее изменение: 2022/12/13 00:16 — Diman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki