http://meinit.nl/add-permanent-static-route-mac-os-x
http://blog.irrashai.com/blog/2009/03/how-to-add-static-route-in-mac-os-x/
http://blog.irrashai.com/blog/2009/03/how-to-add-static-route-in-mac-os-x/
$ sudo mkdir /Library/StartupItems/AddRoute
# cd /Library/StartupItems/AddRoute
$ echo “{
Description = \”Add static routing tables\”;
Provides = (\”AddRoutes\”);
Requires = (\”Network\”);
OrderPreference = \”None\”;
}” > StartupParameters.plist
$ echo “#!/bin/sh
# Set up static routing tables
# Roark Holz, Thursday, April 6, 2006
. /etc/rc.common
StartService ()
{
ConsoleMessage “Adding Static Routing Tables”
sudo route add 10.0.0.0/8 192.168.200.15
}
StopService ()
{
return 0
}
RestartService ()
{
return 0
}
RunService “$1″” > AddRoutes
$ sudo chmod 755 AddRoutes