From owner-freebsd-stable@FreeBSD.ORG Mon Jan 31 13:50:38 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 CB84A106566C for ; Mon, 31 Jan 2011 13:50:38 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 61D3D8FC17 for ; Mon, 31 Jan 2011 13:50:37 +0000 (UTC) Received: by bwz12 with SMTP id 12so5314347bwz.13 for ; Mon, 31 Jan 2011 05:50:37 -0800 (PST) Received: by 10.204.34.142 with SMTP id l14mr5171140bkd.152.1296481836982; Mon, 31 Jan 2011 05:50:36 -0800 (PST) Received: from jessie.localnet (p5B2EC39D.dip0.t-ipconnect.de [91.46.195.157]) by mx.google.com with ESMTPS id rc9sm8828632bkb.2.2011.01.31.05.50.34 (version=SSLv3 cipher=RC4-MD5); Mon, 31 Jan 2011 05:50:35 -0800 (PST) Sender: Bernhard Schmidt From: Bernhard Schmidt To: Yue Wu Date: Mon, 31 Jan 2011 14:50:25 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.32-28-generic; KDE/4.4.5; i686; ; ) References: <20110131125729.GA5163@fbsd.t60.cpu> In-Reply-To: <20110131125729.GA5163@fbsd.t60.cpu> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201101311450.25738.bschmidt@freebsd.org> Cc: freebsd-stable@freebsd.org 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 Reply-To: bschmidt@freebsd.org 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:50:38 -0000 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. -- Bernhard