Date: Tue, 21 Oct 2008 22:08:57 +0200 From: Maciej Suszko <maciej@suszko.eu> To: "Eduardo Meyer" <dudu.meyer@gmail.com> 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 Message-ID: <20081021220857.6877d792@suszko.eu> In-Reply-To: <d3ea75b30810211148l798ee274s77081b12962d15f4@mail.gmail.com> References: <d3ea75b30810211148l798ee274s77081b12962d15f4@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/CUy8DMkN2QJNGNZiCzKYhEJ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable "Eduardo Meyer" <dudu.meyer@gmail.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081021220857.6877d792>