From Martin.Kraemer@Fujitsu-Siemens.com  Tue Apr 16 23:52:55 2002
Return-Path: <Martin.Kraemer@Fujitsu-Siemens.com>
Received: from nixpbe.pdb.sbs.de (nixpbe.pdb.siemens.de [192.109.2.33])
	by hub.freebsd.org (Postfix) with ESMTP id 011DC37B419
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Apr 2002 23:52:54 -0700 (PDT)
Received: from trulli.pdb.fsc.net (ThisAddressDoesNotExist [172.25.96.20] (may be forged))
	by nixpbe.pdb.sbs.de (8.11.2/8.11.2) with ESMTP id g3H6qpL25842
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Apr 2002 08:52:51 +0200
Received: from deejai2.mch.fsc.net (deejai2.mch.fsc.net [172.25.124.236])
	by trulli.pdb.fsc.net (8.9.3/8.9.3) with ESMTP id IAA21410
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Apr 2002 08:52:52 +0200
Received: from deejai2.mch.fsc.net (localhost6 [IPv6:::1])
	by deejai2.mch.fsc.net (8.12.2/8.12.2) with ESMTP id g3H6qpK2002684
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Apr 2002 08:52:51 +0200 (CEST)
	(envelope-from martin@deejai2.mch.fsc.net)
Received: (from martin@localhost)
	by deejai2.mch.fsc.net (8.12.2/8.12.2/Submit) id g3H6qooc002683;
	Wed, 17 Apr 2002 08:52:50 +0200 (CEST)
Message-Id: <200204170652.g3H6qooc002683@deejai2.mch.fsc.net>
Date: Wed, 17 Apr 2002 08:52:50 +0200 (CEST)
From: Martin.Kraemer@Fujitsu-Siemens.com
Reply-To: <Martin.Kraemer@Fujitsu-Siemens.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ifconfig ... alias has problems setting aliases
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37173
>Category:       kern
>Synopsis:       ifconfig ... alias has problems setting aliases
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 17 00:00:04 PDT 2002
>Closed-Date:    Wed Apr 17 00:59:52 PDT 2002
>Last-Modified:  Wed Apr 17 01:00:12 PDT 2002
>Originator:     
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Fujitsu-Siemens Computers
>Environment:
System: FreeBSD deejai2.mch.fsc.net 4.5-STABLE FreeBSD 4.5-STABLE #10: Wed Apr 10 13:37:25 CEST 2002 root@deejai2.mch.fsc.net:/usr/src/sys/compile/DEEJAI4B i386


>Description:
	Using FreeBSD-4.5-STABLE from ~2 months ago, I had no problems
        setting several IP aliases on my xl0 interface by setting the
	following in /etc/rc.conf:
          ifconfig_xl0="inet 172.25.124.236 netmask 255.255.255.0"
          ifconfig_xl0_alias0="inet 172.25.124.237 netmask 255.255.255.0"
          ifconfig_xl0_alias1="inet 172.25.124.238 netmask 255.255.255.0"
          ifconfig_xl0_alias2="inet 192.168.172.1 netmask 255.255.255.0"
        With a current kernel however, after reboot only one or two of these
        IP addresses are actually set. The other IP addresses are unset.

>How-To-Repeat:
	See above... On my -STABLE system, at least :-(
>Fix:
        Manual execution (after the machine has booted) of:
        # ifconfig xl0 down
        # ifconfig xl0 inet 172.25.124.237 netmask 255.255.255.0 alias
        # ifconfig xl0 down
        # ifconfig xl0 inet 172.25.124.238 netmask 255.255.255.0 alias
        # ifconfig xl0 down
        # ifconfig xl0 inet 192.168.172.1 netmask 255.255.255.0 alias
        # route add -net 172.25.124.0 -interface xl0
        seems to help. It appears as though adding an alias was only possible
        while the interface has been brought down.
>Release-Note:
>Audit-Trail:

From: Nicolas Rachinsky <list@rachinsky.de>
To: Martin.Kraemer@Fujitsu-Siemens.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/37173: ifconfig ... alias has problems setting aliases
Date: Wed, 17 Apr 2002 09:08:08 +0200

 * Martin.Kraemer@Fujitsu-Siemens.com [2002-04-17 08:52:50 +0200]:
 > >Description:
 > 	Using FreeBSD-4.5-STABLE from ~2 months ago, I had no problems
 >         setting several IP aliases on my xl0 interface by setting the
 > 	following in /etc/rc.conf:
 >           ifconfig_xl0="inet 172.25.124.236 netmask 255.255.255.0"
 >           ifconfig_xl0_alias0="inet 172.25.124.237 netmask 255.255.255.0"
 >           ifconfig_xl0_alias1="inet 172.25.124.238 netmask 255.255.255.0"
 >           ifconfig_xl0_alias2="inet 192.168.172.1 netmask 255.255.255.0"
 >         With a current kernel however, after reboot only one or two of these
 >         IP addresses are actually set. The other IP addresses are unset.
 
 From man ifconfig:
 | If the address is on the same subnet as the first network address for
 | this interface, a netmask of 0xffffffff has to be specified.
 
 Use netmask 255.255.255.255 for the aliases.
 
 No FreeBSD problem.
 
 Nicolas
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Wed Apr 17 00:58:25 PDT 2002 
State-Changed-Why:  
Not a problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37173 

From: Ruslan Ermilov <ru@FreeBSD.org>
To: Nicolas Rachinsky <list@rachinsky.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/37173: ifconfig ... alias has problems setting aliases
Date: Wed, 17 Apr 2002 10:59:18 +0300

 On Wed, Apr 17, 2002 at 12:10:09AM -0700, Nicolas Rachinsky wrote:
 > The following reply was made to PR kern/37173; it has been noted by GNATS.
 > 
 > From: Nicolas Rachinsky <list@rachinsky.de>
 > To: Martin.Kraemer@Fujitsu-Siemens.com
 > Cc: FreeBSD-gnats-submit@FreeBSD.ORG
 > Subject: Re: kern/37173: ifconfig ... alias has problems setting aliases
 > Date: Wed, 17 Apr 2002 09:08:08 +0200
 > 
 >  * Martin.Kraemer@Fujitsu-Siemens.com [2002-04-17 08:52:50 +0200]:
 >  > >Description:
 >  > 	Using FreeBSD-4.5-STABLE from ~2 months ago, I had no problems
 >  >         setting several IP aliases on my xl0 interface by setting the
 >  > 	following in /etc/rc.conf:
 >  >           ifconfig_xl0="inet 172.25.124.236 netmask 255.255.255.0"
 >  >           ifconfig_xl0_alias0="inet 172.25.124.237 netmask 255.255.255.0"
 >  >           ifconfig_xl0_alias1="inet 172.25.124.238 netmask 255.255.255.0"
 >  >           ifconfig_xl0_alias2="inet 192.168.172.1 netmask 255.255.255.0"
 >  >         With a current kernel however, after reboot only one or two of these
 >  >         IP addresses are actually set. The other IP addresses are unset.
 >  
 >  From man ifconfig:
 >  | If the address is on the same subnet as the first network address for
 >  | this interface, a netmask of 0xffffffff has to be specified.
 >  
 >  Use netmask 255.255.255.255 for the aliases.
 >  
 To be more precise, you should use netmask of all ones for aliases
 in the same subnet only.  See ifconfig(8) manpage for more details.
 
 
 Cheers,
 -- 
 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
>Unformatted:
