From owner-freebsd-stable@FreeBSD.ORG Mon Jan 31 13:23:27 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45A701065694 for ; Mon, 31 Jan 2011 13:23:27 +0000 (UTC) (envelope-from vanopen@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id C82928FC12 for ; Mon, 31 Jan 2011 13:23:26 +0000 (UTC) Received: by iwn39 with SMTP id 39so5473210iwn.13 for ; Mon, 31 Jan 2011 05:23:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:mime-version :content-type:content-disposition:organization:x-operating-system :user-agent; bh=DTvNjruBG6VDRFXt36akkNunxSRu7ZnSmNZLikUgzhs=; b=twTRQmlK4doiwi+XUWNNcYa1VWP/QW3HaS3jzKftkgrZ+IP8d4QQwbjKaUMvNQZMoc jKxI5auYsE7ah+N9Q00AlvnlafXJGm3+y6NfSAIjvdXn7f45SWVEzW71zuIqSNKw1l9X Txrd5aruvJwoBagMKDUbcMASM0t6GVa6Bq4to= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:organization:x-operating-system:user-agent; b=afl5QegelyhFhrnOF3u7uCHHhiVMwKHUcLsC9m3s5n75GfYwKMme1zjABoOcR0wzO7 2qMwWV2Dr+tZmCU2VJyazA2VRrvdvh2SUQPNgZ37DN9sI+iYxZK58aZJpjgd4cA7QdMo +sS66CBek/rwymgmSzlCF7ni+VfhoRCl3gBuM= Received: by 10.42.179.133 with SMTP id bq5mr7789538icb.242.1296478660993; Mon, 31 Jan 2011 04:57:40 -0800 (PST) Received: from fbsd.t60.cpu ([180.141.181.132]) by mx.google.com with ESMTPS id gy41sm17910764ibb.11.2011.01.31.04.57.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 31 Jan 2011 04:57:40 -0800 (PST) Date: Mon, 31 Jan 2011 20:57:29 +0800 From: Yue Wu To: ml-freebsd-stable Message-ID: <20110131125729.GA5163@fbsd.t60.cpu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: China Pharmaceutical University, Nanjing, China X-Operating-System: FreeBSD 8.2-PRERELEASE i386 User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Error produced by static ip setting: ifconfig: inet: bad value X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jan 2011 13:23:27 -0000 List, Hi. I use following setting for my wireless networking enviroment: ifconfig_wlan0="mode 11g bssid my:bssid wepmode on weptxkey 1 wepkey 1:0x1111111111 DHCP" But I don't like DHCP and want to use static ip, so I tried: ifconfig_wlan0="mode 11g bssid my:bssid wepmode on weptxkey 1 wepkey 1:0x1111111111 inet 192.168.1.144 netmask 255.255.255.0" But the setting makes BSD networking not working anymore, and when the system starts up, there's an error message: ifconfig: inet: bad value What's wrong? How to use static ip in my wireless networking? -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceutical University No.24, Tongjia Xiang Street, Nanjing 210009, China