Hello,
Setting up a WiFi AP using NetworkManager on Debian 11. I am beginning with NetworkManager as I want to get rid off a complex system just for setting the network on Linux machines.
Here the code I used to create the APAfter that the connection appears OK and the SSID is correctly broacasted but when I try to connect it fails. Trying from an Android phone and from another Linux machine.
Here the logs I have from the connecting Linux machine => looks that no IP address is returned (DHCP server not reacting or no DHCP server at all)
On the AP machine nothing meaningful appears in the logs even with the DEBUG level. Tried dhcpdump, but it is not yet installed.
I have looked any article explaining the use of DHCP server (dhcpd) with NetworkManager without anything useful found.
Setting up a WiFi AP using NetworkManager on Debian 11. I am beginning with NetworkManager as I want to get rid off a complex system just for setting the network on Linux machines.
Here the code I used to create the AP
Code:
sudo nmcli c add type wifi ifname wlan0 mode ap con-name test-ap-1 ssid stnc-ap autoconnect falsesudo nmcli c modify test-ap-1 802-11-wireless.band bgsudo nmcli c modify test-ap-1 ipv4.method shared ipv4.address 172.16.1.1/24sudo nmcli c modify test-ap-1 wifi-sec.key-mgmt wpa-psksudo nmcli c modify test-ap-1 wifi-sec.psk "testKEYS"sudo nmcli c up test-ap-1
Here the logs I have from the connecting Linux machine => looks that no IP address is returned (DHCP server not reacting or no DHCP server at all)
Code:
anv. 02 18:22:35 Arz NetworkManager[27905]: <info> [1735838555.2207] device (p2p-dev-wlp0s20f3): supplicant management interface state: authenticating -> associatingjanv. 02 18:22:35 Arz NetworkManager[27905]: <info> [1735838555.2399] device (wlp0s20f3): supplicant interface state: associating -> 4way_handshakejanv. 02 18:22:35 Arz NetworkManager[27905]: <info> [1735838555.2399] device (p2p-dev-wlp0s20f3): supplicant management interface state: associating -> 4way_handshakejanv. 02 18:22:35 Arz NetworkManager[27905]: <info> [1735838555.2558] device (wlp0s20f3): supplicant interface state: 4way_handshake -> group_handshakejanv. 02 18:22:35 Arz NetworkManager[27905]: <info> [1735838555.2558] device (p2p-dev-wlp0s20f3): supplicant management interface state: 4way_handshake -> group_handshakejanv. 02 18:22:35 Arz NetworkManager[27905]: <info> [1735838555.2717] device (wlp0s20f3): supplicant interface state: group_handshake -> completedjanv. 02 18:22:35 Arz NetworkManager[27905]: <info> [1735838555.2717] device (wlp0s20f3): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "stnc-ap"janv. 02 18:22:35 Arz NetworkManager[27905]: <info> [1735838555.2718] device (p2p-dev-wlp0s20f3): supplicant management interface state: group_handshake -> completedjanv. 02 18:22:35 Arz NetworkManager[27905]: <info> [1735838555.2719] device (wlp0s20f3): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')janv. 02 18:22:35 Arz NetworkManager[27905]: <info> [1735838555.2725] dhcp4 (wlp0s20f3): activation: beginning transaction (timeout in 45 seconds)janv. 02 18:23:20 Arz NetworkManager[27905]: <info> [1735838600.2217] device (wlp0s20f3): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')janv. 02 18:23:20 Arz NetworkManager[27905]: <warn> [1735838600.2238] device (wlp0s20f3): Activation: failed for connection 'stnc-ap'janv. 02 18:23:20 Arz NetworkManager[27905]: <info> [1735838600.2245] device (wlp0s20f3): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')janv. 02 18:23:20 Arz NetworkManager[27905]: <info> [1735838600.2327] dhcp4 (wlp0s20f3): canceled DHCP transactionjanv. 02 18:23:20 Arz NetworkManager[27905]: <info> [1735838600.2328] dhcp4 (wlp0s20f3): activation: beginning transaction (timeout in 45 seconds)janv. 02 18:23:20 Arz NetworkManager[27905]: <info> [1735838600.2329] dhcp4 (wlp0s20f3): state changed no leasejanv. 02 18:23:20 Arz NetworkManager[27905]: <info> [1735838600.3008] device (wlp0s20f3): supplicant interface state: completed -> disconnectedjanv. 02 18:23:20 Arz NetworkManager[27905]: <info> [1735838600.3008] device (p2p-dev-wlp0s20f3): supplicant management interface state: completed -> disconnected
I have looked any article explaining the use of DHCP server (dhcpd) with NetworkManager without anything useful found.
Statistics: Posted by sterwen — 2025-01-02 17:42 — Replies 0 — Views 16