From owner-freebsd-bugs Mon May 13 11:25:38 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id E581E37B405; Mon, 13 May 2002 11:25:32 -0700 (PDT) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 13 May 2002 19:25:32 +0100 (BST) To: Neil Bliss Cc: "Crist J. Clark" , freebsd-bugs@FreeBSD.ORG Subject: Re: conf/30441: Can't set interface arguments for dhcp configured interfaces In-Reply-To: Your message of "Mon, 13 May 2002 09:14:40 PDT." <20020513091319.G7743@dhcp117.mvista.com> Date: Mon, 13 May 2002 19:25:31 +0100 From: Ian Dowse Message-ID: <200205131925.aa28199@salmon.maths.tcd.ie> 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 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