From nobody@FreeBSD.ORG Thu Oct  7 01:11:17 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 252A514D03; Thu,  7 Oct 1999 01:11:17 -0700 (PDT)
Message-Id: <19991007081117.252A514D03@hub.freebsd.org>
Date: Thu,  7 Oct 1999 01:11:17 -0700 (PDT)
From: jch@oleane.net
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: route for ip aliasing
X-Send-Pr-Version: www-1.0

>Number:         14175
>Category:       bin
>Synopsis:       route for ip aliasing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct  7 01:20:01 PDT 1999
>Closed-Date:    Thu Jun 7 07:00:15 PDT 2001
>Last-Modified:  Fri Jun  8 03:20:01 PDT 2001
>Originator:     Jean-Claude
>Release:        3.3
>Organization:
OLEANE
>Environment:
FreeBSD cendrillon.oleane.net 3.3-RELEASE FreeBSD 3.3-RELEASE #2: Mon Sep 27 12:22:59 GMT 1999     root@cendrillon.oleane.net:/usr/src/sys/compile/CENDRILLON  alpha

>Description:
I add an alias on my network interface (de0), and when I do a
'netstat -rn' I dont have the complete route.
I've
192.168.1 instead of 192.168.1.0
perhaps it's normal....
>How-To-Repeat:
ifconfig de0 inet 192.168.1.20 netmask 255.255.255.0 alias
netstat -rn
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-alpha->freebsd-bugs 
Responsible-Changed-By: dfr 
Responsible-Changed-When: Thu Oct 7 01:39:38 PDT 1999 
Responsible-Changed-Why:  
Misfiled PR 

From: Fleisher <takhus@takhus.mind.net>
To: freebsd-gnats-submit@FreeBSD.org, jch@oleane.net
Cc:  
Subject: Re: bin/14175: route for ip aliasing
Date: Wed, 30 May 2001 00:48:52 -0700

 Jean-Claude wrote:
 >    I add an alias on my network interface (de0), and when I do a
 >    'netstat -rn' I dont have the complete route.
 >    I've
 >    192.168.1 instead of 192.168.1.0
 >    perhaps it's normal....
 >    I add an alias on my network interface (de0), and when I do a
 >    'netstat -rn' I dont have the complete route.
 >    I've
 >    192.168.1 instead of 192.168.1.0
 >    perhaps it's normal....
 
 
 I believe that this is a normal output result (do to conversion
 through inet_netof(3), perhaps?).
 
 Tony.
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Thu Jun 7 07:00:15 PDT 2001 
State-Changed-Why:  
Asked and answered. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=14175 

From: "Vladimir B. Grebenschikov" <vova@express.ru>
To: freebsd-gnats-submit@FreeBSD.org
Cc: jch@oleane.net, ru@FreeBSD.org
Subject: Re: bin/14175: route for ip aliasing
Date: Thu, 7 Jun 2001 18:23:31 +0400 (MSD)

 ru@FreeBSD.ORG writes:
  > Synopsis: route for ip aliasing
  > 
  > State-Changed-From-To: open->closed
  > State-Changed-By: ru
  > State-Changed-When: Thu Jun 7 07:00:15 PDT 2001
  > State-Changed-Why: 
  > Asked and answered.
 
 Actual I think not good idea support different address schemes for
 netstat -r and route(8) utilites:
 
 # route add 10.0.0.0/16 192.168.14.1
 add net 10.0.0.0: gateway 192.168.14.1
 # netstat -rn | egrep \^10
 10/16              192.168.14.1       UGSc        0        0     fxp0
 # route delete 10/16
 route: writing to routing socket: No such process
 delete net 10: not in table
 # route delete 10.0.0.0/16
 delete net 10.0.0.0
 #
 
 if netstat deal with addreses like 10/16, I think route need to deal
 with them too.
 
 --
 TSB Russian Express, Moscow
 Vladimir B. Grebenschikov, vova@express.ru

