From Nelson.Fung@typhoon.co.jp  Sun Apr  6 04:03:42 1997
Received: from rain.typhoon.co.jp (rain.typhoon.co.jp [202.33.21.41])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA16038
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 6 Apr 1997 04:03:41 -0700 (PDT)
Received: (from root@localhost)
	by rain.typhoon.co.jp (8.8.5/8.8.5/TIS) id UAA03922;
	Sun, 6 Apr 1997 20:03:37 +0900 (JST)
Message-Id: <199704061103.UAA03922@rain.typhoon.co.jp>
Date: Sun, 6 Apr 1997 20:03:37 +0900 (JST)
From: nfung@typhoon.co.jp
Reply-To: nfung@typhoon.co.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: routed having problems with /etc/gateways and netmasks
X-Send-Pr-Version: 3.2

>Number:         3210
>Category:       bin
>Synopsis:       routed having problems with /etc/gateways, netmasks
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    fenner
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr  6 04:10:01 PDT 1997
>Closed-Date:    Sat Aug 23 16:20:19 MEST 1997
>Last-Modified:  Sat Aug 23 16:21:11 MEST 1997
>Originator:     Nelson Fung
>Release:        FreeBSD 2.2.1-RELEASE i386
>Organization:
Typhoon Inc.
>Environment:

FreeBSD xxx.com 2.2.1-RELEASE FreeBSD 2.2.1-RELEASE #0: Sun Apr  6 16:52:27 JST 1997     nfung@xxx.com:/usr/src/sys/compile/FTT  i386

>Description:

I have a dual-homed PC running 2.2.1-RELEASE.  We have split our c-class
network with a netmask of 255.255.255.224.

The dual-homed PC has IP addresses of 192.168.11.61 and 191.168.11.129.  Its
/etc/gateways file has the following line:

   net 192.168.11.96/27 gateway 192.168.11.44 metric 1 passive

When routed starts, it would complain that:

   routed[327]: bad net "192.168.11.96/27" in /etc/gateways entry "net
   192.168.11.96/27 gateway 192.168.11.44 metric 1 passive"

If I change /etc/gateways to say:

   net 192.168.11.96 gateway 192.168.11.44 metric 1 passive

routed, when started, would then complain:

   /kernel: arp_rtrequest: bad gateway value

And a netstat -rn then would show:

Destination        Gateway            Flags     Refs     Use     Netif
192.168.11.44      96.11.168.192      UH          0        0     ed1
                   ^^^^^^^^^^^^^
                   |||||||||||||


>How-To-Repeat:

try to add network (with netmasks), gateways via /etc/gateways 
and restart routed.

>Fix:

   gateways have to be added manually doing a: 
   
      route add -net ..... gateway .... metric n passiave -netmask .......

>Release-Note:
>Audit-Trail:

From: Bill Fenner <fenner@parc.xerox.com>
To: freebsd-gnats-submit@freebsd.org, nfung@typhoon.co.jp
Cc:  Subject: Re: bin/3210: routed having problems with /etc/gateways, netmasks
Date: Tue, 6 May 1997 00:08:19 PDT

 Could you try the routed from -current?  It has several
 byte-order related bug fixes over what went out in 2.2.1 .
 
 Thanks,
   Bill

From: N Fung <nfung@typhoon.co.jp>
To: Bill Fenner <fenner@parc.xerox.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/3210: routed having problems with /etc/gateways, netmasks
Date: Thu, 10 Jul 1997 19:46:05 +0900 (JST)

 Hi Bill,
 
 On Tue, 6 May 1997, Bill Fenner wrote:
 
 >Could you try the routed from -current?  It has several
 >byte-order related bug fixes over what went out in 2.2.1 .
 >
 
 I've just installed 2.2.2-RELEASE and I have still have the exact same
 problems.  Any idea when this will be fixed?  Many Thanks. 
 
 Regards,
 Nelson 
 
 
 
 

From: Bill Fenner <fenner@parc.xerox.com>
To: N Fung <nfung@typhoon.co.jp>
Cc: Bill Fenner <fenner@parc.xerox.com>, freebsd-gnats-submit@freebsd.org
Subject: Re: bin/3210: routed having problems with /etc/gateways, netmasks 
Date: Thu, 10 Jul 1997 08:43:38 PDT

 N Fung <nfung@typhoon.co.jp> wrote:
 >On Tue, 6 May 1997, Bill Fenner wrote:
 >>Could you try the routed from -current?
 >
 >I've just installed 2.2.2-RELEASE and I have still have the exact same
 >problems.  Any idea when this will be fixed?  Many Thanks. 
 
 Please grab
 ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/sbin/routed.tar.gz
 
 and try it.
 
   Bill
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sat Aug 23 16:20:19 MEST 1997 
State-Changed-Why:  

The version of routed(8) is now even updated in 2.2-stable.  Please 
see whether this has fixed your problems. 


Responsible-Changed-From-To: freebsd-bugs->fenner 
Responsible-Changed-By: joerg 
Responsible-Changed-When: Sat Aug 23 16:20:19 MEST 1997 
Responsible-Changed-Why:  
Bill's area (even though he's absent right now :). 
>Unformatted:
