我正在使用 Debian 系统:
# uname -a
Linux iot-gate-imx8 5.4.24-iot-gate-imx8-2.0 #1 SMP PREEMPT Thu Sep 3 10:30:00 IDT 2020 aarch64 GNU/Linux
我有一个MODEM
连接(处于活动状态且正在工作):
# nmcli con
NAME UUID TYPE DEVICE
MODEM 425b609c-c893-4178-b3c3-88a8f2124b33 gsm ttyUSB2
Wired connection 1 679f5ed8-61f1-3cc4-bb4f-376b4e841276 ethernet --
Wired connection 2 417df684-700b-337c-8737-9e9ee07af12c ethernet --
我想使用nmcli
. 我安装dnsmasq
:
# sudo apt install dnsmasq
然后我建立了我的连接:
# nmcli con add type wifi ifname wlan0 mode ap con-name test ssid test ipv4.method shared
该命令似乎是成功的:
# nmcli con
NAME UUID TYPE DEVICE
MODEM 425b609c-c893-4178-b3c3-88a8f2124b33 gsm ttyUSB2
test f4936a89-11cd-4057-b481-1f62b776194b wifi wlan0
Wired connection 1 679f5ed8-61f1-3cc4-bb4f-376b4e841276 ethernet --
Wired connection 2 417df684-700b-337c-8737-9e9ee07af12c ethernet --
当我尝试连接到网络test
时,我遇到了一些问题:
- 一台 Windows 10 机器设法连接,但它告诉没有互联网(而且我看不到分配给机器的任何有效 IP 地址);
- Android机器无法连接
test
,看来是IP分配有问题。
=-=-= 已添加 =-=-=
命令
journalctl -u NetworkManager | tail -30
返回:
Jan 11 12:08:51 <HOST> dnsmasq-dhcp[18301]: DHCPDISCOVER(wlan0) <MAC_ADDR_1>
Jan 11 12:08:51 <HOST> dnsmasq-dhcp[18301]: DHCPOFFER(wlan0) 192.168.0.43 <MAC_ADDR_1>
Jan 11 12:08:51 <HOST> dnsmasq-dhcp[18301]: DHCPDISCOVER(wlan0) <MAC_ADDR_1>
Jan 11 12:08:51 <HOST> dnsmasq-dhcp[18301]: DHCPOFFER(wlan0) 192.168.0.43 <MAC_ADDR_1>
Jan 11 12:08:51 <HOST> dnsmasq-dhcp[18301]: DHCPREQUEST(wlan0) 192.168.0.43 <MAC_ADDR_1>
Jan 11 12:08:51 <HOST> dnsmasq-dhcp[18301]: DHCPACK(wlan0) 192.168.0.43 <MAC_ADDR_1> <DEVICE_1>
Jan 11 12:09:53 <HOST> dnsmasq-dhcp[18301]: DHCPDISCOVER(wlan0) <MAC_ADDR_2>
Jan 11 12:09:53 <HOST> dnsmasq-dhcp[18301]: DHCPOFFER(wlan0) 192.168.0.229 <MAC_ADDR_2>
Jan 11 12:09:53 <HOST> dnsmasq-dhcp[18301]: DHCPDISCOVER(wlan0) <MAC_ADDR_2>
Jan 11 12:09:53 <HOST> dnsmasq-dhcp[18301]: DHCPOFFER(wlan0) 192.168.0.229 <MAC_ADDR_2>
Jan 11 12:09:54 <HOST> dnsmasq-dhcp[18301]: DHCPREQUEST(wlan0) 192.168.0.229 <MAC_ADDR_2>
Jan 11 12:09:54 <HOST> dnsmasq-dhcp[18301]: DHCPACK(wlan0) 192.168.0.229 <MAC_ADDR_2> <DEVICE_2>
Jan 11 12:11:44 <HOST> dnsmasq-dhcp[18301]: DHCPDISCOVER(wlan0) <MAC_ADDR_3>
Jan 11 12:11:44 <HOST> dnsmasq-dhcp[18301]: DHCPOFFER(wlan0) 192.168.0.217 <MAC_ADDR_3>
Jan 11 12:11:44 <HOST> dnsmasq-dhcp[18301]: DHCPDISCOVER(wlan0) <MAC_ADDR_3>
Jan 11 12:11:44 <HOST> dnsmasq-dhcp[18301]: DHCPOFFER(wlan0) 192.168.0.217 <MAC_ADDR_3>
Jan 11 12:11:44 <HOST> dnsmasq-dhcp[18301]: DHCPDISCOVER(wlan0) <MAC_ADDR_3>
Jan 11 12:11:44 <HOST> dnsmasq-dhcp[18301]: DHCPOFFER(wlan0) 192.168.0.217 <MAC_ADDR_3>
Jan 11 12:11:45 <HOST> dnsmasq-dhcp[18301]: DHCPREQUEST(wlan0) 192.168.0.217 <MAC_ADDR_3>
Jan 11 12:11:45 <HOST> dnsmasq-dhcp[18301]: DHCPACK(wlan0) 192.168.0.217 <MAC_ADDR_3>
=-=-==-=-=-=-=-=-
有人可以提供一些见解吗?提前致谢。