Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Apr 1997 20:03:37 +0900 (JST)
From:      nfung@typhoon.co.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/3210: routed having problems with /etc/gateways and netmasks
Message-ID:  <199704061103.UAA03922@rain.typhoon.co.jp>
Resent-Message-ID: <199704061110.EAA16318@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         3210
>Category:       bin
>Synopsis:       routed having problems with /etc/gateways, netmasks
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr  6 04:10:01 PDT 1997
>Last-Modified:
>Originator:     Nelson Fung
>Organization:
Typhoon Inc.
>Release:        FreeBSD 2.2.1-RELEASE i386
>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 .......

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704061103.UAA03922>