I connect to the RPi via SSH from local network. Local network does not have Internet access.
Wi-Fi has Internet access and I would like to prefer wlan0 for Internet over eth0.
I tried adding the default route via wlan0 but I lost SSH connection to the RPi and could not connect again until reboot.
Also tried changing the metric of wlan0 to a lower value than eth0, same issue lost SSH cannot connect again.
Below is the default routing table.
Thanks for any help in advance.
Code: Select all
[email protected]:~ $ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 10.31.7.62 0.0.0.0 UG 202 0 0 eth0 default 10.128.128.128 0.0.0.0 UG 303 0 0 wlan0 10.0.0.0 0.0.0.0 255.0.0.0 U 303 0 0 wlan0 10.31.7.56 0.0.0.0 255.255.255.248 U 202 0 0 eth0