From owner-freebsd-questions@FreeBSD.ORG Fri May 16 06:05:21 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D53E37B401 for ; Fri, 16 May 2003 06:05:21 -0700 (PDT) Received: from imhotep.yuckfou.org (cust.89.117.adsl.cistron.nl [195.64.89.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04FF943F85 for ; Fri, 16 May 2003 06:05:20 -0700 (PDT) (envelope-from nivo+freebsd-questions@yuckfou.org) Received: by imhotep.yuckfou.org (Postfix, from userid 1000) id D5707A980; Fri, 16 May 2003 15:06:20 +0200 (CEST) Date: Fri, 16 May 2003 15:06:20 +0200 From: Nils Vogels To: questions@freebsd.org Message-ID: <20030516130620.GD443@imhotep.yuckfou.org> References: <1165.192.168.0.1.1053089468.squirrel@mail.dubium.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1165.192.168.0.1.1053089468.squirrel@mail.dubium.com> User-Agent: Mutt/1.4.1i X-PGP-Key: Key 0xAD3A5AAD from pub. servers X-PGP-Fingerprint: 1585 93A2 9595 177B 5D5F 1271 3333 57FD AD3A 5AAD Subject: Re: IP Aliasing (and assigning an IP address via DHCP) in rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2003 13:05:21 -0000 On Fri, May 16, 2003 at 05:51:08AM -0700, Joe Sotham (JS) wrote: JS> On a freebsd 4.8-STABLE #0 system JS> JS> The archives provide excellent information setting up an alias and assigning an ip JS> address to a NIC card. There are no examples using DHCP and I thought it would be a JS> simple matter of following the examples and putting the following in my rc.conf file JS> JS> ifconfig_fxp0="DHCP" JS> ifconfig_fxp0_alias0="DHCP" <=== new config item ... I think the trouble here is in the 'dhclient' program, which freebsd uses to get it's DHCP lease. reading dhclient.conf(5): interface "string"; The interface lease statement is used to indicate the interface on which the lease is valid. If set, this lease will only be tried on a particular interface. When the client receives a lease from a server, it always records the interface number on which it received that lease. If predefined leases are specified in the dhclient.conf file, the interface should also be specified, although this is not required. Since the interface is the same (aliases have no new interface name), dhclient probably thinks it already has a lease for this interface.. Why get a new one ? :) HTH & HAND Nils.