From owner-freebsd-net Fri Mar 12 1:15:56 1999 Delivered-To: freebsd-net@freebsd.org Received: from mail.ftf.dk (mail.ftf.net [129.142.64.2]) by hub.freebsd.org (Postfix) with ESMTP id 9AE4815266 for ; Fri, 12 Mar 1999 01:15:23 -0800 (PST) (envelope-from regnauld@deepo.prosa.dk) Received: from mail.prosa.dk ([192.168.100.254]) by mail.ftf.dk (8.9.3/8.9.3/gw-ftf-1.2) with ESMTP id KAA11722 for ; Fri, 12 Mar 1999 10:15:04 +0100 (CET) X-Authentication-Warning: mail.ftf.dk: Host [192.168.100.254] claimed to be mail.prosa.dk Received: from deepo.prosa.dk (deepo.prosa.dk [192.168.100.10]) by mail.prosa.dk (8.8.8/8.8.5/prosa-1.1) with ESMTP id KAA11017 for ; Fri, 12 Mar 1999 10:17:27 +0100 (CET) Received: (from regnauld@localhost) by deepo.prosa.dk (8.8.8/8.8.5/prosa-1.1) id KAA21021; Fri, 12 Mar 1999 10:15:03 +0100 (CET) Message-ID: <19990312101503.08429@deepo.prosa.dk> Date: Fri, 12 Mar 1999 10:15:03 +0100 From: Philippe Regnauld To: freebsd-net@freebsd.org Subject: Routing strangeness (route / netstat) Reply-To: pr@s44.eu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88e X-Operating-System: FreeBSD 2.2.8-RELEASE i386 Phone: +45 3336 4148 Address: Ahlefeldtsgade 16, 1359 Copenhagen K, Denmark Organization: PROSA Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I made (this is both valid for 2.2.8 and 3.1) the following routing change, with a wrong syntax: [root]% route add -net 10.10.0.0 255.255.0.0 192.168.1.12 add net 10.10.0.0: gateway 255.255.0.0 ... which is in itself a mistake, but even then, running netstat -rn gives: 0.8&0xc0a8010c 255.255.0.0 UGSc 0 0 ep0 Do undo this, I had to do: [root]# route get 10.10.0.0 route to: 10.10.0.0 destination: 0.8.0.0 mask: 192.168.1.12 gateway: 255.255.0.0 interface: ep0 flags: recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 0 0 0 0 0 0 1500 0 ... and do [root]# route delete 0.8.0.0 delete host 0.8.0.0 This worked. What's strange is that: [root]# route add -net 10.10.0.0 255.255.0.0 add net 10.10.0.0: gateway 255.255.0.0 ... even though also wrong, Gives: 10.10/16 255.255.0.0 UGSc 0 0 ep0 ... which is "valid". What is the reason for the first bogus interpretation ? Arg parsing in route ? -- -[ Phil Regnauld / sysadmin / regnauld@deepo.prosa.dk / +55.4N +12.3 E ]- -[ Member of the BSD-Dk User Group / http://hotel.prosa.dk/bsd-dk/ ] - "The Internet is busy. Please try again later." -- telcos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message