From owner-freebsd-net@FreeBSD.ORG Wed Oct 22 14:03:34 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B189910656A1 for ; Wed, 22 Oct 2008 14:03:34 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.245]) by mx1.freebsd.org (Postfix) with ESMTP id 661D18FC30 for ; Wed, 22 Oct 2008 14:03:34 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by hs-out-0708.google.com with SMTP id 54so1084083hsz.11 for ; Wed, 22 Oct 2008 07:03:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=pTj3sd6r31eUx6pMzgelEdea/JrmP180iYVvAgxiNGE=; b=DknBMKkoj4DBfYvmi0P681x3LIlrmQwH62K2POv9x1QlO9w4ex94yaEkYqbV3bHuXe 84GHXR2sznvJjPcj+nhbYy18s46Dv1kl8OSzUD4WSM1bVhiIr7xn0noXPN/l377c0bTl XWAj+BTfEF6qzbxFhnhziQWZaUiv5VwEdtdQA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=fzyBgoPlmago/GqMe4PHu89ZXWIJDV709GWzA0ow0PAy3+Ggpwlwh6XmB4dbOSBPqs H7CV0HotpmIXo5X/ZM3fwFrXm2SnYZcHhCxNrqMFhvWg5HyzTGa/IdY842qMrwDAfwya amwfQVJS0NOouaiFvxavtg5V1RoPBUGNoWCgY= Received: by 10.65.155.7 with SMTP id h7mr8335162qbo.96.1224684212783; Wed, 22 Oct 2008 07:03:32 -0700 (PDT) Received: by 10.64.201.9 with HTTP; Wed, 22 Oct 2008 07:03:32 -0700 (PDT) Message-ID: Date: Wed, 22 Oct 2008 12:03:32 -0200 From: "Eduardo Meyer" To: "Eduardo Meyer" , freebsd-net@freebsd.org In-Reply-To: <20081021204007.GS66228@hal.rescomp.berkeley.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081021204007.GS66228@hal.rescomp.berkeley.edu> Cc: Subject: Re: ifconfig won't allow me to change ether address and inet address in the same command X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2008 14:03:34 -0000 On Tue, Oct 21, 2008 at 6:40 PM, Christopher Cowart 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., 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