From owner-freebsd-questions@FreeBSD.ORG Tue Jun 3 19:15:59 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 06A9C37B401 for ; Tue, 3 Jun 2003 19:15:59 -0700 (PDT) Received: from mailB.its.uidaho.edu (mailB.its.uidaho.edu [129.101.155.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A9C143FBF for ; Tue, 3 Jun 2003 19:15:58 -0700 (PDT) (envelope-from coop9211@uidaho.edu) Received: from [129.101.160.214] ([129.101.160.214]) by mailB.its.uidaho.edu (Go Vandals!) with ESMTPP id <0HFX008SDQAMZW@mailB.its.uidaho.edu> for freebsd-questions@freebsd.org; Tue, 03 Jun 2003 19:15:58 -0700 (PDT) Date: Tue, 03 Jun 2003 19:15:54 -0700 From: John Merryweather Cooper To: freebsd-questions@freebsd.org Message-id: <1054692949.523.31.camel@johncoop> Organization: University of Idaho MIME-version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Content-type: text/plain Content-transfer-encoding: 7BIT Subject: How to configure Wireless access with WEP on a laptop AND use DHCPin /etc/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: Wed, 04 Jun 2003 02:15:59 -0000 I've discovered the wonderful world of wireless Internet access on my FreeBSD laptop (an IBM Thinkpad 380XD running 4.8-STABLE), but I have a problem. Configuring the interface to do both DHCP and initialize with all the WEP parameters seems to be mutually exclusive. I've worked around it by putting in a dummy static IP and netmask and then running dhclient wi0 manually, but I'd prefer to automate things somewhat so that when wi0 comes up (I put the PC Card in) it initializes with the WEP stuff AND does DHCP. So, currently, my configuration line looks like: ifconfig_wi0="inet 10.0.0.1 netmask 255.255.255.0 ssid some-ssid wepmode on wepkey some-128-bit-key" And it works fine, provided I run dhclient manually. But I can't just replace the dummies with DHCP (been there, it doesn't work). How should I do this? jmc