From owner-freebsd-stable@FreeBSD.ORG Tue Oct 21 20:41:19 2008 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 C2A211065672; Tue, 21 Oct 2008 20:41:19 +0000 (UTC) (envelope-from vanhu@zeninc.net) Received: from smtp.zeninc.net (smtp.zeninc.net [80.67.176.25]) by mx1.freebsd.org (Postfix) with ESMTP id 806C08FC26; Tue, 21 Oct 2008 20:41:19 +0000 (UTC) (envelope-from vanhu@zeninc.net) Received: from albator.zen.inc (albator.zen.inc [192.168.1.5]) by smtp.zeninc.net (smtpd) with ESMTP id C5D272798B5; Tue, 21 Oct 2008 22:25:09 +0200 (CEST) Received: by albator.zen.inc (Postfix, from userid 1000) id 9FD0E731DE; Tue, 21 Oct 2008 22:25:09 +0200 (CEST) Date: Tue, 21 Oct 2008 22:25:09 +0200 From: VANHULLEBUS Yvan To: Eduardo Meyer Message-ID: <20081021202509.GA2736@zeninc.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: All mail clients suck. This one just sucks less. Cc: freebsd-net@freebsd.org, freebsd-stable@freebsd.org Subject: Re: ifconfig won't allow me to change ether address and inet address in the same command 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, 21 Oct 2008 20:41:19 -0000 On Tue, Oct 21, 2008 at 04:48:50PM -0200, Eduardo Meyer wrote: > Hello :) Hi. > Please, follow: > > # ifconfig rl0 ether 00:02:4f:0a:ce:f3 inet 192.168.2.12 netmask 255.255.255.0 > ifconfig: can't set link-level netmask or broadcast > > # ifconfig rl0 inet 192.168.2.12 netmask 255.255.255.0 ether 00:02:4f:0a:ce:f3 > ifconfig: ether: bad value > > # ifconfig rl0 inet 192.168.2.12 netmask 255.255.255.0 > # ifconfig rl0 ether 00:02:4f:0a:ce:f3 > > I ask you some help, how can I accomplish both tasks with rc_ng? In /etc/rc.conf > > ifconfig_rl0="inet 192.168.2.12 netmask 255.255.255.0 ether 00:02:4f:0a:ce:f3" > > Won't allow me to do what I want. Any suggestions? I would like like > to edit /etc/rc.local and any other kind of "workaround". Can rc.conf > issue ifconfig twice for the same nic? > > Or can ifconfig accomplish this task by someway else other than > issuing the command twice? For your information, I already filled PR bin/124004 some moths ago related to that issue. Yvan.