Hopefully this is an easy one to answer, might be harder to change
I have wlan0 (client mode) and eth0.2 both connected to the same network
root@Nexx-LEDE:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.50.1 0.0.0.0 UG 0 0 0 wlan0 10.244.0.0 * 255.255.0.0 U 0 0 0 zt0 192.168.8.0 * 255.255.255.0 U 0 0 0 br-lan 192.168.50.0 * 255.255.255.0 U 0 0 0 eth0.2 192.168.50.0 * 255.255.255.0 U 0 0 0 wlan0 192.168.50.1 * 255.255.255.255 UH 0 0 0 wlan0 root@Nexx-LEDE:~#
On bootup, wlan0 always becomes the default gateway route-even if eth0.2 is connected.I would have thought that good old Ethernet would always be default (because wired is better than wireless?) Is this a design thing ?
I ask as I would like the eth0.2 to be the default route at boot-I have been playing about with
ip route del and add -but just wanted to ask if there is a "deep" command that will always prefer Ethernet as the default route.