Defining a persistent static route on Mac OS X
- by Charles Duffy
How does one define a static route on MacOS X which persists through reboots? The only suggestion I've found on Google advises setting up a launchd service to run at boot, which seems like a horrible hack (does it survive a network restart without rebooting, for instance?)
To set up the route I need temporarily, I can run the following:
route add -net ${network} ${gateway} ${netmask}
How would I make this persist?