Welcome to MacTalk Australia

the largest Australian community for Apple discussions and topics

Join the discussions, Register Now!
Results 1 to 2 of 2
  1. #1


    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 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.

  2. #2


    I haven't tested it but this site gives some instructions on how to do it;


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts