From gjin@ubicom.com  Thu Aug  5 19:19:12 2010
Return-Path: <gjin@ubicom.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0270F1065670;
	Thu,  5 Aug 2010 19:19:12 +0000 (UTC)
	(envelope-from gjin@ubicom.com)
Received: from server70.appriver.com (server70b.appriver.com [74.205.4.150])
	by mx1.freebsd.org (Postfix) with ESMTP id 91E578FC15;
	Thu,  5 Aug 2010 19:19:11 +0000 (UTC)
Received: from [216.112.109.98] (HELO stork.scenix.com)
  by server70.appriver.com (CommuniGate Pro SMTP 5.3.7)
  with ESMTP id 138164469; Thu, 05 Aug 2010 14:19:20 -0400
Message-Id: <CB2DD11991B27C4F99935E6229450D3203950C38@STORK.scenix.com>
Date: Thu, 5 Aug 2010 11:17:21 -0700
From: "Guojun Jin" <gjin@ubicom.com>
To: <bug-followup@FreeBSD.org>
Cc: <questions@freebsd.org>
Subject: Ifconfig (DHCP?) configures two IPs in one IF

>Number:         149340
>Category:       kern
>Synopsis:       ifconfig(8) (DHCP?) configures two IPs in one IF
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 05 19:20:11 UTC 2010
>Closed-Date:    Mon Aug 09 13:25:35 UTC 2010
>Last-Modified:  Mon Aug 09 13:25:35 UTC 2010
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 This is a multi-part message in MIME format.
 
 ------_=_NextPart_001_01CB34CA.722EE94A
 Content-Type: text/plain;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 
 This problem comes  in 8.1-R.  I have seen it before and thought I filed
 a report but cannot find it.  I found one (bin/21292) for ifconfig, but
 it was for two NICs with a same IP. Now is a reversed case; one NIC has
 two IPs.
 
 Here is the description:
 
 Due to DHCP server down, I manually configured rl0 to 192.168.0.10 for
 temporarily use.  In the middle of working, DHCP came back and assigned
 another IP on the rl0, now NIC is down due to two conflict IP addresses.
 
 rl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
         options=3D8<VLAN_MTU>
         ether 00:40:f4:d1:23:9a
         inet 192.168.0.10 netmask 0xffffff00 broadcast 192.168.0.255
         inet 10.10.50.126 netmask 0xffffff00 broadcast 10.10.50.255
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
 plip0: flags=3D8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
 
 
 I tried unplumb/delete rl0, but if does not  work.
 Before the bug can be fixed, is any way to fix the IP without rebooting
 the machine?
 
 -Jin
 
 ------_=_NextPart_001_01CB34CA.722EE94A--
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Aug 6 14:58:12 UTC 2010 
Responsible-Changed-Why:  
Recover broken formatting, set confidential to No, reassign. 

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

Date: Thu, 5 Aug 2010 14:54:48 -0430
From: Alberto Mijares <amijaresp@gmail.com>
To: Guojun Jin <gjin@ubicom.com>
Cc: bug-followup@freebsd.org, questions@freebsd.org
Subject: Re: Ifconfig (DHCP?) configures two IPs in one IF

 > Before the bug can be fixed, is any way to fix the IP without rebooting
 > the machine?
 
 Try this
 
 # ifconfig rl0 -alias 192.168.0.10
 
 Regards
 
 
 Alberto Mijares

