LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   nmcli access point configuration (https://www.linuxquestions.org/questions/linux-networking-3/nmcli-access-point-configuration-4175731338/)

clsgis 11-28-2023 03:44 PM

nmcli access point configuration
 
I found from various forum postings that NetworkManager will create a wifi access point. Not a word about it in https://developer-old.gnome.org/Netw...ager.conf.html

I found https://developer-old.gnome.org/Netw...cessPoint.html but it's nonsense. Seems to be a fragment of some presentation but I couldn't find the overview.

Patching together half a dozen forum postings, I found I could create an access point with
nmcli con add type wifi ifname wlan0 con-name myhotspot autoconnect yes ssid SpambotsHere
nmcli con modify myhotspot wifi-sec.key-mgmt wpa-psk wifi-sec.psk hardpassword

it seems to set up a built-in dnsmasq access point at an arbitrary default IPA 10.42.0.1/24. Which it did by executing this:
/usr/sbin/dnsmasq --conf-file=/dev/null --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=10.42.0.1 --dhcp-range=10.42.0.10,10.42.0.254,60m --dhcp-leasefile=/var/lib/NetworkManager/dnsmasq-wlan0.leases --pid-file=/run/nm-dnsmasq-wlan0.pid --conf-dir=/etc/NetworkManager/dnsmasq-shared.d


1. Where does the 10.42.0.1 come from? /etc/NetworkManager/dnsmasq-shared.d is empty. The string "10.42" appears nowhere in the /etc/directory.

2. Where is the current nmcli documentation? Is "developer-old" all there is?

business_kid 11-29-2023 08:52 AM

Have you tried setting up an access point with some common wireless tools, e.g. iwconfig? I thought nmcli was a client for connections. Mind you, I'm no expert on networkmanager.

hazel 12-22-2023 09:32 AM

Quote:

Originally Posted by clsgis (Post 6467318)
1. Where does the 10.42.0.1 come from? /etc/NetworkManager/dnsmasq-shared.d is empty. The string "10.42" appears nowhere in the /etc/directory.

It's just the default address:
Quote:

Originally Posted by Fedora Magazine
10.42.0.1/24 is the default address set by NetworkManager for a device in shared mode. Addresses in this range are also distributed via DHCP to other computers. If the range conflicts with other private networks in your environment, change it by modifying the ipv4.addresses property

All network addresses begining with 10. are private and internal.
https://fedoramagazine.org/internet-...etworkmanager/


All times are GMT -5. The time now is 06:08 PM.