From owner-freebsd-stable@FreeBSD.ORG Mon Jan 31 13:39:53 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 A775F106566C for ; Mon, 31 Jan 2011 13:39:53 +0000 (UTC) (envelope-from vanopen@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6A6078FC0C for ; Mon, 31 Jan 2011 13:39:53 +0000 (UTC) Received: by iyb26 with SMTP id 26so4961421iyb.13 for ; Mon, 31 Jan 2011 05:39:52 -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:references :mime-version:content-type:content-disposition:in-reply-to :organization:x-operating-system:user-agent; bh=BTyer1n07WvMCk/uLKIyg6bhnW7GOrPsooizVpzFG7k=; b=o9MwcfJFh4Ub/dqCAQ/Se7qUJ1N9C6oNAf7xI4T/ZLMm9qmpP7KCiWsR9r0nOsRmvS Vi0tIVD5uzbKw8nSvM2ok7JjrvL2I6z3qBzfEEVO79f76AWYC1XvSSGIaeZfJQEdlcba icpW/ymu7+XKuAxfPsnOu7KW+BxwY1cZfj1GI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:organization :x-operating-system:user-agent; b=r0G0M6ft8/oM492RU1+Jpe0YKsdkRGdY4oLFgJHvjP7z0WnV3ThajSMkuiyfM55T1o xUu6ZwkX8pdazmztMm4kXGWGEtgCx4ODW7Et5K3pTg+yyIVHfX/W+B+X0nLmqw6R/rAc UZ2Pe+gpwrkXfDUDv3aYvEDDD9ZbdRM9U6xIU= Received: by 10.42.173.10 with SMTP id p10mr3786239icz.142.1296481192543; Mon, 31 Jan 2011 05:39:52 -0800 (PST) Received: from fbsd.t60.cpu ([180.141.181.132]) by mx.google.com with ESMTPS id gy41sm17947113ibb.17.2011.01.31.05.39.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 31 Jan 2011 05:39:52 -0800 (PST) Date: Mon, 31 Jan 2011 21:39:34 +0800 From: Yue Wu To: ml-freebsd-stable Message-ID: <20110131133934.GA1367@fbsd.t60.cpu> References: <20110131125729.GA5163@fbsd.t60.cpu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110131125729.GA5163@fbsd.t60.cpu> Organization: China Pharmaceutical University, Nanjing, China X-Operating-System: FreeBSD 8.2-PRERELEASE i386 User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: 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:39:53 -0000 On Mon, Jan 31, 2011 at 08:57:29PM +0800, Yue Wu wrote: > 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? > The setting: ifconfig_wlan0="inet 192.168.1.111 netmask 255.255.255.0 mode 11g bssid my:ssid wepmode on weptxkey 1 wepkey 1:0x1111111111" works for me, don't know why, maybe the inet string must be put at the head of the value? -- 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