Date: Tue, 26 Sep 2000 07:53:33 -0700 (PDT) From: madamus@connectalk.com To: freebsd-gnats-submit@FreeBSD.org Subject: misc/21561: route takes the netmask as the default gateway, creating a bad route. Message-ID: <20000926145333.DF30537B449@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 21561 >Category: misc >Synopsis: route takes the netmask as the default gateway, creating a bad route. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 26 08:00:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Michel Adamus >Release: 4.1 >Organization: ConnecTalk >Environment: FreeBSD apollo.connectalk.com 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Sat Sep 23 15:41:27 EDT 2000 madamus@apollo.connectalk.com:/usr/src/sys/compile/APOLLO i386 >Description: route -n add -net 10.150.200.0 255.255.252.0 10.125.200.199 will add a bad route to the system. A route that can't be deleted. It looks like this using "netstat -rn" Destination Gateway Flags Netif Expire default 10.125.204.1 UGSc 3 9 fxp0 10.20.200&0xa7dc8c7 255.255.252.0 UGSc 0 0 fxp0 the correct route command should be: route -n add -net 10.150.200.0 -netmask 255.255.252.0 10.125.200.199 Comment: route should not allow this. >How-To-Repeat: Simply omit the "-netmask" when adding a new route. >Fix: reboot >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000926145333.DF30537B449>