Problems with route

Problems with route

Post by Chuck Matte » Wed, 08 Mar 1995 17:51:49



I'm running linux 1.1.95 with net tools 1.1.95 and am experiencing
some trouble with routing.  I use ppp 2.1.2a to connect to my ISP and
set up a default route to them while ppp is up, however it seems that
any reference to any host (even on my local ethernet) goes through the
ppp link (I can see the RD/SD lights on the modem flicker, this is
further supported by the fact that if the default route stays up after
ppp goes down any network activity to or from the gateway machine bogs
down massively.  this is fixed as soon as the default route is
deleted.  I have a route to my local subnet  which is set up in
rc.inet1:

/sbin/route add -net 168.121.255.64 netmask 255.255.255.248

When the ppp link is down my netstat -nr comes back like this:

ronin:/usr/sbin# netstat -nr
Kernel routing table
Destination     Gateway         Genmask         Flags Metric Ref Use    Iface
168.121.255.64  0.0.0.0         255.255.255.248 U     0      0    15350 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0     3730 lo

and like this when the the link is up:

ronin:/usr/sbin# netstat -nr
Kernel routing table
Destination     Gateway         Genmask         Flags Metric Ref Use    Iface
168.121.17.177  0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
168.121.255.64  0.0.0.0         255.255.255.248 U     0      0    20926 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0     3762 lo
0.0.0.0         168.121.17.177  0.0.0.0         UG    0      0        5 ppp0

Now I can see clearly why packets to my subnet are trying to go to my
ISP but I am at a loss as to how to prevent this condition, I thought
that by setting up a route to the local subnet that it would override
the default and all of my docs say that it should but but I can't seem
to convince the software that this is the case.  It looks to my
gateway should have a value other than 0.0.0.0 but I have not been
able to hardwire this in.

This has only become a concern as I am trying to set up diald and I am
setting the proxy up as the default route.  To my thinking I should be
able to set up a local subnet that would handle all local traffic and
only route to the proxy (and thus fire up ppp) when the address
referenced is NOT on the local subnet.  However any network activity
on my current config  causes diald to start dialing and the process
that triggered the dialing simply hangs waiting to a reply via the
default route which has yet to be established.

Sorry if this is a bit wordy but, at least to me, it seems just a bit
complicated.  Any help would be greatly appreciated.

Regards,
Chuck

--
-------------------------------------------------------------------------------
|Chuck Mattern            | "That which does not kill us, makes us stronger.."|

-------------------------------------------------------------------------------

 
 
 

Problems with route

Post by Chuck Matte » Tue, 14 Mar 1995 06:32:47


Please disregard my previous post re: Problems with route, as usual it
was a problem, not with the software, but with the sysadmin (me).  I
had erroneously set up resolv.conf and host.conf to look at bind then
hosts so ANY reference to a NAME rather than an address caused the
name server to fire up.  Thanks to those who pointed me in the right
direction.
--
-------------------------------------------------------------------------------
|Chuck Mattern            | "That which does not kill us, makes us stronger.."|

-------------------------------------------------------------------------------