Defining a persistent static route on Mac OS X
Posted
by Charles Duffy
on Server Fault
See other posts from Server Fault
or by Charles Duffy
Published on 2010-03-22T14:20:17Z
Indexed on
2010/03/22
14:21 UTC
Read the original article
Hit count: 256
macosx
|networking
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?
© Server Fault or respective owner