From andreww@vhf.dataradio.com  Thu Dec  7 12:31:01 1995
Received: from vhf.dataradio.com (G496.InterLink.NET [198.168.61.62])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA15164
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 7 Dec 1995 12:30:58 -0800 (PST)
Received: (from andreww@localhost) by vhf.dataradio.com (8.6.12/8.6.12) id PAA01435; Thu, 7 Dec 1995 15:30:34 -0500
Message-Id: <199512072030.PAA01435@vhf.dataradio.com>
Date: Thu, 7 Dec 1995 15:30:34 -0500
From: Andrew Webster <andreww@vhf.dataradio.com>
Reply-To: andreww@vhf.dataradio.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Invalid route to remote network
X-Send-Pr-Version: 3.2

>Number:         873
>Category:       bin
>Synopsis:       Invalid route to remote network
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    fenner
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec  7 12:40:05 PST 1995
>Closed-Date:    Thu Sep 26 10:14:39 PDT 1996
>Last-Modified:  Thu Sep 26 10:15:11 PDT 1996
>Originator:     Andrew Webster
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
-----
Andrew Webster          DATARADIO, Inc.
Network Manager         http://www.dataradio.com
Special Projects        awebster@dataradio.com 
>Environment:

	FreeBSD 2.1.0-RELEASE
		System: 486 DX/2 66, 24MB RAM, SMC 8013.
		ed0: IP = 198.168.41.2	 	 netmask 255.255.255.0
			alias 198.168.41.55	 netmask 255.255.255.255
			alias 198.168.36.2	 netmask 255.255.255.0
			alias 198.168.36.55	 netmask 255.255.255.255

		tun0: IP = 198.168.61.62 -> 198.168.61.61

>Description:

On bootup, iijppp is started in -auto mode to initiate ppp connection over
tun0 device, default route to 198.168.61.61 is established by iijppp

Routed is started in -q mode.  A netware fileserver is broadcasting RIP for 
198.168.37.0 recahable through 198.168.36.99 and
198.168.38.0 recahable through 198.168.36.99. 

When I attempt to traceroute to 198.168.54.8 (ns.rezonet.net) a host 
outside our domain.  One of two things will happend:

1. If routed -q is running, I get this result:
   55 [vhf:/home/andreww] : traceroute 198.168.54.8
   traceroute to 198.168.54.8 (198.168.54.8), 30 hops max, 40 byte packets
    1  fs (198.168.36.99)  2.483 ms !H  1.111 ms !H  0.964 ms !H

   Netstat -rna produces (other stuff removed):
default          198.168.61.61      UGc        20        3      tun0  

2. If routed is NOT running, I get this result:
   52 [vhf:/home/andreww] : traceroute ns.rezonet.net
   traceroute to ns.rezonet.net (198.168.54.8), 30 hops max, 40 byte packets
    1  S496.InterLink.NET (198.168.61.61)  226.432 ms  191.383 ms  198.247 ms
    2  MIX.NET (198.168.73.2)  197.366 ms  205.749 ms  168.272 ms
    3  ns.RezoNet.NET (198.168.54.8)  197.555 ms  205.701 ms  198.371 ms   

   Netstat -rna produces (other stuff removed):
198.168.54.8     198.168.61.61      UGHW        2       69      tun0  

I've put a protocol tracer on both the ppp link and our internal 
networks and there are no RIP packets with any information that could 
cause this erratic behaviour.  Fileserver and ppp link are clean.  
Fileserver's RIP packets are okay.


>How-To-Repeat:

As long as routed -q is run on bootup this happends.

>Fix:

Don't run routed -q, use static routes.
Routing information corrupted by routed?

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->wollman 
Responsible-Changed-By: pst 
Responsible-Changed-When: Wed Feb 7 16:53:43 PST 1996 
Responsible-Changed-Why:  
State-Changed-From-To: open->feedback 
State-Changed-By: fenner 
State-Changed-When: Wed Feb 7 21:03:58 PST 1996 
State-Changed-Why:  
"routed" could install completely bogus netmasks, which could 
potentially cause behavior like this.  Could you try the routed 
from FreeBSD-stable (just get src/usr.sbin/routed/inet.c and 
rebuild) and see if the symptoms change? 


Responsible-Changed-From-To: wollman->fenner 
Responsible-Changed-By: fenner 
Responsible-Changed-When: Wed Feb 7 21:03:58 PST 1996 
Responsible-Changed-Why:  
fenner recently fixed routed netmask stuff 

From: Bill Fenner <fenner>
To: andreww@vhf.dataradio.com, FreeBSD-gnats-submit@freebsd.org
Cc:  Subject: bin/873: Invalid route to remote network
Date: Thu, 4 Apr 1996 08:22:46 -0800 (PST)

 Andrew,
 
   Would you mind giving the routed from -stable a try?  You can just grab
 ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-stable/src/usr.sbin/routed/inet.c
 and rebuild your routed.  I fixed a problem which almost definitely caused
 what you were seeing.
 
   If you tried this and replied to me already, sorry for having lost your
 reply & could you send it again?
 
 Thanks,
   Bill
State-Changed-From-To: feedback->closed 
State-Changed-By: fenner 
State-Changed-When: Thu Sep 26 10:14:39 PDT 1996 
State-Changed-Why:  
Closed after 7 months of no feedback. 
>Unformatted:
