Yes, it's not a permanent fix, just something to prove that setting a correct route/gateway works.You can put a temporary route in to test that it works withUse 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.Code:
sudo ip route add default via ROUTER_IP dev eth0
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.
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