我设置了配置创建_ap
$ cat /etc/create_ap.conf
CHANNEL=default
GATEWAY=192.168.1.1
WPA_VERSION=2
ETC_HOSTS=0
DHCP_DNS=gateway
NO_DNS=0
NO_DNSMASQ=0
HIDDEN=0
MAC_FILTER=0
MAC_FILTER_ACCEPT=/etc/hostapd/hostapd.accept
ISOLATE_CLIENTS=0
SHARE_METHOD=nat
IEEE80211N=0
IEEE80211AC=0
HT_CAPAB=[HT40+]
VHT_CAPAB=
DRIVER=nl80211
NO_VIRT=0
COUNTRY=
FREQ_BAND=2.4
NEW_MACADDR=
DAEMONIZE=0
NO_HAVEGED=0
WIFI_IFACE=p2p0
INTERNET_IFACE=eth0
SSID=MyHotspot
PASSPHRASE=852172777222
USE_PSK=0
但是当我启动 create_ap 的 systemctl 服务时,它不断失败并出现此错误
Network Manager found, set p2p0 as unmanaged device... DONE
/usr/bin/create_ap: line 1704: dnsmasq: command not found
ERROR: Wrong version format!
Doing cleanup.. done
答案1
dnsmasq
根据您系统中缺少的错误所指定。
只需安装它,它就可以工作。
$ sudo apt-get install dnsmasq