From owner-freebsd-stable@FreeBSD.ORG Tue Feb 1 01:56:02 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 A72C1106564A for ; Tue, 1 Feb 2011 01:56:02 +0000 (UTC) (envelope-from vanopen@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5C5948FC0A for ; Tue, 1 Feb 2011 01:56:02 +0000 (UTC) Received: by yxh35 with SMTP id 35so2406013yxh.13 for ; Mon, 31 Jan 2011 17:56:01 -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=/54g/sU/fIrfz93FRDxQxHvZpOhZO13ByLeYnV2wCwg=; b=N4wxGygjuhbR7i6R32JzfLcY6ijMca7pn6woxhkZNybA2/yzsq+LVeXEQPE3Zh4MxV YFA/qH3ieLjAhkL1RX2yk9Z5vu9yBcmtlaGCPNMdrVJzKFSaRQUH4bHxOpmF9lW7ZIj7 G2bwlXfQkw2byGzzor0OYW8AZwMiF4y3G93sc= 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=fvRI9bKacb3qb3Nk/xggANKMbs5uI9dwZ4yYe7O91oX72DqxHLdCVKKYEWKx5XpJxO oQrk921SG6kNIZCIZtVzpPQdVU/CkTyvrVolqnMD4kPo5xTxU2CP4AQxJoLD574IYvWU BOUw2f94PEatutBbj+QqxCo71mP4Ia5+TxBNQ= Received: by 10.150.203.10 with SMTP id a10mr1502838ybg.301.1296525361514; Mon, 31 Jan 2011 17:56:01 -0800 (PST) Received: from fbsd.t60.cpu ([180.141.178.90]) by mx.google.com with ESMTPS id p32sm13867288ybk.8.2011.01.31.17.55.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 31 Jan 2011 17:56:00 -0800 (PST) Date: Tue, 1 Feb 2011 09:55:47 +0800 From: Yue Wu To: freebsd-stable@freebsd.org Message-ID: <20110201015547.GA17910@fbsd.t60.cpu> References: <20110131125729.GA5163@fbsd.t60.cpu> <201101311450.25738.bschmidt@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201101311450.25738.bschmidt@freebsd.org> 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: Tue, 01 Feb 2011 01:56:02 -0000 On Mon, Jan 31, 2011 at 02:50:25PM +0100, Bernhard Schmidt wrote: > On Monday, January 31, 2011 13:57:29 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? > > Remove the 'inet', it isn't required. > Thanks Schmidt, I haven't tried with your advice because the issue has gone after I put the `inet' in front of the value of ifconfig_wlan0, I will take a note for your hint and try it next time ;p p.s., examples in the handbook [1] have the `inet', why? [1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html -- 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