In Ubuntu, I'm currently changing the metrics of these two interfaces manually:
$ sudo ifmetric wlan0 0
$ sudo ifmetric eth0 100
This works, but I need to accomplish this automatically on startup. ifmetric requires sudo, so I can't add a job with crontab. The command doesn't work after reboot.
I also tried editing /etc/rc.local with the above commands. This also doesn't work.