Routing problems

Vince Hoffman vince.hoffman at uk.circle.com
Tue Nov 11 11:03:25 PST 2003


----- Original Message -----
From: "Dimitris Xochellis" <jimxoch at yahoo.gr>
To: <freebsd-questions at 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). 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

> Thanks in Advance
> Jim Xohellis
>
>
>
> ____________________________________________________________
> Do You Yahoo!?
> Αποκτήστε τη δωρεάν @yahoo.gr διεύθυνση σας στο http://www.otenet.gr
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"
>



More information about the freebsd-questions mailing list