From dek@dt.amur.ru  Thu Jul  4 18:29:20 2002
Return-Path: <dek@dt.amur.ru>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 805C737B400; Thu,  4 Jul 2002 18:29:20 -0700 (PDT)
Received: from amur.ru (amur.ru [195.151.156.7])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id F38BD43E09; Thu,  4 Jul 2002 18:29:14 -0700 (PDT)
	(envelope-from dek@dt.amur.ru)
Received: from anubis.my.domain (ns.dt.amur.ru [194.84.87.182])
	by amur.ru (8.11.6/8.11.6) with ESMTP id g651TAu11410;
	Fri, 5 Jul 2002 11:29:11 +1000
Received: from there (ws-0122-01.my.domain [192.168.0.110])
	by anubis.my.domain (Postfix) with SMTP
	id B9A8A15433; Fri,  5 Jul 2002 11:29:09 +1000 (YAKST)
Message-Id: <20020705012909.B9A8A15433@anubis.my.domain>
Date: Fri, 5 Jul 2002 11:29:17 +1000
From: Dmitry Krasnov <dek@dt.amur.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: net@freebsd.org
Subject: Can not assign alias to any POINTOPOINT interface

>Number:         40206
>Category:       kern
>Synopsis:       ifconfig(8) Can not assign alias to any POINTOPOINT interface
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 04 18:30:01 PDT 2002
>Closed-Date:    Fri Jan 28 08:19:49 UTC 2011
>Last-Modified:  Fri Jan 28 08:19:49 UTC 2011
>Originator:     Dmitry Krasnov
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
DT Int.
>Environment:
System: FreeBSD anubis.local 4.6-STABLE FreeBSD 4.6-STABLE #3: Tue Jun 25 
11:44:54 YAKST 2002     root@anubis.local:/usr/obj/usr/src/sys/LOCAL i386

>Description:
I have problem with aliases after upgrade to 4.6-STABLE. I can not assign 
aliases on any ppp interface:

# ifconfig cx0
cx0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet xxx.xx.xx.182 --> xxx.xx.xx.181 netmask 0xfffffffc 
# ifconfig cx0 alias xxx.xx.xx.179 netmask 0xffffffff xxx.xx.xx.181
ifconfig: ioctl(SIOCAIFADDR): File exists

I tried ppp0 for the simple test and got same results on several machines 
with 4.6-STABLE:

# ifconfig ppp0
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
# ifconfig ppp0 10.0.0.2 netmask 0xfffffff0 10.0.0.1
# ifconfig ppp0 alias 10.0.0.3 netmask 0xffffffff 10.0.0.1
ifconfig: ioctl(SIOCAIFADDR): File exists

Before upgrade I've used 4.5-STABLE, cvsup'ed at 2002-02-15. If I boot with 
/kernel.old everything works fine:

# uname -a
FreeBSD anubis.local 4.5-STABLE FreeBSD 4.5-STABLE #1: Fri Feb 15 12:50:41 
YAKT 2002     root@anubis.local:/usr/obj/usr/src/sys/LOCAL  i386
...
# ifconfig cx0
cx0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet xxx.xx.xx.182 --> xxx.xx.xx.181 netmask 0xfffffffc 
inet xxx.xx.xx.179 --> xxx.xx.xx.181 netmask 0xffffffff 

Same with ppp0:

...
# ifconfig ppp0
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
inet 10.0.0.2 --> 10.0.0.1 netmask 0xfffffff0 
inet 10.0.0.3 --> 10.0.0.1 netmask 0xffffffff 

>How-To-Repeat:
# ifconfig ppp0 10.0.0.2 netmask 0xfffffff0 10.0.0.1
# ifconfig ppp0 alias 10.0.0.3 netmask 0xffffffff 10.0.0.1

>Fix:

>Release-Note:
>Audit-Trail:

From: Ruslan Ermilov <ru@FreeBSD.org>
To: Dmitry Krasnov <dek@dt.amur.ru>
Cc: Brian Somers <brian@FreeBSD.org>, bug-followup@FreeBSD.org,
	net@FreeBSD.org
Subject: Re: misc/40206: Can not assign alias to any POINTOPOINT interface
Date: Fri, 5 Jul 2002 09:44:43 +0300

 The first ifconfig adds a route to 10.0.0.1 thru 10.0.0.2.
 The second ifconfig attempts to add a route to 10.0.0.1
 thru 10.0.0.3 and fails because the route already exists.
 
 The change is caused by sys/netinet/in.c,v 1.65 (merged
 to RELENG_4 as 1.44.2.12).  The feature that hided EEXIST
 from rtinit() existed in in.c in a small window between
 1.44.2.4 and 1.44.2.11.  This roughly comes to between
 4.4-RELEASE and 4.5-RELEASE.
 
 As a workaround, you can ``route delete 10.0.0.1'' after
 the first ifconfig.
 
 On Fri, Jul 05, 2002 at 11:29:17AM +1000, Dmitry Krasnov wrote:
 > I have problem with aliases after upgrade to 4.6-STABLE. I can not assign 
 > aliases on any ppp interface:
 > 
 > # ifconfig cx0
 > cx0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
 > inet xxx.xx.xx.182 --> xxx.xx.xx.181 netmask 0xfffffffc 
 > # ifconfig cx0 alias xxx.xx.xx.179 netmask 0xffffffff xxx.xx.xx.181
 > ifconfig: ioctl(SIOCAIFADDR): File exists
 > 
 > I tried ppp0 for the simple test and got same results on several machines 
 > with 4.6-STABLE:
 > 
 > # ifconfig ppp0
 > ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
 > # ifconfig ppp0 10.0.0.2 netmask 0xfffffff0 10.0.0.1
 > # ifconfig ppp0 alias 10.0.0.3 netmask 0xffffffff 10.0.0.1
 > ifconfig: ioctl(SIOCAIFADDR): File exists
 > 
 > Before upgrade I've used 4.5-STABLE, cvsup'ed at 2002-02-15. If I boot with 
 > /kernel.old everything works fine:
 > 
 > # uname -a
 > FreeBSD anubis.local 4.5-STABLE FreeBSD 4.5-STABLE #1: Fri Feb 15 12:50:41 
 > YAKT 2002     root@anubis.local:/usr/obj/usr/src/sys/LOCAL  i386
 > ...
 > # ifconfig cx0
 > cx0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
 > inet xxx.xx.xx.182 --> xxx.xx.xx.181 netmask 0xfffffffc 
 > inet xxx.xx.xx.179 --> xxx.xx.xx.181 netmask 0xffffffff 
 > 
 > Same with ppp0:
 > 
 > ...
 > # ifconfig ppp0
 > ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
 > inet 10.0.0.2 --> 10.0.0.1 netmask 0xfffffff0 
 > inet 10.0.0.3 --> 10.0.0.1 netmask 0xffffffff 
 > 
 > >How-To-Repeat:
 > # ifconfig ppp0 10.0.0.2 netmask 0xfffffff0 10.0.0.1
 > # ifconfig ppp0 alias 10.0.0.3 netmask 0xffffffff 10.0.0.1
 
 -- 
 Ruslan Ermilov		Sysadmin and 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
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Fri Jan 28 08:19:46 UTC 2011 
State-Changed-Why:  
Given Ruslan's feedback this seems fixed already but didn't get into the 
PR properly. Close it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40206 
>Unformatted:
