Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Network Manager && WiFi Hotspot / Not getting ip
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Mon Dec 02, 2019 11:11 pm    Post subject: Network Manager && WiFi Hotspot / Getting ip address Reply with quote

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
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 513
Location: Inner Space

PostPosted: Tue Dec 03, 2019 7:52 am    Post subject: Reply with quote

yes you need a dhcp server that distributes IPs. typically it is dnsmasq.
_________________

Flux & Contemplation - Portrait of an Artist in Isolation

Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Tue Dec 03, 2019 6:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Tue Dec 03, 2019 6:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 513
Location: Inner Space

PostPosted: Tue Dec 03, 2019 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Tue Dec 03, 2019 8:06 pm    Post subject: Reply with quote

the command
Code:
hostnamectl --static set-hostname gentoomachine

worked for me :)
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 513
Location: Inner Space

PostPosted: Wed Dec 04, 2019 6:59 am    Post subject: Reply with quote

great. if it is all fixed now please set the title of this thread to [solved] ...
_________________

Flux & Contemplation - Portrait of an Artist in Isolation

Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Fri Dec 06, 2019 9:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum