How to add a persistent route in Sierra
Hi,
I need to add a persistent static route on my iMac running macOS Sierra but everything I tried failed so far:
- Using a LaunchAgent as explained here: https://www.jverdeyen.be/mac/persistent-static-routes-mac-os-x/
- Using a StartupItem as shown there: https://nellen.it/blog/2012/01/permanent-static-routes-for-mac-os-x/
What I want to do is to make sure all traffic to a specific subnet like 172.31.0.0/16 goes through the Ethernet connection when the default is the WiFi. And of course the configuration needs to remain after a machine reboot...
Any clue on how to do that on Sierra?
Cedric
iMac, macOS Sierra (10.12.3)