You are not logged in.

#1 2024-06-08 19:52:45

bababoey
Member
Registered: 2024-03-28
Posts: 16

My pc can't ping devices on my lan

My pc is connected via ethernet cable and I have 2 phones that's connected via wifi. The 2 phones can ping each other but not the pc. And the pc cant ping either of the 2 phones.

I've tried disabling my firewall (UFW). Restarting NetworkManager. Stopping NetworkManager.

Offline

#2 2024-06-08 20:14:05

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

Re: My pc can't ping devices on my lan

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

ip a
ip r
ping -c1 your_phone_ip_or_domain

Offline

#3 2024-06-09 05:17:11

bababoey
Member
Registered: 2024-03-28
Posts: 16

Re: My pc can't ping devices on my lan

[mrcuriouscat@archlinux ~]$ ip a
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 noprefixroute 
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether d8:5e:d3:85:fe:1d brd ff:ff:ff:ff:ff:ff
    altname enp3s0
    inet 192.168.1.4/24 brd 192.168.1.255 scope global dynamic noprefixroute eno1
       valid_lft 86327sec preferred_lft 86327sec
    inet6 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/64 scope global dynamic noprefixroute 
       valid_lft 259195sec preferred_lft 172795sec
    inet6 fe80::a90e:9307:ae28:9ed3/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
[mrcuriouscat@archlinux ~]$ ip r
default via 192.168.1.1 dev eno1 proto dhcp src 192.168.1.4 metric 100 
192.168.1.0/24 dev eno1 proto kernel scope link src 192.168.1.4 metric 100 
[mrcuriouscat@archlinux ~]$ ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
From 192.168.1.4 icmp_seq=1 Destination Host Unreachable
From 192.168.1.4 icmp_seq=2 Destination Host Unreachable
From 192.168.1.4 icmp_seq=3 Destination Host Unreachable
From 192.168.1.4 icmp_seq=4 Destination Host Unreachable
From 192.168.1.4 icmp_seq=5 Destination Host Unreachable
^C
--- 192.168.1.2 ping statistics ---
8 packets transmitted, 0 received, +5 errors, 100% packet loss, time 7196ms
pipe 4

I also forgot to mention that the same issue exist when I used other distros (Nobara Linux, Linux Mint).

Last edited by bababoey (2024-06-10 13:24:08)

Offline

#4 2024-06-09 07:28:39

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

Re: My pc can't ping devices on my lan

Please use [code][/code] tags, not "quote" tags. Edit your post in this regard.

You've a lease and default route from 192.168.1.1 and try to reach a host in the same segment.
Either the host doesn't exist (wrong IP) or the packages get dropped by your router.
What's the output of "ip a" on the notebook you're trying to reach and does your router provide separate subnets (eg. a guest wifi etc.)?

Offline

#5 2024-06-10 18:14:44

bababoey
Member
Registered: 2024-03-28
Posts: 16

Re: My pc can't ping devices on my lan

What's the output of "ip a" on the notebook you're trying to reach and does your router provide separate subnets (eg. a guest wifi etc.)?

