I am currently reviewing the priorities for wlan0 and eth0 in my KVM setup. The Ethernet cable is plugged into my MacBook via USB-C, and I plan to keep the MacBook in sleep mode while utilizing the Wake-on-LAN feature.
However, it seems that Ethernet has a higher priority in the routing table compared to the wireless LAN. While I understand that many users prefer Ethernet over wireless in most situations, I would like to know if it's possible to deprioritize Ethernet in the KVM configuration. I have already attempted to adjust the settings in the /etc/network/interfacesfile, but those changes haven’t had any effect.
Delete the wired router with higher priority,
such as ip route del default via 192.168.17.1 dev eth0
Add a new router to make wired route have lower priority
Such as ip route add default via 192.168.17.1 dev eth0 metric 2048
Enter /etc/init.d/S99gl_kvm_monitor start
Please note: The ip route add/del command is for the default route default via xxx dev eth0 , be careful not to delete it incorrectly, as this may result in loss of connectivity.
And this setup will not preserved after a device reboot.