Skip to main content
Topic: [SOLVED] Ping doesn't work?  (Read 735 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Ping doesn't work?

Hello!
I have set up a load of crons that help me check for some accounts and i have them checking if i have internet by using a
Code: [Select]
ping -q -c 1 example.org

Yesterday that worked great as always. But today i logged in and suddenly i couldn't get the ping working.

Code: [Select]
$ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
^C
--- 1.1.1.1 ping statistics ---
8 packets transmitted, 0 received, 100% packet loss, time 7106ms

ip addr outputs:
Code: [Select]
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 1c:1b:0d:57:06:21 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.38/24 brd 192.168.1.255 scope global dynamic noprefixroute enp1s0
       valid_lft 25563sec preferred_lft 25563sec
    inet6 fe80::8728:9b37:2f4d:43d4/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

I can use internet and i don't have any firewall or anything, everything works except ping. Anyone have any idea why this happens?

Edit: I'm running runit and i have enabled dbus and NetworkManager.
Edit2: I tried to check status with
Code: [Select]
sv status NetworkManager
and i got:
Code: [Select]
down: NetworkManager: 1s, normally up, want up
I tried to use sv up and it gets running for 1 second and then goes down again.

I just moved from systemd to runit and i don't actually know if there is some log. Anyone has any ideas?

Edit3: I had installed dhcpcd. I removed it and installed dhcpcd-runit, enabled it and i still have the ping error and NetworkManager is still down. I stopped dhcpcd and i got disconnected from internet and couldn't get to start networkManager. So i started again dhcpcd and now i'm in the same place. Any ideas?

 

Re: Ping doesn't work?

Reply #1
Well looks like restarting the router fixed it even tough all my other devices worked perfectly. Marking it as solved