Subject: routing weirdness
To: None <>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-net
Date: 11/21/1999 03:53:40
I'm seeing weird errors trying to add a route:

[Stone - root] 242> route add default
writing to routing socket: Network is unreachable
add net default: gateway Network is unreachable

This is weird because...

[Stone - root] 243> ifconfig tun0
tun0: flags=43<UP,BROADCAST,RUNNING> mtu 1000
	inet netmask 0xfffffffc broadcast

and "netstat -rn" prints, among others, a line

10.1.1/30                             U           0        0   1000  tun0

So the question is, what am I missing?  I've been trying to follow the
code paths, and so far haven't found any reason why this attempt would
fail.  For what it's worth, if I have "route monitor" running when I do
the "route add", I get

got message of size 112 on Sun Nov 21 03:46:04 1999
RTM_ADD: Add Route: len 112, pid: 3174, seq 1, errno 51, flags:<UP,GATEWAY,STATIC>
locks:  inits: 
 default default

I suppose I could just add debugging code all through the code path
followed by "route add", but that would be a mess, not to mention
rather tedious to do.

The kernel calls itself "1.4J"; it's built from the sup of 1999-08-13.
Could this plausibly be something that would be fixed by upgrading to
-current instead?  I'd rather avoid that if possible.  The hardware is
a SPARC IPX, not that I expect that to matter.  The only patch I have
that goes anywhere near routing code is a fix to ip_rtaddr (ip_input.c)
to keep it from cacheing stale routes indefinitely - and I don't think
ip_rtaddr is involved here.

					der Mouse

		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B