re: mysterious routes appearing

Iain Buchanan <[email protected]>
Newsgroups gmane.linux.redhat.release.psyche
Message-ID <1056499921.1944.6.camel@orpheus>
On Wed, 2003-06-25 at 05:44, Michael Weber wrote: 
> Are you running RIP or OSPF?

AFAIK, no!

>   How about a firewall?

Definately.  What effect might this have on routes appearing?

> If you reboot the machine how long does it take for the routes to show
> up?

I'm guessing as soon as eth0 comes up, although I could be wrong.  I
make this assumption because I fix the routes with route del... and then
as soon as I run ifdown eth0 and ifup eth0, the routes come back.

>   My network scripts are in /etc/rc[3,5].d/S10network.  Try creating
> a script the dumps the route table to a text file and put it in My
> network scripts are in /etc/rc[3,5].d/S11route-dump and see what it
> shows.

I had a look in here and the only place it seems to get routes from
(about line 146) is: 
# Add non interface-specific static-routes.
if [ -f /etc/sysconfig/static-routes ]; then
   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
             /sbin/route add -$args
   done
fi    

and yes, /etc/sysconfig/static-routes is empty!

> (Or just add the route -n > /var/log/route.dump command to your
> S10network file.)

Ok I tried this, but it didn't tell me much else.  At the beginning of
/etc/rc.d/init.d/S10network I put:
route -n > /var/log/pre-route.dump
which, after a reboot contains (as I expected):

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

and nothing else.  At the end I put:
route -n > /var/log/post-route.dump
which, after a reboot, contains (as I expected):

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
203.16.234.0    172.16.0.8      255.255.255.0   UG    0      0        0 eth0
172.16.0.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0
203.39.28.0     172.16.0.4      255.255.255.0   UG    0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         172.16.0.4      0.0.0.0         UG    0      0        0 eth0

Thanks for your help, now how would you analyze this?
-- 
Iain Buchanan <[email protected]>
Q:	What's the difference between USL and the Titanic?
A:	The Titanic had a band.
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA++OjRjKy7cKDHw6kRAmdPAJ9Ilz40n4zBZT3MPs3s5PUQc5CpJQCcDK0i
zKtrxjXXetfsw7Oe1wVIWY0=
=Meil
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.