From nobody@FreeBSD.org  Thu Jul  1 14:23:54 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 491BF16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 Jul 2004 14:23:54 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 42DAA43D2D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 Jul 2004 14:23:54 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i61ENMxG001229
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 1 Jul 2004 14:23:22 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i61ENMZd001228;
	Thu, 1 Jul 2004 14:23:22 GMT
	(envelope-from nobody)
Message-Id: <200407011423.i61ENMZd001228@www.freebsd.org>
Date: Thu, 1 Jul 2004 14:23:22 GMT
From: Oleg Kepp <hostmaster@netgrs.co.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Cannot create alias IP address
X-Send-Pr-Version: www-2.3

>Number:         68559
>Category:       i386
>Synopsis:       Cannot create alias IP address
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 01 14:30:23 GMT 2004
>Closed-Date:    Thu Jul 01 15:24:05 GMT 2004
>Last-Modified:  Thu Jul 01 15:24:05 GMT 2004
>Originator:     Oleg Kepp
>Release:        5.2.1
>Organization:
Les Laboratoires Servier
>Environment:
FreeBSD test 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004     root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Command:
ifconfig xl0 inet 192.168.2.4 netmask 255.255.255.0 alias
Shows the following output:
ifconfig: ioctl (SIOCAIFADDR): File exists

rc.conf parameter

ifconfig_xl0_alias0="inet 192.168.2.4 netmask 255.255.255.0"

has no effect as well.
In the same time, IP aliases are working well on FreeBSD 4.4-RELEASE.

Could you help me to set up additional IP addresses for my network interface? 
>How-To-Repeat:
No special actions should be taken; the system has been installed by default with GENERIC kernel.
The problem appears when I tried all available network interfaces:
xl0  3Com 905B-TX adapter;
ep0  3Com 509 ISA adapter;
fxp0 Intel 82559 PRO/100 adapter.


>Fix:
      
>Release-Note:
>Audit-Trail:

From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=)
To: Oleg Kepp <hostmaster@netgrs.co.ru>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/68559: Cannot create alias IP address
Date: Thu, 01 Jul 2004 17:13:51 +0200

 Oleg Kepp <hostmaster@netgrs.co.ru> writes:
 > ifconfig xl0 inet 192.168.2.4 netmask 255.255.255.0 alias
 > Shows the following output:
 > ifconfig: ioctl (SIOCAIFADDR): File exists
 
 This is a FAQ: if xl0 already has an address on the 192.168.2.0/24
 subnet, you need to use an all-bits-one netmask (255.255.255.255) for
 the alias.
 
 DES
 --=20
 Dag-Erling Sm=F8rgrav - des@des.no
State-Changed-From-To: open->closed 
State-Changed-By: simon 
State-Changed-When: Thu Jul 1 15:21:43 GMT 2004 
State-Changed-Why:  
Close the PR since this is a configuration error: 

From ifconfig(8): 

alias   Establish an additional network address for this interface.  This 
is sometimes useful when changing network numbers, and one wishes 
to accept packets addressed to the old interface.  If the address 
is on the same subnet as the first network address for this 
interface, a non-conflicting netmask must be given.  Usually 
0xffffffff is most appropriate. 

In short, change netmask 255.255.255.0 to netmask 255.255.255.255.  It 
is better to use the freebsd-questions mailing list for these kind of 
configuration problems. 

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