Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3956

Troubleshooting • One Raspberry pi can ping another but not the reverse

$
0
0
I have several raspberry pi 5's that I am currently trying to set up in a cluster. I have set an eth0 fixed IP address in the /etc/dhcpcd.conf files. They are connected via an unmanged switch
The dhcpcd.conf files are as follows:

Code:

interface eth0static ip_address=10.0.0.100/24static routers=10.0.0.1static domain_name_servers=10.0.0.1
and

Code:

interface eth0static ip_address=10.0.0.101/24static routers=10.0.0.1static domain_name_servers=10.0.0.1
When I do ifconfig I get

Code:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500        inet6 fe80::17ea:5b64:450f:61d4  prefixlen 64  scopeid 0x20<link>        ether 2c:cf:67:38:94:a8  txqueuelen 1000  (Ethernet)        RX packets 42  bytes 8964 (8.7 KiB)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 124  bytes 20226 (19.7 KiB)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0        device interrupt 106  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 1000  (Local Loopback)        RX packets 98  bytes 8640 (8.4 KiB)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 98  bytes 8640 (8.4 KiB)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500        inet 192.168.0.120  netmask 255.255.255.0  broadcast 192.168.0.255        inet6 fe80::8658:6e78:bbbe:afe8  prefixlen 64  scopeid 0x20<link>        ether 2c:cf:67:38:94:a9  txqueuelen 1000  (Ethernet)        RX packets 168  bytes 19844 (19.3 KiB)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 172  bytes 21431 (20.9 KiB)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
and

Code:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500        ether 2c:cf:67:38:95:2a  txqueuelen 1000  (Ethernet)        RX packets 147  bytes 36735 (35.8 KiB)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 335  bytes 54277 (53.0 KiB)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0        device interrupt 106  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 1000  (Local Loopback)        RX packets 101  bytes 8859 (8.6 KiB)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 101  bytes 8859 (8.6 KiB)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500        inet 192.168.0.121  netmask 255.255.255.0  broadcast 192.168.0.255        inet6 fe80::659b:8d97:9277:9875  prefixlen 64  scopeid 0x20<link>        ether 2c:cf:67:38:95:2b  txqueuelen 1000  (Ethernet)        RX packets 618  bytes 73380 (71.6 KiB)        RX errors 0  dropped 3  overruns 0  frame 0        TX packets 282  bytes 31712 (30.9 KiB)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
For some reason in both cases eth0 does not show the IP address

when I ping from 10.0.0.100 to 10.0.0.101 I get

Code:

user@freya00:~ $ ping 10.0.0.101PING 10.0.0.101 (10.0.0.101) 56(84) bytes of data.^C--- 10.0.0.101 ping statistics ---6 packets transmitted, 0 received, 100% packet loss, time 5100ms
and the reverse I get:

Code:

user@freya01:~ $ ping 10.0.0.100PING 10.0.0.100 (10.0.0.100) 56(84) bytes of data.64 bytes from 10.0.0.100: icmp_seq=1 ttl=252 time=7.31 ms64 bytes from 10.0.0.100: icmp_seq=2 ttl=252 time=8.89 ms64 bytes from 10.0.0.100: icmp_seq=3 ttl=252 time=19.3 ms64 bytes from 10.0.0.100: icmp_seq=4 ttl=252 time=7.55 ms^C--- 10.0.0.100 ping statistics ---4 packets transmitted, 4 received, 0% packet loss, time 3005msrtt min/avg/max/mdev = 7.314/10.769/19.316/4.971 ms
Note that 10.0.0.101 cannot ping itself but 10.0.0.100 can.
Note also that in network connections, Ethernet Wired Connection 1 has last used as Never.
This leads me to think that there is some configuration issue that I am not aware of.
Any help greatly appreciated.

Statistics: Posted by Solcat — Sun Jul 07, 2024 4:30 am



Viewing all articles
Browse latest Browse all 3956

Trending Articles