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

Troubleshooting • Brand new pi and image - can't connect to gateway...

$
0
0
I'm replacing a raspberry pi zero w with a zero 2 w and I'm running into a very strange issue where I can't ping my gateway or external servers via ipv4. I am connecting to the zero from my Mac via SSH.

I used the Raspberry Pi Imager to create the SD card. The issue is present on first boot and subsequent reboots after config changes.

Device: Raspberry Pi Zero 2 W
OS: Raspberry Pi OS Light 64-bit 2024-07-04 (based on Debian Bookworm)
Problem: The Raspberry Pi can resolve DNS queries (using dig), but is unable to ping the default gateway (10.0.0.1) or external IPs like 8.8.8.8. issue persisted after switching to a static IP configuration. The network setup includes this Raspberry Pi on Wi-Fi (with IP 10.0.0.3) behind an OPNsense gateway, multiple wifi access points and other raspberry pi's that are working fine. There are no firewall rules specific to the pi and other devices are working fine. IPV6 connectivity is working fine on the pi.

Key Troubleshooting Steps

1. Checked Wi-Fi Status: The Pi is connected to Wi-Fi (wlan0), verified by SSH access and ip a output.
2. DHCP Conflicts: DHCP was still dynamically assigning an IP even after switching to a static configuration using systemd-networkd.
3. Routing Issues: Checked the routing table, but the default gateway (10.0.0.1) was unreachable, indicating a possible issue with routing or firewall rules, though the same gateway works fine for another device (MacBook used to connect to pi via ssh).
4. Firewall and Connectivity: There are no firewall rules blocking ICMP on the OPNsense gateway, and IPv6 connectivity seems fine (the Pi can resolve via DNS and reach IPv6 addresses).
5. Switching to Static IP: The system was getting a reserved IP address via DHCP but I have moved to static/manual config on device in order to rule out a DHCP issue.

Statistics: Posted by ojobson — Sat Sep 07, 2024 10:58 pm



Viewing all articles
Browse latest Browse all 3556

Trending Articles