Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2008 23:25:44 +0200
From:      "Antipov Dima" <tdcmystere@gmail.com>
To:        "Eduardo Meyer" <dudu.meyer@gmail.com>, freebsd-net@freebsd.org
Subject:   Re: ifconfig won't allow me to change ether address and inet address in the same command
Message-ID:  <fae1a9c90810211425m5a9df81bn6044d2c6d48f58eb@mail.gmail.com>
In-Reply-To: <20081021204007.GS66228@hal.rescomp.berkeley.edu>
References:  <d3ea75b30810211148l798ee274s77081b12962d15f4@mail.gmail.com> <20081021204007.GS66228@hal.rescomp.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
and sysinstall not work for you?

2008/10/21 Christopher Cowart <ccowart@rescomp.berkeley.edu>

> Eduardo Meyer wrote:
> > # 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
>
> Somebody might have a hint for a single ifconfig command, but you can
> also create the file /etc/start_if.rl0 with any additional commands to
> be run by rc. This will get sourced automatically by rc _before_ the
> value of ifconfig_rl0 in /etc/rc.conf.
>
> For example, in /etc/rc.conf, leave
>
> | ifconfig_rl0="inet 192.168.2.12 netmask 255.255.255.0"
>
> And in /etc/start_if.rl0, add:
>
> | ifconfig rl0 ether 00:02:4f:0a:ce:f3
>
> --
> Chris Cowart
> Network Technical Lead
> Network & Infrastructure Services, RSSP-IT
> UC Berkeley
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fae1a9c90810211425m5a9df81bn6044d2c6d48f58eb>