From wahjava@gmail.com Thu Aug 5 20:06:56 2010 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 777621065674 for ; Thu, 5 Aug 2010 20:06:56 +0000 (UTC) (envelope-from wahjava@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1DD348FC22 for ; Thu, 5 Aug 2010 20:06:55 +0000 (UTC) Received: by pzk7 with SMTP id 7so2961195pzk.13 for ; Thu, 05 Aug 2010 13:06:55 -0700 (PDT) Received: by 10.142.199.20 with SMTP id w20mr9498762wff.290.1281038815442; Thu, 05 Aug 2010 13:06:55 -0700 (PDT) Received: from chateau.d.if ([122.161.169.116]) by mx.google.com with ESMTPS id t11sm538610wfc.4.2010.08.05.13.06.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 05 Aug 2010 13:06:54 -0700 (PDT) Received: from chateau.d.if (chateau.d.if [127.0.0.1]) by chateau.d.if (Postfix) with ESMTP id 257C92D8028; Fri, 6 Aug 2010 01:36:47 +0530 (IST) Message-Id: <86y6ckhlil.fsf@chateau.d.if> Date: Fri, 06 Aug 2010 01:36:42 +0530 From: ashish@FreeBSD.org (Ashish SHUKLA) Sender: Ashish SHUKLA To: "Guojun Jin" Cc: , questions@freebsd.org In-Reply-To: (Guojun Jin's message of "Thu, 5 Aug 2010 11:17:21 -0700") Subject: Re: Ifconfig (DHCP?) configures two IPs in one IF References: >Number: 149344 >Category: kern >Synopsis: Re: ifconfig (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 20:10:05 UTC 2010 >Closed-Date: Fri Aug 06 15:03:54 UTC 2010 >Last-Modified: Fri Aug 06 15:03:54 UTC 2010 >Originator: >Release: >Organization: >Environment: >Description: --=-=-= 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 metric 0 mtu 15= 00 > options=3D8 > 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 ) > status: active > plip0: flags=3D8810 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----- --=-=-=-- >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Fri Aug 6 15:01:43 UTC 2010 State-Changed-Why: Misfiled followup to kern/149340; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: linimon Responsible-Changed-When: Fri Aug 6 15:01:43 UTC 2010 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=149344 >Unformatted: