View previous topic :: View next topic |
Author |
Message |
heikkikk Apprentice

Joined: 05 Feb 2008 Posts: 220
|
Posted: Mon Dec 02, 2019 11:11 pm Post subject: Network Manager && WiFi Hotspot / Getting ip address |
|
|
Hello.
I managed to set up hotspot mode in network manager in Gentoo / Gnome
But it does not give the wifi connected device (mobile phone in this case) an ip address.
Do i need to install some dhcp server on my laptop or how is it supposed to work?
So i see the wifi network and i can kind of connect to it but it does not get an ip address and thus disconnects from it.
Also i can't change the network name. It stays as "localhost.localdomain" even if i change it using nm-connection-editor.
Thanks.
Last edited by heikkikk on Fri Dec 06, 2019 9:26 pm; edited 2 times in total |
|
Back to top |
|
 |
e3k Guru


Joined: 01 Oct 2007 Posts: 515 Location: Quantum Flux
|
|
Back to top |
|
 |
heikkikk Apprentice

Joined: 05 Feb 2008 Posts: 220
|
Posted: Tue Dec 03, 2019 6:20 pm Post subject: |
|
|
e3k wrote: | yes you need a dhcp server that distributes IPs. typically it is dnsmasq. |
Works, Thanks
I just installed it and restarted network manager.
Code: |
emerge --ask --verbose net-dns/dnsmasq && systemctl restart NetworkManager
|
|
|
Back to top |
|
 |
heikkikk Apprentice

Joined: 05 Feb 2008 Posts: 220
|
Posted: Tue Dec 03, 2019 6:21 pm Post subject: |
|
|
But the other problem stays: The network name (hotspot name) is changing. If i change it with nm-connection-manager, it will not stay as i wanted. |
|
Back to top |
|
 |
e3k Guru


Joined: 01 Oct 2007 Posts: 515 Location: Quantum Flux
|
Posted: Tue Dec 03, 2019 6:44 pm Post subject: |
|
|
heikkikk wrote: | But the other problem stays: The network name (hotspot name) is changing. If i change it with nm-connection-manager, it will not stay as i wanted. | apparently the NetworkManager is working like this:
Code: |
rtfm:$ man NetworkManager.conf
...
hostname-mode
Set the management mode of the hostname. This parameter will affect
only the transient hostname. If a valid static hostname is set,
NetworkManager will skip the update of the hostname despite the
value of this option. An hostname empty or equal to 'localhost',
'localhost6', 'localhost.localdomain' or 'localhost6.localdomain'
is considered invalid.
default: NetworkManager will update the hostname with the one
provided via DHCP on the main connection (the one with a default
route). If not present, the hostname will be updated to the last
one set outside NetworkManager. If it is not valid, NetworkManager
will try to recover the hostname from the reverse lookup of the IP
address of the main connection. If this fails too, the hostname
will be set to 'localhost.localdomain'.
...
|
so i guess it would be enough to follow the gentoo config steps: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/System
and set the hostname as it is used as the SSID by NM.
i am also happy that your dnsmasq is working now  _________________
Flux & Contemplation - Portrait of an Artist in Isolation
|
|
Back to top |
|
 |
heikkikk Apprentice

Joined: 05 Feb 2008 Posts: 220
|
Posted: Tue Dec 03, 2019 8:06 pm Post subject: |
|
|
the command
Code: | hostnamectl --static set-hostname gentoomachine |
worked for me  |
|
Back to top |
|
 |
e3k Guru


Joined: 01 Oct 2007 Posts: 515 Location: Quantum Flux
|
|
Back to top |
|
 |
heikkikk Apprentice

Joined: 05 Feb 2008 Posts: 220
|
Posted: Fri Dec 06, 2019 9:27 pm Post subject: |
|
|
e3k wrote: | great. if it is all fixed now please set the title of this thread to [solved] ... |
"Error in posting"
can't do that.
edit: Oh, it changed anyhow  |
|
Back to top |
|
 |
|