Date: Fri, 06 Aug 2010 01:36:42 +0530
From: ashish@FreeBSD.org (Ashish SHUKLA)
Sender: Ashish SHUKLA <wahjava@gmail.com>
To: "Guojun Jin" <gjin@ubicom.com>
Cc: <bug-followup@FreeBSD.org>,  questions@freebsd.org
Subject: Re: Ifconfig (DHCP?) configures two IPs in one IF

 --=-=-=
 Content-Type: text/plain; charset=utf-8
 Content-Transfer-Encoding: quoted-printable
 
 Guojun Jin writes:
 
 > This problem comes  in 8.1-R. I have seen it before and  thought I filed =
 a report but cannot find it.
 > I found one (bin/21292) for ifconfig, but it was for two NICs with a same=
  IP. Now is a reversed case
 > One NIC has two IPs.
 
 > Here is the description:
 
 > Due to DHCP server down, I manually configured rl0 to 192.168.0.10 for te=
 mporarily use.
 > In the middle of working, DHCP came back and assigned  another IP on the =
 rl0, now NIC is down
 > due to two conflict IP addresses.
 
 > rl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
 00
 >         options=3D8<VLAN_MTU>
 >         ether 00:40:f4:d1:23:9a
 >         inet 192.168.0.10 netmask 0xffffff00 broadcast 192.168.0.255
 >         inet 10.10.50.126 netmask 0xffffff00 broadcast 10.10.50.255
 >         media: Ethernet autoselect (100baseTX <full-duplex>)
 >         status: active
 > plip0: flags=3D8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
 
 
 > I tried unplumb/delete rl0, but if does not  work.
 > Before the bug can be fixed, is any way to fix the IP without rebooting t=
 he machine?
 
 # ifconfig rl0 -alias 192.168.0.10
 
 Above will cause 192.168.0.10 to be removed from the interface. For details,
 see ifconfig(1).
 
 HTH
 =2D-=20
 Ashish SHUKLA      | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
 freebsd.org!ashish | http://people.freebsd.org/~ashish/
 
 =E2=80=9CFew false ideas have more firmly gripped the minds of so many
 intelligent men than the one that, if they just tried, they could
 invent a cipher that no one could break.=E2=80=9D (David Kahn, "The
 Codebreakers", 1967)
 
 --=-=-=
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.16 (GNU/Linux)
 
 iQIcBAEBCgAGBQJMWxnWAAoJEMdGz6nnT6SwctsP/0RQxO2ZKFBkRwSGk/u1VuEn
 SGr5Yl+7PpnZSzgGa9iowBkig9bSEtOXkERilUASW/nLH2DUd1w9rag3aZJxLIzg
 ZmFI1AFL2Wr+CmjkCnivkV8pBKow1nJGDlqxLFGBf9uZk+BhAZ5GTTlBS1WM+aSx
 K5ZYbySxhgb9sgxWUNcoavO5Nx2u4Y98q/AWgNvpochuiwNuEXqPyy/NoR1C9aZA
 gvzp2v8d9eVzza6u88BemLErCtY71RdKJX1xzgqxnDJBjjBJH/xcgW2ohyeMSSrq
 paO3olqkc4XoRMJP/cy1C3pT7bpZMzZ54zt4VbPRGaNVFn/uGfpOxsyoFtL76zvA
 90JhbqD1cv2uzGqAKvBo8mJ45/LwgQxtS+SfW9R6WHunK4n+sVt3AMqzQCDgOQj2
 dIgNLa2NAoBUeVOhdztLt2bMuJC02HDEPmK+tUy6UoexHQ9bwfFuct0BaErHgPqs
 ch6MJNl3F2a5ok00naTLOh7SM//RN1jTS4FcItggnVZWNv48L0hrR5T+q5GW7Lee
 5TDtO2T6owoTmI87oYksnCFsPCsMCrYkpthuL2piOZsZ28eearmpqdPRUQdBdl5r
 t1I3FRPn4ZXlxy74meIbeJWvYr0B6095oed93ysQRM2nl9yUkKhSVEZ+8vOOacV3
 kpbgUvkFzXi6DkVaHKWz
 =WYIO
 -----END PGP SIGNATURE-----
 --=-=-=--

Date: Thu, 5 Aug 2010 14:06:49 -0700
From: "Guojun Jin" <gjin@ubicom.com>
To: "Alberto Mijares" <amijaresp@gmail.com>
Cc: <bug-followup@freebsd.org>,
	<questions@freebsd.org>
Subject: RE: Ifconfig (DHCP?) configures two IPs in one IF

 This is a multi-part message in MIME format.
 
 ------_=_NextPart_001_01CB34E2.1EC16E3C
 Content-Type: text/plain;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 "-alias" works, also "delete" works.=20
 The 'delete: cannot have "-" in front of it, otherwise, it gives an =
 improper message;
 
 # ifconfig rl0 -delete 1.2.3.4
 ifconfig: -delete: bad value
 
 This seems telling the 1.2.3.4 is a bad value. It should say:
 ifconfig: -delete -- bad option/switch
 
 Now we know "-delete: itself is bad, not the value after it is bad.
 
 ------_=_NextPart_001_01CB34E2.1EC16E3C--
State-Changed-From-To: open->closed 
State-Changed-By: vwe 
State-Changed-When: Mon Aug 9 13:24:25 UTC 2010 
State-Changed-Why:  
having two (and even more) IP(v4|v6) addresses on one interface is wanted behaviour. We see no reason for this PR -> close 

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