Change eth0 priority for RM10

Hello,

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.

Thank you for your help!

Hi, you can use below methods to setup.

  1. Enter /etc/init.d/S99gl_kvm_monitor stop
  2. Use ip r s to see the IP route.
  3. Delete the wired router with higher priority,
    such as ip route del default via 192.168.17.1 dev eth0
  4. 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
  5. 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.

Hi Kyrie,

It works but it’s very finicky. Is there a way to make it permanent?

You can write a script to make those commands run at every reboot.