From owner-freebsd-stable@FreeBSD.ORG Wed Oct 22 04:53:32 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 B95F01065674 for ; Wed, 22 Oct 2008 04:53:32 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [91.121.27.225]) by mx1.freebsd.org (Postfix) with SMTP id 20BB28FC0A for ; Wed, 22 Oct 2008 04:53:31 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: (qmail 23858 invoked by uid 503); 21 Oct 2008 20:09:40 -0000 Received: from unknown (HELO mail155.ha.ovh.net) (213.186.33.59) by 26.mail-out.ovh.net with SMTP; 21 Oct 2008 20:09:40 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 21 Oct 2008 20:09:02 -0000 Received: from unknown (HELO localhost) (maciej@suszko.eu@62.61.57.118) by ns0.ovh.net with SMTP; 21 Oct 2008 20:08:58 -0000 Date: Tue, 21 Oct 2008 22:08:57 +0200 From: Maciej Suszko To: "Eduardo Meyer" Message-ID: <20081021220857.6877d792@suszko.eu> In-Reply-To: References: X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/CUy8DMkN2QJNGNZiCzKYhEJ"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Ovh-Tracer-Id: 3952471624263819418 X-Ovh-Remote: 62.61.57.118 () X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/N 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: Wed, 22 Oct 2008 04:53:32 -0000 --Sig_/CUy8DMkN2QJNGNZiCzKYhEJ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable "Eduardo Meyer" wrote: > Hello :) >=20 > Please, follow: >=20 > # 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 >=20 > # ifconfig rl0 inet 192.168.2.12 netmask 255.255.255.0 ether > 00:02:4f:0a:ce:f3 ifconfig: ether: bad value >=20 > # ifconfig rl0 inet 192.168.2.12 netmask 255.255.255.0 > # ifconfig rl0 ether 00:02:4f:0a:ce:f3 >=20 > I ask you some help, how can I accomplish both tasks with rc_ng? > In /etc/rc.conf >=20 > ifconfig_rl0=3D"inet 192.168.2.12 netmask 255.255.255.0 ether > 00:02:4f:0a:ce:f3" >=20 > 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? >=20 > Or can ifconfig accomplish this task by someway else other than > issuing the command twice? Use ifconfig_rl0_alias0 for second task. --=20 regards, Maciej Suszko. --Sig_/CUy8DMkN2QJNGNZiCzKYhEJ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkj+NtkACgkQCikUk0l7iGqIMgCgg81MocPyMcp1G5KMsday18VV KXgAn2hgaDhI6voEfx8DZHLLf2tgHtBe =alyJ -----END PGP SIGNATURE----- --Sig_/CUy8DMkN2QJNGNZiCzKYhEJ--