Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

arveknudsen

macrumors newbie
Original poster
Jan 7, 2008
3
0
How do you save changes when you make manual changes to OSX’s routing tables?
I have been adding neccesary network routes (with the terminal command line) and changing the default gateways, but whenever the machine is rebooted it loses all this info...
Any ideas?
 
You mean the "route add -net.."?

You know, I have run into this some time ago. I think the quickest way I fixed it was to put it into a script and made it a launch item...

EDIT: similar to the post above.. :-/
 
But then the user need to type the root password when the script execute. I can not give the root password to the users.
 
This is for Tiger... not sure if it will work in Leopard:

http://www.webboise.com/persistent-ip-routes-in-mac-os-x-tiger/

It should work in Leopard as well since this is core Unix stuff.

Also, on that same web page is another link (under Responses, from Rick - the second one down) to download an archive with the two example files (archive is called PersistentRoutes.zip and contains the unix script PersistentRoutes and the .plist file). The link is in his response "here" marked in red.
 
Just put this into /etc/rc.local:

/sbin/route add -net <network> <gateway>

It will run as root on startup, no need for the user to enter password
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.