Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 2003 21:18:11 +0000 (GMT)
From:      =?iso-8859-7?q?Dimitris=20Xochellis?= <jimxoch@yahoo.gr>
To:        Vince Hoffman <vince.hoffman@uk.circle.com>, freebsd-questions@freebsd.org
Subject:   Re: Routing problems
Message-ID:  <20031111211811.37033.qmail@web14002.mail.yahoo.com>
In-Reply-To: <026a01c3a886$78fff430$6b0e10ac@uk.circle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi List, hi Vince,

 --- Vince Hoffman <vince.hoffman@uk.circle.com>
wrote: 
> 
> ----- Original Message -----
> From: "Dimitris Xochellis" <jimxoch@yahoo.gr>
> To: <freebsd-questions@freebsd.org>
> Sent: Tuesday, November 11, 2003 6:43 PM
> Subject: Routing problems
> 
> 
> > Dear list members,
> >
> > I have two subnets (10.X.X.X and 193.X.X.X) on the
> > same physical network (ethernet). Subnet 10.X.X.X
> has
> > its own 10.R.R.R router, which is forwarding
> packets
> > to the internet (via DSL),  Subnet 193.X.X.X has
> also
> > its own 193.R.R.R router which is also forwarding
> > packets to the internet (via a very slow
> analogical
> > connection), The 193.R.R.R router is a
> FreeBSD(i386)
> > 4.7 - RELEASE box.
> >
> > What I need, is to forward some of the packets
> > (depending on the final destination) of the
> 193.X.X.X
> > subnet to the 10.R.R.R router via the 193.R.R.R
> > router.
> >
> > 193.X.X.X ---> 193.R.R.R ---> internet
> >                   |
> >                   v
> > 10.X.X.X ---> 10.R.R.R ---> internet
> >
> > I am using two ethernet cards on the 193.R.R.R and
> its
> > network configuration follows:
> >
> > network_interfaces="rl0 rl1 lo0"
> > ifconfig_rl0="inet 193.R.R.R  netmask
> 255.255.255.240"
> > ifconfig_rl1="inet 10.A.A.A  netmask
> 255.255.255.0"
> >
> > hostname="router.of.subnet"
> > defaultrouter="10.R.R.R"
> > gateway_enable="YES"
> >
> > The result is that the 193.R.R.R router can access
> > both subnets but cannot forward packet from the
> one to
> > the other. The situation does not get any better
> even
> > if I add the following lines:
> >
> > static_routes="adsl"
> > route_ adsl ="-net  target_subnet  10.R.R.R"
> >
> > In all cases we have static routes and routed is
> > disabled.
> >
> > My questions are:
> > 1) Is it appropriate/feasible to use routing in
> this
> > case, where we don't have physically separated
> > subnets? If not, what should be used instead?
> > 2) Any hints, corrections or pointers to the docs?
> >
> 
> I'm no routing guru but from the setup described the
> only host on the 10.X.X.X network
> that has a route to the 193.X.X.X network is the
> freebsd router (193.R.R.R and 10.A.A.A). 

That is correct.

> So either add a route on
> the adsl router something like
> route add -net 193.X.X.X  netmask 255.255.255.240
> 10.A.A.A
> or put a static route on each host on the 10.X.X.X
> network with 10.A.A.A as
> the default route for 193.R.R.R
> 

The 10.X.X.X subnet will never need to use any of the
services of the 193.X.X.X subnet or the 193.R.R.R
router. It will always access internet via its own
10.R.R.R router, which only routes packets towards the
internet and never towards the 193.X.X.X subnet. Thus,
what's the need to do any of the above? 

Please note that I am rather inexperienced in routing
and please forgive me if I make terrible mistakes. :-)

Thanks for the responce
Jim Xochellis


____________________________________________________________
Do You Yahoo!?
Αποκτήστε τη δωρεάν @yahoo.gr διεύθυνση σας στο http://www.otenet.gr



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031111211811.37033.qmail>