LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-28-2023, 03:44 PM   #1
clsgis
Member
 
Registered: Nov 2007
Posts: 37
Blog Entries: 4

Rep: Reputation: 5
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?
 
Old 11-29-2023, 08:52 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,314

Rep: Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327
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.
 
Old 12-22-2023, 09:32 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,587
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Quote:
Originally Posted by clsgis View Post
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/

Last edited by hazel; 12-22-2023 at 09:34 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can nmcli device status but cannot nmcli connection up redhatwannabe Linux - Networking 4 09-27-2021 02:29 AM
CentOS 7 nmcli teaming andrewm659 Linux - Server 0 02-11-2015 05:44 AM
nmcli dev list iface <interfacename> | grep IP4 does not work anymore project722 Linux - Networking 4 06-05-2014 06:59 PM
"nmcli con" failed "Can't obtain connections: settings service is not running." parcox Slackware 2 08-14-2012 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration