From owner-freebsd-questions@FreeBSD.ORG Thu Aug 5 21:08:40 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1565D1065672; Thu, 5 Aug 2010 21:08:40 +0000 (UTC) (envelope-from gjin@ubicom.com) Received: from server70.appriver.com (server70a.appriver.com [69.20.116.35]) by mx1.freebsd.org (Postfix) with ESMTP id A27508FC08; Thu, 5 Aug 2010 21:08:39 +0000 (UTC) X-Policy: GLOBAL - ubicom.com X-Policy: GLOBAL - ubicom.com X-Policy: GLOBAL - ubicom.com X-Primary: gjin@ubicom.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: @ubicom.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES X-Note-Sending-IP: 216.112.109.98 X-Note-Reverse-DNS: 216.112.109.98.ptr.us.xo.net X-Note-WHTLIST: gjin@ubicom.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G202 G203 G204 G205 G209 G210 G221 G309 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [216.112.109.98] (HELO stork.scenix.com) by server70.appriver.com (CommuniGate Pro SMTP 5.3.7) with ESMTP id 138233403; Thu, 05 Aug 2010 17:08:49 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Thu, 5 Aug 2010 14:06:49 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Ifconfig (DHCP?) configures two IPs in one IF Thread-Index: Acs006AMbYUEnIj4TsqEASd+6o/cYAADUC8i References: From: "Guojun Jin" To: "Alberto Mijares" Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org, bug-followup@freebsd.org 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 21:08:40 -0000 "-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. -----Original Message----- From: Alberto Mijares [mailto:amijaresp@gmail.com] Sent: Thu 8/5/2010 12:24 PM To: Guojun Jin Cc: bug-followup@freebsd.org; questions@freebsd.org Subject: Re: Ifconfig (DHCP?) configures two IPs in one IF =20 > > rl0: flags=3D8843 metric 0 mtu = 1500 > =A0 =A0 =A0 =A0options=3D8 > =A0 =A0 =A0 =A0ether 00:40:f4:d1:23:9a > =A0 =A0 =A0 =A0inet 192.168.0.10 netmask 0xffffff00 broadcast = 192.168.0.255 > =A0 =A0 =A0 =A0inet 10.10.50.126 netmask 0xffffff00 broadcast = 10.10.50.255 > =A0 =A0 =A0 =A0media: Ethernet autoselect (100baseTX ) > =A0 =A0 =A0 =A0status: active > plip0: flags=3D8810 metric 0 mtu 1500 > > > I tried unplumb/delete rl0, but if does not =A0work. > 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