From owner-freebsd-questions@FreeBSD.ORG Thu Aug 5 19:55:01 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1B7B1065679 for ; Thu, 5 Aug 2010 19:55:01 +0000 (UTC) (envelope-from rrborg@speakeasy.net) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.50]) by mx1.freebsd.org (Postfix) with ESMTP id 9808A8FC13 for ; Thu, 5 Aug 2010 19:55:01 +0000 (UTC) Received: (qmail 24141 invoked from network); 5 Aug 2010 19:55:01 -0000 Received: from c-67-187-169-218.hsd1.ca.comcast.net (HELO [192.168.1.141]) (rrborg@[67.187.169.218]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 5 Aug 2010 19:55:00 -0000 Message-ID: <4C5B1723.5080506@speakeasy.net> Date: Thu, 05 Aug 2010 12:55:15 -0700 From: Rocky Borg User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Ifconfig (DHCP?) configures two IPs in one IF X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2010 19:55:01 -0000 On 8/5/2010 11:17 AM, Guojun Jin wrote: > 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=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 > > > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > Are you bringing down the interface before you try and delete? ifconfig r10 down ifconfig r10 delete ifconfig r10 up dhclient r10 That should delete all the ips then refresh it from DHCP at the end. At least it did on my desktop that I just tested it on.