Unfortunately, the phone with the ip 192.168.1.2 is giving me errors when trying to run the "ip a" command (maybe because it's not rooted).
Fortunately the other phone that my pc also can't ping can run the command.

~ $ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    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: dummy0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether 16:89:94:01:9c:8e brd ff:ff:ff:ff:ff:ff
    inet6 fe80::1489:94ff:fe01:9c8e/64 scope link
       valid_lft forever preferred_lft forever
3: ip_vti0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1
    link/ipip 0.0.0.0 brd 0.0.0.0
4: ip6_vti0@NONE: <NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/tunnel6 :: brd ::
5: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1
    link/sit 0.0.0.0 brd 0.0.0.0
6: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN group default qlen 1
    link/tunnel6 :: brd ::
8: rmnet0: <UP,LOWER_UP> mtu 2000 qdisc pfifo_fast state UNKNOWN group default qlen 1000
    link/[530]
9: rmnet_data0: <UP,LOWER_UP> mtu 2000 qdisc pfifo_fast state UNKNOWN group default qlen 1000
    link/[530]
    inet6 fe80::2b4d:ce5b:ff20:4cd/64 scope link
       valid_lft forever preferred_lft forever
10: rmnet_data1: <UP,LOWER_UP> mtu 1500 qdisc htb state UNKNOWN group default qlen 1000
    link/[530]
    inet6 2405:8d40:4301:8a41:ef1d:2805:51c3:81e4/64 scope global dynamic mngtmpaddr
       valid_lft 604222sec preferred_lft 85822sec
    inet6 fe80::ef1d:2805:51c3:81e4/64 scope link
       valid_lft forever preferred_lft forever
11: rmnet_data2: <UP,LOWER_UP> mtu 1500 qdisc htb state UNKNOWN group default qlen 1000
    link/[530]
    inet 100.67.103.165/30 scope global rmnet_data2
       valid_lft forever preferred_lft forever
    inet6 2405:8d40:4901:42de:b935:3dc8:81e2:8922/64 scope global dynamic mngtmpaddr
       valid_lft 604220sec preferred_lft 85820sec
    inet6 fe80::b935:3dc8:81e2:8922/64 scope link
       valid_lft forever preferred_lft forever
12: rmnet_data3: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
13: rmnet_data4: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
14: rmnet_data5: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
15: rmnet_data6: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
16: rmnet_data7: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
17: r_rmnet_data0: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
18: r_rmnet_data1: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
19: r_rmnet_data2: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
20: r_rmnet_data3: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
21: r_rmnet_data4: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
22: r_rmnet_data5: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
23: r_rmnet_data6: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
24: r_rmnet_data7: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
25: r_rmnet_data8: <> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/[530]
26: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d8:32:e3:a0:07:70 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.3/24 brd 192.168.1.255 scope global wlan0
       valid_lft forever preferred_lft forever
    inet6 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/64 scope global temporary dynamic
       valid_lft 259199sec preferred_lft 85659sec
    inet6 2001:4455:36f:3c00:8a11:4282:a41a:3204/64 scope global dynamic mngtmpaddr stable-privacy
       valid_lft 259199sec preferred_lft 172799sec
    inet6 fe80::dff0:bb90:bf:589/64 scope link stable-privacy
       valid_lft forever preferred_lft forever
27: p2p0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether da:32:e3:a0:07:70 brd ff:ff:ff:ff:ff:ff

It can also ping my unrooted phone.

~ $ ping 192.168.1.2                                  PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=642 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=64 time=356 ms                                                    64 bytes from 192.168.1.2: icmp_seq=3 ttl=64 time=149 ms
64 bytes from 192.168.1.2: icmp_seq=4 ttl=64 time=274 ms
64 bytes from 192.168.1.2: icmp_seq=5 ttl=64 time=391 ms                                                    ^C                                                    --- 192.168.1.2 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 149.810/363.035/642.241/162.558 ms

But not my pc and vice versa.

~ $ ping 192.168.1.4                                  PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
From 192.168.1.3: icmp_seq=1 Destination Host Unreachable
From 192.168.1.3: icmp_seq=2 Destination Host Unreachable                                                   From 192.168.1.3: icmp_seq=3 Destination Host Unreachable
From 192.168.1.3: icmp_seq=4 Destination Host Unreachable
From 192.168.1.3: icmp_seq=5 Destination Host Unreachable                                                   From 192.168.1.3: icmp_seq=6 Destination Host Unreachable
^C                                                    --- 192.168.1.4 ping statistics ---
6 packets transmitted, 0 received, +6 errors, 100% packet loss, time 5104ms
pipe 3

Offline

#6 2024-06-10 20:28:15

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

Re: My pc can't ping devices on my lan

This all happens in the same segment (no bridge) and because the phones can ping each other, there's no routing problem with them and they generally respond to icmp requests.
My money is on some router iptables splitting ethernet and wifi - do you have a wifi dongle that you could use w/ the PC and does that allow you to ping the phones?

Offline

#7 2024-06-12 09:41:08

bababoey
Member
Registered: 2024-03-28
Posts: 16

Re: My pc can't ping devices on my lan

do you have a wifi dongle that you could use w/ the PC and does that allow you to ping the phones?

I did this and made me realize the problem only exist on my devices that are connected via ethernet cable.
I have a laptop that's when connected via wifi can ping my phones except my pc, and when connected via ethernet cable can no longer ping my phones and my pc.

Offline

#8 2024-06-12 11:49:57

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

Re: My pc can't ping devices on my lan

So your router will seperate the interfaces with an internal firewall (since they're in the same segment) and you'll have to check its configuration - this is nothing you can impact from any client host.

Offline

Board footer

Powered by FluxBB