You are not logged in.

#1 2017-11-03 11:02:21

nasser
Member
Registered: 2016-01-23
Posts: 56

[SOLVED]I can ping but can't do anything else

I have 2 Arch machines, and one of them worked for a year without a problem
But suddenly the internet connection has stopped on both of them and on a Win machine too, I can ping to any IP on the three machines but can't do anything else

Information about my main Laptop:
I use wpa_supplicant to connect

less /etc/resolve.conf
 nameserver 192.168.1.1

*Everything works fine on tablets and mobile phones
*When I try to connect through USB tathering nothing changes

*I posted this from my tablet

Last edited by nasser (2017-11-11 19:17:12)

Offline

#2 2017-11-03 11:25:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: [SOLVED]I can ping but can't do anything else

nasser wrote:

I can ping to any IP on the three machines but can't do anything else

Can you ping machines not in your local network?  What is an example of "anything else"?  What fails, and with what error messages?

Note too that wpa_supplicant is not sufficient for a connection.  Are you also running dhcpcd or something similar?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#3 2017-11-03 11:32:15

nasser
Member
Registered: 2016-01-23
Posts: 56

Re: [SOLVED]I can ping but can't do anything else

Trilby wrote:
nasser wrote:

I can ping to any IP on the three machines but can't do anything else

Can you ping machines not in your local network?  What is an example of "anything else"?  What fails, and with what error messages?

Note too that wpa_supplicant is not sufficient for a connection.  Are you also running dhcpcd or something similar?

Sorry I meant I can ping to static IP's for WebSites but can't brows the website
"Server not found", and can't use pacman

And I run dhcpcd for the interfaces like "wlp2s0"

Offline

#4 2017-11-03 12:50:51

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [SOLVED]I can ping but can't do anything else

nasser wrote:

....the internet connection has stopped on both of them and on a Win machine too....

So if every machine has stopped -- Arch or Windows -- I would look to the router you are behind. Has anything changed there? Any other devices you can try?


Matt

"It is very difficult to educate the educated."

Offline

#5 2017-11-03 13:04:47

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED]I can ping but can't do anything else

nasser wrote:

Sorry I meant I can ping to static IP's for WebSites but can't brows the website
"Server not found", and can't use pacman

Does your nameserver work (nslookup, ping with a domain instead of an ip)?

# test with your default nameserver
nslookup example.com

# test with google nameserver
nslookup example.com 8.8.8.8

# http test with curl
curl example.com

# http test directly to ip
curl --header "Host: example.com" 93.184.216.34

Last edited by progandy (2017-11-03 13:08:55)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#6 2017-11-03 15:05:22

nasser
Member
Registered: 2016-01-23
Posts: 56

Re: [SOLVED]I can ping but can't do anything else

The router is fine (I can use my tablet and mobile phone and can ping to IP addresses)

nslookup didn't work with default nameserver

;; connection timed out; no servers could be reached

But worked with Google nameserver

curl:

curl: (6) Couldn't resolve host: www.google.com 

But worked with http test direct to IP

Offline

#7 2017-11-03 15:34:03

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [SOLVED]I can ping but can't do anything else

Could you post

ip route

?

Offline

#8 2017-11-03 15:53:05

nasser
Member
Registered: 2016-01-23
Posts: 56

Re: [SOLVED]I can ping but can't do anything else

lo1 wrote:

Could you post

ip route

?

default via 192.168.1.1 dev wlp2s0 src 192.168.1.5 metric 303
192.168.1.0/24 dev wlp2s0 proto kernel scope link src 192.168.1.5 metric 303

Offline

#9 2017-11-03 16:02:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,868

Re: [SOLVED]I can ping but can't do anything else

dig google.com
nmap -p 53 192.168.1.1

Online

#10 2017-11-03 17:19:29

nasser
Member
Registered: 2016-01-23
Posts: 56

Re: [SOLVED]I can ping but can't do anything else

seth wrote:
dig google.com
nmap -p 53 192.168.1.1

dig:

;; connection timed out;no servers could be reached 

And nmap:
Command not found

Offline

#11 2017-11-03 17:40:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,868

Re: [SOLVED]I can ping but can't do anything else

well, installing nmap sounds like a solution to the latter??

Online

#12 2017-11-03 17:44:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]I can ping but can't do anything else

Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2017-11-05 02:15:11

nasser
Member
Registered: 2016-01-23
Posts: 56

Re: [SOLVED]I can ping but can't do anything else

Ok guys IDK how that's happened but when I wake uo in the morning every thing back to normal

Offline

#14 2017-11-05 02:23:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]I can ping but can't do anything else

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#15 2017-11-05 04:14:53

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED]I can ping but can't do anything else

seth wrote:

well, installing nmap sounds like a solution to the latter??

How?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#16 2017-11-05 08:22:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,868

Re: [SOLVED]I can ping but can't do anything else

You mean how installing nmap is a solution to this problem?

And nmap:
Command not found

How did you install Archlinux? tongue

Online

#17 2017-11-06 00:19:43

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED]I can ping but can't do anything else

seth wrote:

You mean how installing nmap is a solution to this problem?

And nmap:
Command not found

How did you install Archlinux? tongue

I meant: given that the problem is complete lack of a network connection, it may not be easy or obvious to the OP how to install anything. I assume you were thinking that the OP could download the package elsewhere to removable media and then install the package using pacman -U or so?

Last edited by cfr (2017-11-06 00:20:07)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#18 2017-11-06 07:44:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,868

Re: [SOLVED]I can ping but can't do anything else

Ok, tbh that question didn't cross my mind at all...  (and the OP didn't ask)

The USB walk is certainly a solution that always works, but in the particular situation, changing the DNS server to 8.8.8.8 would very likely have provided a workaround (inferable from the context ant comment #13 suggests that the router rebooted or fetched a new DNS from the ISP to be wired through; android will for more or less sure at least resort to googles DNS)

Online

Board footer

Powered by FluxBB