Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2008 12:03:32 -0200
From:      "Eduardo Meyer" <dudu.meyer@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:  <d3ea75b30810220703k449363baq1fd483b6626436a7@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
On Tue, Oct 21, 2008 at 6:40 PM, Christopher Cowart
<ccowart@rescomp.berkeley.edu> wrote:
> 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
>

Thank you Chris, I didnt know about /etc/start_if.<if>, would do for
me, however I will use ip4_addrs_if to keep things in rc.conf :) Thank
you :-)



-- 
===========
Eduardo Meyer
pessoal: dudu.meyer@gmail.com
profissional: ddm.farmaciap@saude.gov.br



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