Re: Q: multi-homed server with multiple default routers

From: RRG (rigoberto_at_sunguru.com)
Date: 05/19/03


Date: 19 May 2003 10:40:39 -0700

furufuru@ccsr.u-tokyo.ac.jp (Ryo Furue) wrote in message news:<e10cccdf.0305190524.62b26a1e@posting.google.com>...
> Darren Dunham <ddunham@redwood.taos.com> wrote in message news:<IDuxa.838$vX5.93232372@newssvr13.news.prodigy.com>...
> > Ryo Furue <furufuru@ccsr.u-tokyo.ac.jp> wrote:
> [...]
> > > When the Solaris machine sends a packet whose
> > > source address is "X.Y.Z.22", I want the packet to be
> > > sent to the router "X.Y.Z.1"; when the source address
> > > is "X.Y.Z.188", I want the packet to be sent to
> > > "X.Y.Z.129".
> >
> > This is "source based routing" or "policy routing". Solaris doesn't do
> > that. Instead only the destination address and routing table are used
> > to determine the interface and hardware destination.
> [...snip...]
>
> Thank you for the explanation, which was very clear!
>
> There's one thing I'd like to correct myself: In the first posting
> I said (or at least implied) that
>
> # route add 0.0.0.0 X.Y.Z.1 -ifp hme0
> # route add 0.0.0.0 X.Y.Z.129 -ifp hme1
>
> would enable source based routing. I was wrong. At first it seemed
> working: The machine grabbed X.Y.Z.129 as the router in responding to
> an incoming packet to the hme1 interface. But, then the machine didn't
> use X.Y.Z.1 even when responding to a packet for hme0....
>
> Anyhow, thank you again,
> Ryo

The standard is to define the routers in the /etc/gateways file.
The in.routed process reads the optional /etc/gateways file upon
initialization to add additional static routes. This is another way
to add a permanent (passive) route other than adding a default router.
It is also a method to add one or more permanent routes that are not
default routes. These are the fields in the /etc/gateways:
net dest.net gateway router metric cnt [passive] [active]
For example
net 128.50.3.0 gateway sword-r metric 2 passive

I hope this help you.
RRG - SCSA/SCNA



Relevant Pages

  • Re: Confusing Route issue.
    ... It seems you have indeed isolated the issue to an XP routing issue. ... The best workaround I can suggest is removing the static routes from all the ... create static routes on the corporate router to the other ... They are opening and saving CAD files from our customer. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Server 2003 RRAS Routing
    ... You simply enable IP routing in RRAS. ... That just enables the router. ... how do I enable Internet routing through RRAS? ... However, when any user attempts to connect to the VPN, they only get routes for the subnet local to the RRAS server. ...
    (microsoft.public.windows.server.networking)
  • Re: getting routes from internet facing routers
    ... Attacker can get the routing info by exploiting routing protocol in ... Just have a proper ACL on the router, ... seeing what private IP routes ... Securing Apache Web Server with thawte Digital Certificate ...
    (Security-Basics)
  • iptables and static routing..
    ... using iptables command. ... Note that if I turn the interface to the network down, ... but also sets unwanted/undesirable routing paths in the routing table. ... should not set the default routes in the first place. ...
    (Fedora)
  • Re: Two Routers VPN Community Wireless
    ... The routing table is standard with the primary gateway at 192.168.12.138. ... I think I have a understanding of how routes work from the PC but combine ... tables in the Router even come into play when the VPN tunnel is established? ... If it would help I can bring the actual routing table in tomorrow from home. ...
    (microsoft.public.windowsxp.network_web)