LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-17-2014, 09:36 PM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
sending numbers


In relation to this thread,
http://www.linuxquestions.org/questi...973/page2.html

I think maybe my laptop is faulty. Some sites load sometimes, then again they won't load, and the isp send me to a default page. This behaviour also changes according to OS. I have not had this trouble with Windows, but I don't use Windows much. Mostly Fedora or Ubuntu.

Question: When I enter a web address in a web browser, what actually sends a request to the server containing the web page?

Is it the web browser, the ethernet card or what does the sending? What actually gets sent from my computer? I have been experiencing slow internet lately, I wonder if the request sent from my computer is maybe 'scrambled' or deficient, which is why I am not getting a response, or whatever interprets the incoming response is (sometimes) faulty. Most web pages load ok, but for example, this morning, I could not load linuxquestions.org in Ubuntu. Now in Fed 20 KDE and Konqueror, it loads fine.

Time for a new laptop??
 
Old 05-17-2014, 10:21 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
what DNS are you using ?
your ISP's ?
Googles ? 8.8.8.8 and 8.8.4.4
OpenDNS ? 208.67.222.222 and 208.67.220.220
 
Old 05-19-2014, 01:17 AM   #3
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
dns is 192.168.1.1 That is what it says in Settings>Netowrking>Wired Connection in Fed 20.

I opened 192.168.1.1 but I can't see another dns. There are 2 users and passwords for my router. I don't have the password for user telecomadmin. I will speak to the technician. The dns used to begin with 58.?? but I can't see it in the router.

Last night I could not access any pages under Linux, not in Ubuntu, not in Fedora. I switched off and thought about buying a new laptop. Then I started Windows. All the pages I could not access using Linux were accessible. Maybe the isp was doing something, but my girlfriend was watching a film via internet at the time using Windows. She had no internet problems.

Today I can access them under Fedora 20, haven't tried Ubu yet. Maybe I need a new laptop because the hardware is faulty. Wouldn't that also be faulty under Windows???

Is it possible to install a new ethernet connection on a laptop?? I presume that is a card on a normal pc. Maybe there is an external ethernet card I could use to test my laptop connection??
 
Old 05-19-2014, 01:32 AM   #4
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Well, we are still waiting for your results in the other thread. So change your dns as JohnVV recommends, do the test we are waiting for, no use starting a new thread.

In the other thread you said your wireless is ok.

Mods, please merge with thread posted in ops question.
 
Old 05-19-2014, 01:50 AM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
I can't change my dns. I do not know how. Maybe if I could access the router as telecomadmin.

I suspect a hardware problem. But if so, it is a crazy hardware problem which only affects Linux. That would indicate a driver problem I think. I do not know what happens when I call a web page, but I presume everything goes in and out over the ethernet card, chip, whatever it is. If I can buy an external ethernet card for my laptop, I can rule out that problem.

