You now have to make it persistent. For some reason your DHCP server (router?) failed to give you a valid route to the gateway. Investigate that first. If no luck with that and in last resort, consider giving your RPi a static address in the
/etc/network/interfaces file. For example:
Code: Select all
iface eth0 inet static
address 192.168.0.205
netmask 255.255.255.0
gateway 192.168.0.200
If you prefer to configure your network interfaces in DHCP and you could not find out why the DHCP failed to send a valid route, you can try this trick
Code: Select all
iface eth0 inet dhcp
post-up ip route add default via 192.168.0.200 || true
The conditional
|| true is there to prevent the ifup command that reads the interfaces file to stall if the post-up stanza fail for some reason.