When I try to access the internet with my raspberry pi via ethernet, it works, but when I do ifdown eth0 and try to ping any server outside my home network, it tells me  connect: Network is unreachableOutput of route -n (with eth0 enabled):   Kernel IP routing tableDestination     Gateway         Genmask         Flags Metric Ref    Use Iface0.0.0.0         192.168.178.1   0.0.0.0         UG    0      0        0 eth0192.168.178.0   0.0.0.0         255.255.255.0   U     0      0        0 wlan0192.168.178.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0Output of route -n (with eth0 disabled):  Kernel IP routing tableDestination     Gateway         Genmask         Flags Metric Ref    Use Iface192.168.178.0   0.0.0.0         255.255.255.0   U     0      0        0 wlan0It looks like the gateway is only configured for eth0 and not for my wireless adapter.I looked on the internet and got it to work by typing sudo route add default gw 192.168.178.1, but I'd say typing that every time after rebooting gets a little annoying.How would I do this every startup / how do I correctly set the gateway? (/etc/rc.local doesn't work)
Routing tables with two network interfaces
linux;networking;ip;routing
Alright, I finally got it fixed just by addingup route add default gw 192.168.178.1 wlan0below my configuration for wlan0 in /etc/network/interfaces, and it's working (at least until now...).