Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2003 15:06:20 +0200
From:      Nils Vogels <nivo+freebsd-questions@yuckfou.org>
To:        questions@freebsd.org
Subject:   Re: IP Aliasing (and assigning an IP address via DHCP) in rc.conf
Message-ID:  <20030516130620.GD443@imhotep.yuckfou.org>
In-Reply-To: <1165.192.168.0.1.1053089468.squirrel@mail.dubium.com>
References:  <1165.192.168.0.1.1053089468.squirrel@mail.dubium.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030516130620.GD443>