View Full Version : Persistant Static routes ?

10th August 2004, 11:57 AM
Hey all,

Im just wondering if anyone knows how to add static routes (that are persistant) in Mac OS X (Darwin). I want to add routes to my city wireless network (Air-Stream (http://www.air-stream.org) in Adelaide for those interested) on which gets passed to my wireless router All other traffic (default route) is for the internet gets passed to my adsl router at and my computer is on

I can add the route through terminal:

[Talietha:~] robin% su
[Talietha:~] root# route add -net
add net gateway

but as soon as I restart this route disappers (note if you want to look at the routes on Mac OS X you can use "netstat -r" ; this is the same as "route" on linux or "route print" on MS-DOS).

How do i make the route persistant? Looking up the opendarwin docs - they just refer you to the freebsd docs which tell you to add something to the rc.conf file - only problem is darwin doesn't have an /etc/rc.conf file - and the rc files that are there seem to be all scripts (not a real elegent place to add random commands). I figured since its a fairly basic thing that you would want to do with routing that there would be somewhere 'proper' to put the route - but I haven't had much luck in finding that place. Any help would be appreciated.



p.s. if anything needs further explaing tell me what you don't understand.

10th August 2004, 01:36 PM
I haven't tested it but this site gives some instructions on how to do it;