Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Adding a Static Route in OS X

 
   Macintosh computer (Home) -> System RSS
Next:  WTD: Apple Quicktake 2.0 software  
Author Message
Mike Simone

External


Since: Mar 04, 2004
Posts: 10



(Msg. 1) Posted: Tue Aug 10, 2004 2:05 pm
Post subject: Adding a Static Route in OS X
Archived from groups: comp>sys>mac>system (more info?)

Hello all -

Because of some weird network-in-transition issues, we need to add a
persistent static route to a couple of our iMacs that we use for
videoconferencing. With help from the man pages and some
trial-and-error, I was able to get the route added and ping from the
branch office iMac (on 192.168.x.x) to the home office computers on
(10.x.x.x) over our circuit between the offices. Unfortunately, the
route is not persistent, so on reboot it seems to disappear.

I think I need to use a switch in the route command to make the route
persistent, but I couldn't find such a switch in the man pages.
Failing that, I'd like to be able to have the system load the route
command as a Startup Item or something similar. Is there a way to do
both/either of these?

Sincerely,

Mike Simone

 >> Stay informed about: Adding a Static Route in OS X 
Back to top
Login to vote
Kyle Jones

External


Since: Jun 12, 2004
Posts: 231



(Msg. 2) Posted: Tue Aug 10, 2004 5:54 pm
Post subject: Re: Adding a Static Route in OS X [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike Simone <msimone69 RemoveThis @hotmail.com> wrote:
  > Because of some weird network-in-transition issues, we need to add a
  > persistent static route to a couple of our iMacs that we use for
  > videoconferencing. With help from the man pages and some
  > trial-and-error, I was able to get the route added and ping from the
  > branch office iMac (on 192.168.x.x) to the home office computers on
  > (10.x.x.x) over our circuit between the offices. Unfortunately, the
  > route is not persistent, so on reboot it seems to disappear.
  >
  > I think I need to use a switch in the route command to make the route
  > persistent, but I couldn't find such a switch in the man pages.
  > Failing that, I'd like to be able to have the system load the route
  > command as a Startup Item or something similar. Is there a way to do
  > both/either of these?

I think the simplest way is to add the route command to /etc/rc,
near the end, just before the "exit 0" line. Be careful editing
this file because if you screw it up, your Mac may not boot
beyond single-user mode anymore.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Adding a Static Route in OS X 
Back to top
Login to vote
Bob Harris

External


Since: Nov 14, 2003
Posts: 495



(Msg. 3) Posted: Tue Aug 10, 2004 8:54 pm
Post subject: Re: Adding a Static Route in OS X [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <152bbdf6.0408101205.1c27fe57.RemoveThis@posting.google.com>,
msimone69.RemoveThis@hotmail.com (Mike Simone) wrote:

 > Hello all -
 >
 > Because of some weird network-in-transition issues, we need to add a
 > persistent static route to a couple of our iMacs that we use for
 > videoconferencing. With help from the man pages and some
 > trial-and-error, I was able to get the route added and ping from the
 > branch office iMac (on 192.168.x.x) to the home office computers on
 > (10.x.x.x) over our circuit between the offices. Unfortunately, the
 > route is not persistent, so on reboot it seems to disappear.
 >
 > I think I need to use a switch in the route command to make the route
 > persistent, but I couldn't find such a switch in the man pages.
 > Failing that, I'd like to be able to have the system load the route
 > command as a Startup Item or something similar. Is there a way to do
 > both/either of these?
 >
 > Sincerely,
 >
 > Mike Simone

You could look at creating a /Library/StartupItems entry. The best
place to look for examples would be <a style='text-decoration: underline;' href="http://macosxhints.com" target="_blank">http://macosxhints.com</a>

Bob Harris<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Adding a Static Route in OS X 
Back to top
Login to vote
Bob Harris

External


Since: Nov 14, 2003
Posts: 495



(Msg. 4) Posted: Tue Aug 10, 2004 8:54 pm
Post subject: Re: Adding a Static Route in OS X [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <152bbdf6.0408101205.1c27fe57.TakeThisOut@posting.google.com>,
msimone69.TakeThisOut@hotmail.com (Mike Simone) wrote:

 > Hello all -
 >
 > Because of some weird network-in-transition issues, we need to add a
 > persistent static route to a couple of our iMacs that we use for
 > videoconferencing. With help from the man pages and some
 > trial-and-error, I was able to get the route added and ping from the
 > branch office iMac (on 192.168.x.x) to the home office computers on
 > (10.x.x.x) over our circuit between the offices. Unfortunately, the
 > route is not persistent, so on reboot it seems to disappear.
 >
 > I think I need to use a switch in the route command to make the route
 > persistent, but I couldn't find such a switch in the man pages.
 > Failing that, I'd like to be able to have the system load the route
 > command as a Startup Item or something similar. Is there a way to do
 > both/either of these?
 >
 > Sincerely,
 >
 > Mike Simone

Have you looked at the routed man page

man routed

and specifically the /etc/gateways portion of the man page. That might
be what you are looking for.

NOTE: I have never done this, so I'm just guessing based on a brief
read of the routed man page.

Bob Harris<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Adding a Static Route in OS X 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Route Table Question - Could be really thick here, but anyone know how I can manualy add a route to the OSX route table. I seem to be hitting dead ends here ... Many thanks Tim

Relatively simply to route Airport to Ethernet on G5? - If I have an airport or wifi card in a Power Mac G5 (single CPU), can I connect a hub or other computer to the G5's ethernet port and get the wifi and ethernet to pass traffic to each other?

Help needed setting up OpenVPN to route web traffic - I'm playing around with OpenVPN on my iBook (client) and iMac G5 (server @ home) hoping to be able to (a) mount my home disk on my iBook when I'm on the road and (b) securely browse the web by having the web traffic on the iBook routed through the vpn. ...

Free static IP - The other day at work I was surprised to find out that with my new job I also get a free static IP & cable router. I have since rebuilt my entire home network to make way for some changes. Currently the setup is as follows: Ambit 2000 cable router ...

Static Routes on OS X - Hello all - We have a couple of iMacs that we use for videoconferencing in separate offices. There is a private circuit between them, but we had to add static routes between the machines because of some network-in-transition issues so they can see eac...
   Macintosh computer (Home) -> System All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]