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

Route Table Question

 
   Macintosh computer (Home) -> System RSS
Related Topics:
Adding a Static Route in OS X - Hello all - Because of some weird issues, we need to add a static route to a couple of our iMacs that we use for With help from the man pages and some I was able to get the route..

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

network routes table? - I need to edit the file with network routes in MacOS X Server on Apple's XServe. Where do I find it? I can't find it.

Empty table cell behaviour with Safari - Most browsers I have used render the not just as an empty cell, but one with no border. If I want an empty cell with a border, using Netscape or IE, I do this: or
Next:  So what's the status of PowerPlant source now?  
Author Message
Tim Evans

External


Since: Jun 07, 2005
Posts: 2



(Msg. 1) Posted: Tue Jun 07, 2005 9:19 am
Post subject: Route Table Question
Archived from groups: comp>sys>mac>system (more info?)

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

 >> Stay informed about: Route Table Question 
Back to top
Login to vote
schreberdp

External


Since: Dec 10, 2004
Posts: 704



(Msg. 2) Posted: Tue Jun 07, 2005 9:19 am
Post subject: Re: Route Table Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-06-07, Tim Evans <tim.evans666.TakeThisOut@mac.com> wrote:
 > 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 ...


route add -host <host> <gateway>

or

route add -net <network> <gateway>

or the like, with a variety of options. See 'man route' for details.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Route Table Question 
Back to top
Login to vote
Barry Margolin

External


Since: Feb 18, 2004
Posts: 1406



(Msg. 3) Posted: Wed Jun 08, 2005 1:01 am
Post subject: Re: Route Table Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <3uqdndOyJPSFFTjfRVn-1w.TakeThisOut@comcast.com>,
D P Schreber <schreberdp.TakeThisOut@rayban.net> wrote:

 > On 2005-06-07, Tim Evans <tim.evans666.TakeThisOut@mac.com> wrote:
  > > 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 ...
 >
 >
 > route add -host <host> <gateway>
 >
 > or
 >
 > route add -net <network> <gateway>
 >
 > or the like, with a variety of options. See 'man route' for details.

I have a feeling what he really wanted to know was how to make it
permanent, i.e. have the route be installed every time he boots.

On most Unix systems this is done by adding to /etc/rc or /etc/init.d
scripts, but I don't think this is the preferred way in OS X.

--
Barry Margolin, barmar.TakeThisOut@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Route Table Question 
Back to top
Login to vote
Andre Berger

External


Since: Dec 16, 2003
Posts: 425



(Msg. 4) Posted: Wed Jun 08, 2005 3:55 am
Post subject: Re: Route Table Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

* Barry Margolin <barmar DeleteThis @alum.mit.edu>, 2005-06-08 07:01 +0200:
 > In article <3uqdndOyJPSFFTjfRVn-1w DeleteThis @comcast.com>,
 > D P Schreber <schreberdp DeleteThis @rayban.net> wrote:
 >
  > > On 2005-06-07, Tim Evans <tim.evans666 DeleteThis @mac.com> wrote:
   > > > 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 ...
  > >
  > >
  > > route add -host <host> <gateway>
  > >
  > > or
  > >
  > > route add -net <network> <gateway>
  > >
  > > or the like, with a variety of options. See 'man route' for details.
 >
 > I have a feeling what he really wanted to know was how to make it
 > permanent, i.e. have the route be installed every time he boots.
 >
 > On most Unix systems this is done by adding to /etc/rc or /etc/init.d
 > scripts, but I don't think this is the preferred way in OS X.

/etc/rc.local would be a better place I think.

-Andre<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Route Table Question 
Back to top
Login to vote
schreberdp

External


Since: Dec 10, 2004
Posts: 704



(Msg. 5) Posted: Wed Jun 08, 2005 6:07 am
Post subject: Re: Route Table Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-06-08, Barry Margolin <barmar.RemoveThis@alum.mit.edu> wrote:
 > I have a feeling what he really wanted to know was how to make it
 > permanent, i.e. have the route be installed every time he boots.

Your probably right, I hadn't considered that.

It's easy to put these commands in a StartupItem, which can be
configured to run after networking is up. A launchd plist file should
also work but I don't know how to control ordering with launchd.


 > On most Unix systems this is done by adding to /etc/rc or /etc/init.d
 > scripts, but I don't think this is the preferred way in OS X.

As I know you know, there are no init.d scripts in osx. StartupItems,
and now launchd, do more or less the equivalent (minus the 'runlevel'
notion).

There is an /etc/rc but this is definitely not supposed to be used for
site-specific configuration of this kind.

In linux, or at least in redhat, there are per-interface files
specifically for manipulating routes when an interface comes up or goes
down. There are also more general per-interface files for doing
whatever else you might want to do at these times (eg tweak a firewall).

Files like this are very useful but afaik osx doesn't support anything
equivalent except for ppp. In the latter case, /etc/ppp/ip-up will run
when a ppp connection is established. This is a useful place to put
extra routing. Similarly, ip-down will run when the connection is
ended. So says the man page anyway - I haven't run ppp in osx for a
long time so I don't know if these files are really used as described.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Route Table Question 
Back to top
Login to vote
Display posts from previous:   
   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 ]