From jin@iss-p1.lbl.gov  Fri Sep 15 08:19:58 2000
Return-Path: <jin@iss-p1.lbl.gov>
Received: from iss-p1.lbl.gov (iss-p1.lbl.gov [131.243.2.47])
	by hub.freebsd.org (Postfix) with ESMTP id 2953A37B424
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 15 Sep 2000 08:19:56 -0700 (PDT)
Received: (from jin@localhost)
	by iss-p1.lbl.gov (8.9.3/8.9.3) id IAA36871;
	Fri, 15 Sep 2000 08:19:55 -0700 (PDT)
	(envelope-from jin)
Message-Id: <200009151519.IAA36871@iss-p1.lbl.gov>
Date: Fri, 15 Sep 2000 08:19:55 -0700 (PDT)
From: Jin Guojun (DSD staff) <jin@iss-p1.lbl.gov>
Reply-To: j_guojun@lbl.gov
To: FreeBSD-gnats-submit@freebsd.org
Subject: ifconfig warn but does duplicate IP address
X-Send-Pr-Version: 3.2

>Number:         21292
>Category:       bin
>Synopsis:       ifconfig warn but does duplicate IP address
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 15 08:20:01 PDT 2000
>Closed-Date:    Fri Jul 05 12:41:04 PDT 2002
>Last-Modified:  Fri Jul 05 12:41:04 PDT 2002
>Originator:     Jin Guojun (DSD staff)
>Release:        FreeBSD 4.1-RELEASE i386
>Organization:
>Environment:

	Seen this issue in 4.1-RELEASE, but may in all releases.

	When ifconfig two NIC to have the same address, ifconfig warns
ifconfig: ioctl (SIOCAIFADDR): File exists
	but still assign the same IP to the second NIC. See Description.

>Description:

cal2 1 # ifconfig
sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255
        inet6 fe80::200:5aff:fe98:4b68%sk0 prefixlen 64 scopeid 0x2 
        ether 00:00:5a:98:4b:68 
        media: autoselect (1000baseSX <half-duplex>) status: active
        supported media: autoselect 1000baseSX <full-duplex> 1000baseSX none
sk1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 204.62.155.22 netmask 0xffffff00 broadcast 204.62.155.255
        inet6 fe80::200:5aff:fe98:e448%sk1 prefixlen 64 scopeid 0x3 
        ether 00:00:5a:98:e4:48 
        media: autoselect (1000baseSX <full-duplex>) status: active
        supported media: autoselect 1000baseSX <full-duplex> 1000baseSX none
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
        inet6 ::1 prefixlen 128 
        inet 127.0.0.1 netmask 0xff000000 
cal2 2 # ifconfig sk0 204.62.155.22 netmask 0xffffff00 up
ifconfig: ioctl (SIOCAIFADDR): File exists
cal2 3 # ifconfig
sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::200:5aff:fe98:4b68%sk0 prefixlen 64 scopeid 0x2 
        inet 204.62.155.22 netmask 0xffffff00 broadcast 204.62.155.255
        ether 00:00:5a:98:4b:68 
        media: autoselect (1000baseSX <full-duplex>) status: active
        supported media: autoselect 1000baseSX <full-duplex> 1000baseSX none
sk1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 204.62.155.22 netmask 0xffffff00 broadcast 204.62.155.255
        inet6 fe80::200:5aff:fe98:e448%sk1 prefixlen 64 scopeid 0x3 
        ether 00:00:5a:98:e4:48 
        media: autoselect (1000baseSX <half-duplex>) status: active


>How-To-Repeat:

	See Description.

>Fix:

	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jon 
State-Changed-When: Fri Jul 5 12:40:04 PDT 2002 
State-Changed-Why:  
fixed [src/sys/netinet/in.c 1.44.2.8] 

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