Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 1999 10:15:03 +0100
From:      Philippe Regnauld <regnauld@deepo.prosa.dk>
To:        freebsd-net@freebsd.org
Subject:   Routing strangeness (route / netstat)
Message-ID:  <19990312101503.08429@deepo.prosa.dk>

next in thread | raw e-mail | index | archive | help
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: <UP,GATEWAY,DONE,STATIC,PRCLONING>
 	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




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