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

Troubleshooting • Re: No Internet connection with ethernet cable plugged in

$
0
0
You can put a temporary route in to test that it works with

Code:

sudo ip route add default via ROUTER_IP dev eth0
Use the actual IP address of the router instead of ROUTER_IP. Then you should be able to ping 8.8.8.8 and everything will work until you reboot.

This seems to be working, but the internet connection keeps disconnecting. It would be working for like 2 hours, but then all of a sudden, it just stops and I need to type in that command again. The PI doesn't reboot, so idk why it does that.
Yes, it's not a permanent fix, just something to prove that setting a correct route/gateway works.

It'll get overridden by whatever is providing the IP address, as that should also provide a gateway address.

Statistics: Posted by rpdom — Fri Nov 22, 2024 4:06 pm



Viewing all articles
Browse latest Browse all 8035

Trending Articles