Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] network semi-ok, no dns
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 210

PostPosted: Wed Oct 02, 2019 5:53 pm    Post subject: [solved] network semi-ok, no dns Reply with quote

Hi.

I'm installing Gentoo and I'm trying to get wpa_supplicant working.
It will not start automatically even if i put it there:
Code:
# rc-update add wpa_supplicant default
 * rc-update: wpa_supplicant already installed in runlevel `default'; skipping

after reboot the wpa_supplicant isn't running

and if i do:
Code:
screen wpa_supplicant -Dnl80211 -iwlo1 -C/var/run/wpa_supplicant/ -c/etc/wpa_supplicant/wpa_supplicant.conf -dd
it will still not work.
but after
Code:
#dhclient wlo1

my computer has an ip address, but no proper dns settings.

i can ping 8.8.8.8 for example, but not google.com or any other by name.

Any ideas on how to proceed, where to dig information??

I have:

Code:
USE="alsa mount ap X gtk gnome -gpm dvd systemd user-session"

Code:
  [22]  default/linux/amd64/17.1/desktop/gnome/systemd (stable) *


/etc/wpa_supplicant/wpa_supplicant.conf:
Code:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel


ctrl_interface=/var/run/wpa_supplicant/
update_config=1

network={
        ssid="networkname :)"
        psk="password hidden"
}


Thanks.


Last edited by heikkikk on Sat Oct 05, 2019 7:18 am; edited 1 time in total
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Wed Oct 02, 2019 7:15 pm    Post subject: Reply with quote

Hi there.

You have a contradiction in the information you provided. Your first code block shows you running an rc-update command (suggesting that you're using OpenRC), but your system profile shows that you're running SystemD. Which init system are you using?

By default, Gnome uses NetworkManager to manage network settings. You can tell NetworkManager to display your settings by running the following:

Code:
nmcli device show


Your DNS server settings will be displayed. Start your troubleshooting here.

I'm running Gnome with OpenRC, using a wireless connection, and everything is working. If I check the status of the wpa_supplicant service on my machine, it shows as being stopped. This makes sense in that NetworkManager will start this service when trying to connect to WiFi, then stop it after a connection has been made.

One more thing... whenever I encounter networking problems on a machine, one of the first things I do is jump onto another machine on the same network and see if it's also having problems. If so, the problem lies outside the client, i.e, your router, your switch, or a DNS/DHCP server running elsewhere on your network.

Hope this helps.
Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 210

PostPosted: Sat Oct 05, 2019 7:18 am    Post subject: Reply with quote

yes, i had to install networkmanager, now everything works fine, thanks :)
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Mon Oct 07, 2019 10:47 pm    Post subject: Reply with quote

Glad it worked for you!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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