From: Ruslan Ermilov <ru@FreeBSD.org>
To: "Vladimir B. Grebenschikov" <vova@express.ru>
Cc: freebsd-gnats-submit@FreeBSD.org, jch@oleane.net
Subject: Re: bin/14175: route for ip aliasing
Date: Fri, 8 Jun 2001 12:08:48 +0300

 Thanks for reminding!
 Fixed in route.c,v 1.46 and route.8,v 1.24.
 
 On Thu, Jun 07, 2001 at 06:23:31PM +0400, Vladimir B. Grebenschikov wrote:
 > ru@FreeBSD.ORG writes:
 >  > Synopsis: route for ip aliasing
 >  > 
 >  > State-Changed-From-To: open->closed
 >  > State-Changed-By: ru
 >  > State-Changed-When: Thu Jun 7 07:00:15 PDT 2001
 >  > State-Changed-Why: 
 >  > Asked and answered.
 > 
 > Actual I think not good idea support different address schemes for
 > netstat -r and route(8) utilites:
 > 
 > # route add 10.0.0.0/16 192.168.14.1
 > add net 10.0.0.0: gateway 192.168.14.1
 > # netstat -rn | egrep \^10
 > 10/16              192.168.14.1       UGSc        0        0     fxp0
 > # route delete 10/16
 > route: writing to routing socket: No such process
 > delete net 10: not in table
 > # route delete 10.0.0.0/16
 > delete net 10.0.0.0
 > #
 > 
 > if netstat deal with addreses like 10/16, I think route need to deal
 > with them too.
 > 
 > --
 > TSB Russian Express, Moscow
 > Vladimir B. Grebenschikov, vova@express.ru
 
 -- 
 Ruslan Ermilov		Oracle Developer/DBA,
 ru@sunbay.com		Sunbay Software AG,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.512.251	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age

From: "Vladimir B. Grebenschikov" <vova@express.ru>
To: Ruslan Ermilov <ru@FreeBSD.org>
Cc: "Vladimir B. Grebenschikov" <vova@express.ru>,
	freebsd-gnats-submit@FreeBSD.org, jch@oleane.net
Subject: Re: bin/14175: route for ip aliasing
Date: Fri, 8 Jun 2001 13:23:58 +0400 (MSD)

 Ruslan Ermilov writes:
  > Thanks for reminding!
  > Fixed in route.c,v 1.46 and route.8,v 1.24.
  
 May be allow similar semantic in ifconfig too ?
 
 ifconfig if0 192.168.1.1/28 
 instead of
 ifconfig if0 192.168.1.1 netmask 255.255.255.240 
 ? 
 
  > On Thu, Jun 07, 2001 at 06:23:31PM +0400, Vladimir B. Grebenschikov wrote:
  > > ru@FreeBSD.ORG writes:
  > >  > Synopsis: route for ip aliasing
  > >  > 
  > >  > State-Changed-From-To: open->closed
  > >  > State-Changed-By: ru
  > >  > State-Changed-When: Thu Jun 7 07:00:15 PDT 2001
  > >  > State-Changed-Why: 
  > >  > Asked and answered.
  > > 
  > > Actual I think not good idea support different address schemes for
  > > netstat -r and route(8) utilites:
  > > 
  > > # route add 10.0.0.0/16 192.168.14.1
  > > add net 10.0.0.0: gateway 192.168.14.1
  > > # netstat -rn | egrep \^10
  > > 10/16              192.168.14.1       UGSc        0        0     fxp0
  > > # route delete 10/16
  > > route: writing to routing socket: No such process
  > > delete net 10: not in table
  > > # route delete 10.0.0.0/16
  > > delete net 10.0.0.0
  > > #
  > > 
  > > if netstat deal with addreses like 10/16, I think route need to deal
  > > with them too.
  > > 
  > > --
  > > TSB Russian Express, Moscow
  > > Vladimir B. Grebenschikov, vova@express.ru
  > 
  > -- 
  > Ruslan Ermilov		Oracle Developer/DBA,
  > ru@sunbay.com		Sunbay Software AG,
  > ru@FreeBSD.org		FreeBSD committer,
  > +380.652.512.251	Simferopol, Ukraine
  > 
  > http://www.FreeBSD.org	The Power To Serve
  > http://www.oracle.com	Enabling The Information Age
  > 
 
 --
 TSB Russian Express, Moscow
 Vladimir B. Grebenschikov, vova@express.ru

