From owner-freebsd-bugs@FreeBSD.ORG Fri Aug 6 06:00:18 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94A7B1065672 for ; Fri, 6 Aug 2010 06:00:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5641E8FC13 for ; Fri, 6 Aug 2010 06:00:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7660InA085412 for ; Fri, 6 Aug 2010 06:00:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7660IR7085399; Fri, 6 Aug 2010 06:00:18 GMT (envelope-from gnats) Resent-Date: Fri, 6 Aug 2010 06:00:18 GMT Resent-Message-Id: <201008060600.o7660IR7085399@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jin Guojun Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED6271065674 for ; Fri, 6 Aug 2010 05:50:26 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id CE1298FC15 for ; Fri, 6 Aug 2010 05:50:26 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o765oQjv006706 for ; Fri, 6 Aug 2010 05:50:26 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o765oQ6F006705; Fri, 6 Aug 2010 05:50:26 GMT (envelope-from nobody) Message-Id: <201008060550.o765oQ6F006705@www.freebsd.org> Date: Fri, 6 Aug 2010 05:50:26 GMT From: Jin Guojun To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/149351: DHCP can make one interface to have multiple IP addresses X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2010 06:00:18 -0000 >Number: 149351 >Category: bin >Synopsis: DHCP can make one interface to have multiple IP addresses >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 06 06:00:17 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Jin Guojun >Release: RELEAE-8.1 >Organization: VFFS >Environment: >Description: When DHCP server is down, manually configured rl0 to an IP -- 192.168.0.10 -- for temporarily use. As DHCP came back and assigned another IP on the rl0, now NIC is down due to two conflict IP addresses. rl0: flags=8843 metric 0 mtu 1500 options=8 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=8810 metric 0 mtu 1500 DHCP should work as ifconfig to replace the old IP with new IP, not set additional IP on an interface. >How-To-Repeat: Configure an interface (say rl0) to use DHCP. Boot machine with network Ethernet cable unplugged. After machine boot up, ifconfig rl0 to some IP not in DHCP range. Plug in Ethernet cable and wait for a while to let DHCP active. You will see two IPs on the Ethernet interface. >Fix: >Release-Note: >Audit-Trail: >Unformatted: