From owner-freebsd-bugs Mon May 13 23:20:14 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5406837B403 for ; Mon, 13 May 2002 23:20:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4E6K3A82883; Mon, 13 May 2002 23:20:03 -0700 (PDT) (envelope-from gnats) Date: Mon, 13 May 2002 23:20:03 -0700 (PDT) Message-Id: <200205140620.g4E6K3A82883@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ian Dowse Subject: Re: conf/30441: Can't set interface arguments for dhcp configured interfaces Reply-To: Ian Dowse Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/30441; it has been noted by GNATS. From: Ian Dowse To: Neil Bliss Cc: "Crist J. Clark" , freebsd-bugs@freebsd.org Subject: Re: conf/30441: Can't set interface arguments for dhcp configured interfaces Date: Mon, 13 May 2002 19:25:31 +0100 In message <20020513091319.G7743@dhcp117.mvista.com>, Neil Bliss writes: >Actually, it's not anything to do with the dhcp client. What you're needing to >be able to do here is to be able to pass any additional ifconfig arguments that >the card will need to be able to be used. In my particular case, I'm using a >wireless ethernet card, and I need to give it the correct ssid for it to get >signal at ifconfig time. With the current setup, if I'd like this interface to >use dhcp, then that's the *only* thing you can tell rc.network about this card. dhclient.conf is actually a much more useful place to put such commands, because dhclient can automatically cycle through different combinations of ifconfig settings, picking the first one on which it successfully gets a lease (thanks to Kurt Lidl for pointing this out to me a while ago). For example, I use something like this: interface "wi0" { media "wepmode on wepkey 0x0000000000", "wepmode on wepkey 0x1111111111", "wepmode off"; } You can list the settings for any networks you use, and then plugging in the card just works where ever you are. Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message