[pedro@pedro-bedro ~]$ ifconfig -a
em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::226:6cff:feb1:ae88 prefixlen 64 scopeid 0x20<link>
ether 00:26:6c:b1:ae:88 txqueuelen 1000 (Ethernet)
RX packets 23013 bytes 13921077 (13.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16814 bytes 2552467 (2.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 1 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 304 bytes 14581 (14.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 304 bytes 14581 (14.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.6 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::b674:9fff:fe77:5389 prefixlen 64 scopeid 0x20<link>
ether b4:74:9f:77:53:89 txqueuelen 1000 (Ethernet)
RX packets 12197 bytes 3080891 (2.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3596 bytes 429890 (419.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[pedro@pedro-bedro ~]$ ethtool -t em1 online
Cannot test: Operation not permitted
[pedro@pedro-bedro ~]$ sudo ethtool -t em1 online
Cannot test: Operation not supported
[pedro@pedro-bedro ~]$
 
Old 05-19-2014, 06:21 AM   #6
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
You still have the recurring carrier error. Have you actually tried switching cables to test the cable works properly. 99% of time that can be the issue. Have you tried to use a live linux distro to test the ethernet conection as was requested? Please do not waste our time by posting the same information more than once in a thread. It does not help us determine what is wrong. Do what we ask or state a valid reason why you believe it is not the right choice, or a reason that may make you believe something else is involved.

Secondly, don't mix and match your results from two different operating systems, diagnose and fix on one, when that is done, the other. Both your ubuntu and fedora stats give you the carrier error. So pick fedora or ubuntu, and stick to only one. Both will have different ways in the gui to change things including dns, so please don't confuse us or yourself thinking that all instructions are universal to all operating systems.

Seeing the error that ethtool gives you, why not just log in as the super user and then run it?

Code:
 sudo
generally does the trick.

so you want to run

Code:
 sudo ethtool -t em1 online
I now consider that you have been given all the tools needed, you do have a lot of posts, that generally would suggest being moderately experienced with these matters.

For further help on any of the two operating systems including on how to change dns, please refer to:

Fedora: http://docs.fedoraproject.org/

alternatively

Ubuntu: https://help.ubuntu.com/

In regards to network troubleshooting, there is a very nice guide I posted a link for in your other thread, that will also show you how to use things like ethtool and the likes to diagnose network problems.

I believe those manuals will have all the basic administration tasks covered in a relevant chapter. The manuals are actually very informative, please do take the time to consult them.

Kind regards and good luck

Last edited by ericson007; 05-19-2014 at 06:32 AM.
 
Old 05-19-2014, 07:17 AM   #7
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Thanks.

I see no errors in the output of ifconfig -a above. Where is the error? rx and tx (whatever that is) all 0

If you look, you will see that I tried as normal and as superuser. ethtool does not work. "Cannot test. Operation not supported"

What I can say is: tonight I have tried Fedora and Ubuntu. Both are working normally using the same cable. I did try other cables. When things go wrong, I first restart the router. That often does the trick. I think because it gets me a new ip.

I don't understand what a Live Distro will do that I can't do by starting Fed or Ubuntu or Windows, except maybe be much slower. I can understand that one version might be corrupted. But yesterday evening neither Linus would load any pages. Windows did, with the same cable, no prob. I think Linux left some setting open wrong. Windows reset that. Just a guess. I just assumed there was a hardware error. If this was tower pc, I would have replaced the ethernet card.
 
Old 05-19-2014, 08:13 AM   #8
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Quote:
pedro@pedro-bedro ~]$ ifconfig -a
em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::226:6cff:feb1:ae88 prefixlen 64 scopeid 0x20<link>
ether 00:26:6c:b1:ae:88 txqueuelen 1000 (Ethernet)
RX packets 23013 bytes 13921077 (13.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16814 bytes 2552467 (2.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 1 collisions 0
Please look for that line on almost all your ifconfig posts.that generally means something is causing your connection to flap

True you tried sudoabove but that looks more like fedora output to me in which case sudo has to be configured to allow for sudo operation for a set of commands by a regular user. According to my understanding running su is better because fedora does not aim to be a windows replacement like ubuntu. You can identify in fedora that you run super when the $ before the command changes to a #

Last edited by ericson007; 05-19-2014 at 08:18 AM.
 
Old 05-19-2014, 08:22 AM   #9
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by Pedroski View Post
...Today I can access them under Fedora 20, haven't tried Ubu yet. Maybe I need a new laptop because the hardware is faulty. Wouldn't that also be faulty under Windows???...
whats the equivalent of /etc/resolv.conf in windows. what i would be curious to compare would be the output of cat /etc/resolv.conf for both fedora and ubuntu and the dns settings for windows.
 
Old 05-19-2014, 08:29 AM   #10
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by Pedroski View Post
...What I can say is: tonight I have tried Fedora and Ubuntu. Both are working normally using the same cable. I did try other cables. When things go wrong, I first restart the router. That often does the trick. I think because it gets me a new ip...
maybe your windows is set to static ip and the two linuxes are set to dynamic. then maybe your router is mistakenly giving them ip's that are already in use and so if someone else on your network (with the same ip) goes to website a then it mistakenly gets routed to you (and vice-versa).
 
Old 05-19-2014, 08:44 AM   #11
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
MS-Windows Version 8/7/Vista/XP/NT/2003
Click on Start button > Run > and Type command cmd > Press [enter] key

At DOS prompt type the command:
C:\>ipconfig /all

You should DNS server IP address, and other information related to Windows networking:

OR

You can Click on Start button > Settings > Network connections
Double click on Local Area Connection
Click on Properties button
Select Internet Protocol (TCP/IP)
Click on Properties button and Look for Preferred DNS Server:

The above is for what schneidz asked.

Last edited by ericson007; 05-19-2014 at 08:56 AM.
 
1 members found this post helpful.
Old 05-19-2014, 09:07 AM   #12
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
So you are saying, carrier should be 0?? If it is not, what error would you suspect? Cable? Ethernet?? Some driver?? I don't switch wireless on in Ubu, that often causes a kernel panic, crash. That started a few kernels ago.Hasn't gone away yet.

I don't think you can su in Ubu. Maybe in Fedora.
This is Ubu. I will post Fed tomorrow, it's late, I need sleep.
pedro@pedro-bedro:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search Home
pedro@pedro-bedro:~$

Last edited by Pedroski; 05-19-2014 at 09:12 AM.
 
Old 05-19-2014, 09:17 AM   #13
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Carrier should be 0. If not it is called flapping.

That is the signal your connection depends on. It could be as i stated the cable, driver, controller pin or could be you playing with the cable.

I hope after so many replies you realizr like you were told before

127.0.0.1 means localhost and you cannot have that as a dns server. The internet hostnames will not work...

Seriously mate go look up the bloody manuals posted before, check your windows dns and change the fedora dns to be the same or use what johnvv suggested.

Failing that get a computer tech if that is not possible, unplug the computer.

Last edited by ericson007; 05-19-2014 at 07:24 PM.
 
Old 05-19-2014, 05:30 PM   #14
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Using a different cable and Fedora 20, I still have carrier 1 That's good, it narrows the problem down.

"127.0.0.1 means localhost and you cannot have that as a dns server. The internet hostnames will not work..." With all due respect, I used my internet to post my comments last night. In Ubuntu, which has that resolv.conf So it works!

This Fed 20 resolv.conf
[pedro@pedro-bedro ~]$ cat /etc/resolv.conf
# Generated by NetworkManager
domain Home
search Home
nameserver 192.168.1.1
[pedro@pedro-bedro ~]$

[pedro@pedro-bedro ~]$ ifconfig -a
em2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::226:6cff:feb1:ae88 prefixlen 64 scopeid 0x20<link>
ether 00:26:6c:b1:ae:88 txqueuelen 1000 (Ethernet)
RX packets 206 bytes 20612 (20.1 KiB)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 86 bytes 10050 (9.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 1 collisions 0

This is Fed 20 root:
[root@pedro-bedro ~]# ethtool -t em2 online
Cannot test: Operation not supported
[root@pedro-bedro ~]#

Question: can I buy an external ethernet card via a usb port for this laptop?
 
Old 05-19-2014, 05:56 PM   #15
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Ok Windows is a bit hard to handle, but I got a terminal. I don't know how to print the output or copy it. I entered ipconfig /all

dns is in various sections of the output.
I will mark sections Sections with [ ]
[Windows IP

dns Home]

[I-E NIC

dns 192.168.1.1]

There is a lot of Chinese in the output, so even if I could copy it, might not help you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Print numbers and associated text belonging to an interval of numbers Trd300 Linux - Newbie 27 03-11-2012 05:58 AM
how to find the 1 number out of 10 numbers, if I have taken 9 numbers from my brain ? rpittala Linux - Newbie 4 01-30-2012 05:40 PM
[SOLVED] find the total of numbers that are higher than x in a text file with numbers (using awk??) Mike_V Programming 12 11-24-2010 09:51 AM
sequence of numbers, how to extract which numbers are missing jonlake Programming 13 06-26-2006 03:28 AM
sending files using isp numbers dr_zayus69 Linux - Networking 5 10-27-2004 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration