Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel & world update: network stopped working (?)
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
WvR
Apprentice
Apprentice


Joined: 03 Mar 2011
Posts: 200
Location: Tsuruga, Japan

PostPosted: Tue Jan 10, 2017 12:26 am    Post subject: Kernel & world update: network stopped working (?) Reply with quote

Hi all, I have a bit of a conundrum. I have approximately 15 years experience with Gentoo Linux.

I have a laptop (Lenovo G580) which has been running gentoo for 4 years. Yesterday, I decided to update the world packages (emerge -auvDN world), and I also upgraded the kernel to 4.4.39 (genkernel --logleve=5 --menuconfig --install --no-clean all). The only "custom" settings are: set "systemd", and only select the network cards of the laptop (i.e. Atheros 81XX for wired LAN and Broadcom 4313 for wireless with the brcmsmac driver).

I rebooted on the new kernel, and everything seems to be fine, except for the fact that internet does not work :-(

I have a wireless LAN in my house. My tablet and internet radio can connect to the internet just fine, which means that the network is functioning correctly. From my PC I can connect to the wireless router (192.168.2.1) and log in as "admin". This means that the network card is working fine.

Google Chrome reports something like "DNS BAD CONFIG".

What is going on here? Were there any changes in things like resolv.conf in the newest kernels? Or is this due to some other problem?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Tue Jan 10, 2017 2:35 am    Post subject: Reply with quote

What is the output of ip addr ; ip route? Browsers are notorious for using "friendly" error messages that mislead you. Based on your description, my first guess would be that you have no default route, so you can talk to hosts on the local subnet, but the kernel cannot talk to anything beyond that. If so, as a temporary workaround, you can add a default route pointing to your wireless router: ip route add default via 192.168.2.1. This is just to get you connectivity while we try to understand why that route was not added automatically.
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Tue Jan 10, 2017 4:38 am    Post subject: Reply with quote

you may want do also try doing a simple ping to like 8.8.8.8 (google's public dns), as that will easily tell you if you even have access to the internet and just don't have dns. If you don't, then you end up needing to make sure you have a default route setup (what Hu is talking about), but pointless to check if you know for sure you can ping an outside IP address (meaning not a 192.168.x.x address, among some others).
Back to top
View user's profile Send private message
WvR
Apprentice
Apprentice


Joined: 03 Mar 2011
Posts: 200
Location: Tsuruga, Japan

PostPosted: Tue Jan 10, 2017 11:59 am    Post subject: Reply with quote

Thanks for the reactions. I can succesfully do ping 8.8.8.8 so the basic network settings are OK. I checked the file /etc/resolv.conf and it only contains the line

Code:
nameserver   127.0.0.53


which is the default setting from systemd. It seems then that somehow, the file /etc/resolv.conf is not updated with the info from the DHCP server. I added:

Code:
nameserver   127.0.0.53
nameserver   8.8.8.8


and I can then access the internet. This is a systemd problem. I will investigate and let you know.
Back to top
View user's profile Send private message
artbody
Guru
Guru


Joined: 15 Sep 2006
Posts: 489
Location: LB

PostPosted: Tue Jan 10, 2017 10:34 pm    Post subject: Reply with quote

Your resolv.conf should look like this

Code:
# Generated by dhcpcd from enp2s0.dhcp, enp2s0.dhcp6, enp2s0.ra
# /etc/resolv.conf.head can replace this line
domain fritz.box
nameserver 192.168.233.1
nameserver fd00::2665:1fff:ffff:f547
# /etc/resolv.conf.tail can replace this line

Whats that
Code:
nameserver   8.8.8.8


as root
in a sh
Code:
ping 8.8.8.8

Code:
 # ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=60 time=21.0 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=60 time=17.8 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=60 time=17.4 ms
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 17.421/18.770/21.074/1.640 ms

_________________
Never give up
WM : E16 the true enlightenment
achim
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