Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 1996 11:34:13 -0800 (PST)
From:      "Jin Guojun[ITG]" <jin@iss-p1.lbl.gov>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/2258: route add/delete [network] xxx.yyy.zzz.0 my-IP
Message-ID:  <199612201934.LAA02356@iss-p1.lbl.gov>
Resent-Message-ID: <199612201940.LAA05041@freefall.freebsd.org>

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

>Number:         2258
>Category:       bin
>Synopsis:       route add/delete [network] xxx.yyy.zzz.0 my-IP
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 20 11:40:01 PST 1996
>Last-Modified:
>Originator:     Jin Guojun[ITG]
>Organization:
>Release:        FreeBSD 2.2-ALPHA i386
>Environment:

	2.2-ALPHA on pentium with 3C509B ethernet cards

>Description:

	correct route add/delete command in 2.1.6

# route add 204.62.155.4 ir50gw 1
old usage of trailing digit, assuming route via gateway
add host 204.62.155.4: gateway ir50gw
# netstat -r
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            ir40gw             UGSc        4        1       ep0
localhost          localhost          UH          1       22       lo0
131.243.2/24       link#2             UC          0        0 
ir40gw             aa:0:4:0:86:a5     UHLW        3        0       ep0   1085
... all same as before (omitted)
204.62.155.4       ir50gw             UGHS        0        0       ep0

3# route delete 204.62.155.4       ir50gw
delete host 204.62.155.4: gateway ir50gw
iss-p3# netstat -r
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            ir40gw             UGSc        3        1       ep0
localhost          localhost          UH          1       22       lo0
131.243.2/24       link#2             UC          0        0 
ir40gw             aa:0:4:0:86:a5     UHLW        3        0       ep0    641
... all same as before (omitted)

********=================************

	wrong route add/delete command in 2.2-Alpha

# netstat -r
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            ir50gw             UGSc        6       68       ep0
localhost          localhost          UH          1       10       lo0
128.3.196/22       link#2             UC          0        0 
ir50gw             0:60:3e:52:6c:83   UHLW        6        0       ep0   1177
iss-p2             0:20:af:ec:32:62   UHLW        1       26       lo0
portnoy-2          8:0:20:80:19:b9    UHLW        8      124       ep0    582
george             8:0:20:1c:7:f5     UHLW        9       90       ep0    816
gracie             8:0:20:7f:15:a1    UHLW        3      227       ep0   1191
128.3.199.255      ff:ff:ff:ff:ff:ff  UHLWb       0        1       ep0
204.62.155         link#6             UC          0        0 
# route add 198.207.143.0 204.62.155.50 1
add net 198.207.143.0: gateway 204.62.155.50
# netstat -r
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
^C		(hanging)
# netstat -rn
Routing tables
		**** add wrong information into routing table *****
Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            204.62.155.50      UGSc        1        0    znatm0 =>
default            128.3.196.10       UGSc        5       68       ep0
127.0.0.1          127.0.0.1          UH          1       10       lo0
128.3.196/22       link#2             UC          0        0 
128.3.196.10       0:60:3e:52:6c:83   UHLW        5        0       ep0   1168
128.3.196.71       0:20:af:ec:32:62   UHLW        1       26       lo0
128.3.196.85       8:0:20:80:19:b9    UHLW        8      124       ep0    495
128.3.196.93       8:0:20:1c:7:f5     UHLW        9       91       ep0    729
128.3.196.175      8:0:20:7f:15:a1    UHLW        3      430       ep0   1104
128.3.199.255      ff:ff:ff:ff:ff:ff  UHLWb       0        1       ep0
204.62.155         link#6             UC          0        0 
204.62.155.50      0:0:cc:3e:9b:32    UHLW        2        0       lo0
# route delete default            204.62.155.50
delete net default: gateway 204.62.155.50
# netstat -rn
Routing tables
	***** delete wrong router or had wrong info. in the routing table *****
Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            204.62.155.50      UGSc        1        0    znatm0
127.0.0.1          127.0.0.1          UH          1       10       lo0
128.3.196/22       link#2             UC          0        0 
128.3.196.10       0:60:3e:52:6c:83   UHLW        0        0       ep0   1200
128.3.196.71       0:20:af:ec:32:62   UHLW        1       26       lo0
128.3.196.85       8:0:20:80:19:b9    UHLW        8      124       ep0    421
128.3.196.93       8:0:20:1c:7:f5     UHLW        9       93       ep0    655
128.3.196.175      8:0:20:7f:15:a1    UHLW        3      572       ep0   1030
128.3.199.255      ff:ff:ff:ff:ff:ff  UHLWb       0        1       ep0
204.62.155         link#6             UC          0        0 
204.62.155.50      0:0:cc:3e:9b:32    UHLW        2        0       lo0
# route delete default            204.62.155.50
writing to routing socket: No such process
delete net default: gateway 204.62.155.50: not in table
# # Dec 20 11:28:08 iss-p2 xntpd[98]: sendto(131.243.2.75): No route to host
Dec 20 11:28:08 iss-p2 xntpd[98]: sendto(131.243.2.75): No route to host

routing is screwed up and reboot maybe needed.


>How-To-Repeat:

	just repeat above route add/delete commands under 2.2-Alpha

>Fix:
	
	not clear if this problem is in route.c or in the kernel.
>Audit-Trail:
>Unformatted:



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