From: Jean-Claude Christophe <jch@oleane.net>
To: "Vladimir B. Grebenschikov" <vova@express.ru>
Cc: Ruslan Ermilov <ru@FreeBSD.org>, freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/14175: route for ip aliasing
Date: Fri, 8 Jun 2001 11:29:53 +0200

 > Ruslan Ermilov writes:
 >  > Thanks for reminding!
 >  > Fixed in route.c,v 1.46 and route.8,v 1.24.
 >  
 > May be allow similar semantic in ifconfig too ?
 > 
 > ifconfig if0 192.168.1.1/28 
 > instead of
 > ifconfig if0 192.168.1.1 netmask 255.255.255.240 
 > ? 
 
 instead of, no.
 It's important to let the actual configuration parameters of ifconfig.
 However, add the prefix in the parameters of ifconfig can be consider
 as a different way to set the mask and should be appreciate.
 
 > 
 >  > On Thu, Jun 07, 2001 at 06:23:31PM +0400, Vladimir B. Grebenschikov wrote:
 >  > > ru@FreeBSD.ORG writes:
 >  > >  > Synopsis: route for ip aliasing
 >  > >  > 
 >  > >  > State-Changed-From-To: open->closed
 >  > >  > State-Changed-By: ru
 >  > >  > State-Changed-When: Thu Jun 7 07:00:15 PDT 2001
 >  > >  > State-Changed-Why: 
 >  > >  > Asked and answered.
 >  > > 
 >  > > Actual I think not good idea support different address schemes for
 >  > > netstat -r and route(8) utilites:
 >  > > 
 >  > > # route add 10.0.0.0/16 192.168.14.1
 >  > > add net 10.0.0.0: gateway 192.168.14.1
 >  > > # netstat -rn | egrep \^10
 >  > > 10/16              192.168.14.1       UGSc        0        0     fxp0
 >  > > # route delete 10/16
 >  > > route: writing to routing socket: No such process
 >  > > delete net 10: not in table
 >  > > # route delete 10.0.0.0/16
 >  > > delete net 10.0.0.0
 >  > > #
 >  > > 
 >  > > if netstat deal with addreses like 10/16, I think route need to deal
 >  > > with them too.
 >  > > 
 >  > > --
 >  > > TSB Russian Express, Moscow
 >  > > Vladimir B. Grebenschikov, vova@express.ru
 >  > 
 >  > -- 
 >  > Ruslan Ermilov		Oracle Developer/DBA,
 >  > ru@sunbay.com		Sunbay Software AG,
 >  > ru@FreeBSD.org		FreeBSD committer,
 >  > +380.652.512.251	Simferopol, Ukraine
 >  > 
 >  > http://www.FreeBSD.org	The Power To Serve
 >  > http://www.oracle.com	Enabling The Information Age
 >  > 
 > 
 > --
 > TSB Russian Express, Moscow
 > Vladimir B. Grebenschikov, vova@express.ru
 
 -- 
 Jean-Claude Christophe / jch@oleane.net

From: "Vladimir B. Grebenschikov" <vova@express.ru>
To: Jean-Claude Christophe <jch@oleane.net>
Cc: "Vladimir B. Grebenschikov" <vova@express.ru>,
	Ruslan Ermilov <ru@FreeBSD.org>, freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/14175: route for ip aliasing
Date: Fri, 8 Jun 2001 13:37:01 +0400 (MSD)

 Jean-Claude Christophe writes:
  > > Ruslan Ermilov writes:
  > >  > Thanks for reminding!
  > >  > Fixed in route.c,v 1.46 and route.8,v 1.24.
  > >  
  > > May be allow similar semantic in ifconfig too ?
  > > 
  > > ifconfig if0 192.168.1.1/28 
  > > instead of
  > > ifconfig if0 192.168.1.1 netmask 255.255.255.240 
  > > ? 
  > 
  > instead of, no.
  > It's important to let the actual configuration parameters of ifconfig.
  > However, add the prefix in the parameters of ifconfig can be consider
  > as a different way to set the mask and should be appreciate.
 
 Of course, I mean only one more possible way.
  
 
 --
 TSB Russian Express, Moscow
 Vladimir B. Grebenschikov, vova@express.ru

From: Ruslan Ermilov <ru@FreeBSD.org>
To: "Vladimir B. Grebenschikov" <vova@express.ru>
Cc: freebsd-gnats-submit@FreeBSD.org, jch@oleane.net
Subject: Re: bin/14175: route for ip aliasing
Date: Fri, 8 Jun 2001 13:16:16 +0300

 On Fri, Jun 08, 2001 at 01:23:58PM +0400, Vladimir B. Grebenschikov wrote:
 > Ruslan Ermilov writes:
 >  > Thanks for reminding!
 >  > Fixed in route.c,v 1.46 and route.8,v 1.24.
 >  
 > May be allow similar semantic in ifconfig too ?
 > 
 > ifconfig if0 192.168.1.1/28 
 > instead of
 > ifconfig if0 192.168.1.1 netmask 255.255.255.240 
 > ? 
 > 
 It's already available in 5.0-CURRENT and 4.3-STABLE.
 With the exception that the syntax for ifconfig(8)
 is host/mask.
 
 
 Cheers,
 -- 
 Ruslan Ermilov		Oracle Developer/DBA,
 ru@sunbay.com		Sunbay Software AG,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.512.251	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age
>Unformatted:
