Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Last week started having an issue with my quasi-new laptop. Thinks it's connected to internet, but won't access it. Did the usual modem stuff: reset/turned off-nothing. Changed ethernet cables-still nothing. Dusted off my old laptop (also runs MNT17), hooked it up and it connected w/o any trouble. One curious thing is that once the old laptop connects, the newish one has no trouble using the connection. Compared network settings and the setting on the primary laptop has 2 DNS numbers (old one doesn't) at networking/wired. ??? Looks like this: ###.###.#.# ###.###.#.## I know nothing about networks, could that be the problem? Tried reading man resolveconf, didn't understand much of it.
Have you tried to invoke either dhcpcd or dhclient with your network interface name as their arguments, like this:
Code:
dhcpcd enp1s0
(obviously change dhcpcd to dhclient if dhcpcd isn't installed and enp1s0 to your actual interface name, that you can check with the command "ip addr")
The problem you are describing sounds distinctly like the kind of problem where your computer isn't sending a DHCP request automatically, thusly leading to you not having an IP address, which means that you cannot connect to the Internet because your packets have no address to set as the "source"-address of the package. Which is needed in other to get packages back to your computer from servers.
Last edited by sham1; 04-01-2017 at 06:27 PM.
Reason: Clarifying
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by crabbyfogey
Last week started having an issue with my quasi-new laptop. Thinks it's connected to internet, but won't access it. Did the usual modem stuff: reset/turned off-nothing. Changed ethernet cables-still nothing. Dusted off my old laptop (also runs MNT17), hooked it up and it connected w/o any trouble. One curious thing is that once the old laptop connects, the newish one has no trouble using the connection. Compared network settings and the setting on the primary laptop has 2 DNS numbers (old one doesn't) at networking/wired. ??? Looks like this: ###.###.#.# ###.###.#.## I know nothing about networks, could that be the problem? Tried reading man resolveconf, didn't understand much of it.
A few questions:
1) Has your new laptop ever been able to access the Internet?
2) What makes you say "Thinks it's connected to internet"?
3) Is it safe to assume you mean your "primary" laptop is referring to your new laptop?
4) Am I right in thinking that when you connect your old laptop, the newer one DOES access the Internet?
My first thought is given you said (if I have read what you have said correctly), when you connect your old laptop the newer one DOES access the Internet, that would seem to me to be a clue. The 2 DNS IP addresses are normal.
Can you post the output of the following commands;
Code:
ifconfig -a
route
Last edited by jsbjsb001; 04-01-2017 at 06:45 PM.
Reason: fix spelling mistakes
Looking at the network settings,there is an IP add listed exactly where it's supposed to be. More than one in fact, why would it suddenly stop sending it automatically?
Don't know what this means:
Have you tried to invoke either dhcpcd or dhclient with your network interface name as their arguments, like this:
Code:
dhcpcd enp1s0
(obviously change dhcpcd to dhclient if dhcpcd isn't installed and enp1s0 to your actual interface name, that you can check with the command "ip addr")
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by crabbyfogey
Looking at the network settings,there is an IP add listed exactly where it's supposed to be. More than one in fact, why would it suddenly stop sending it automatically?
Code:
dhcpcd enp1s0
(obviously change dhcpcd to dhclient if dhcpcd isn't installed and enp1s0 to your actual interface name, that you can check with the command "ip addr")
dhcp means "dynamic host configuration protocol", which is basically your routers way of giving out IP addresses to devices connected to it. dhcpd is the service that actually does it.
What do you mean by "IP add" and can you please answer the previous questions asked. Thanks.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by crabbyfogey
New laptop has never had an internet connection problem, until last week.
What's changed since last week?
As, if it was working before (as what you are saying seems to suggest, correct me if I'm wrong), then it sounds like something has changed and is likely related to the problem you are currently having.
Entirely agree with that. What's got me so confused is that if something is working, I don't mess with it. I have no idea where the second IP address came from, it wasn't there initially. That's why I suspected that had something to do with my problem. The only other thing I did was a couple of updates from the update manager notification.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by crabbyfogey
Entirely agree with that. What's got me so confused is that if something is working, I don't mess with it. I have no idea where the second IP address came from, it wasn't there initially. That's why I suspected that had something to do with my problem. The only other thing I did was a couple of updates from the update manager notification.
I have just noticed from your route command output, you have a gateway of 255.255.255.0, instead of 255.255.255.255 which is what I think it should be, but still a little confused given you said that it was working last week.
What exactly do you mean by "The only other thing I did was a couple of updates from the update manager notification.", what is the update manager notification?
I have just noticed from your route command output, you have a gateway of 255.255.255.0, instead of 255.255.255.255 which is what I think it should be, but still a little confused given you said that it was working last week.
No, that is ok. Mine for reference
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
Ping result--does this over and over:
Lenovo-G50-80 ~ $ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.472 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.459 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.426 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=64 time=0.474 ms
64 bytes from 192.168.0.1: icmp_seq=5 ttl=64 time=0.488 ms
-------------------------
Lenovo-G50-80 ~ $ 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=59 time=10.7 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=59 time=10.5 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=59 time=10.8 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=59 time=10.4 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=59 time=10.7 ms
------------------------
Lenovo-G50-80 ~ $ ping google.com
PING google.com (172.217.12.14) 56(84) bytes of data.
64 bytes from den02s02-in-f14.1e100.net (172.217.12.14): icmp_seq=1 ttl=57 time=10.1 ms
64 bytes from den02s02-in-f14.1e100.net (172.217.12.14): icmp_seq=2 ttl=57 time=10.5 ms
64 bytes from den02s02-in-f14.1e100.net (172.217.12.14): icmp_seq=3 ttl=57 time=9.77 ms
64 bytes from den02s02-in-f14.1e100.net (172.217.12.14): icmp_seq=4 ttl=57 time=9.78 ms
64 bytes from den02s02-in-f14.1e100.net (172.217.12.14): icmp_seq=5 ttl=57 time=10.4 ms
64 bytes from den02s02-in-f14.1e100.net (172.217.12.14): icmp_seq=6 ttl=57 time=10.2 ms
64 bytes from den02s02-in-f14.1e100.net (172.217.12.14): icmp_seq=7 ttl=57
Update manager is software that notifies you when updates are available. Icon in panel tells you your system is up-to-date or needs something done. That's how I'm notified that Firefox, Tbird, etc has a new version, for example. The updates are ranked according to importance/risk.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.