From owner-freebsd-net@FreeBSD.ORG Tue Oct 21 21:25:45 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 5F857106567F for ; Tue, 21 Oct 2008 21:25:45 +0000 (UTC) (envelope-from tdcmystere@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id 2FDC38FC24 for ; Tue, 21 Oct 2008 21:25:45 +0000 (UTC) (envelope-from tdcmystere@gmail.com) Received: by wa-out-1112.google.com with SMTP id n4so1394621wag.27 for ; Tue, 21 Oct 2008 14:25:44 -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:references; bh=RbYwkCnNb+ejQOJ1SkTcbH1GI4SwZVKN/S792UM8jUI=; b=L3DRF7B4LPnQxWxdxHAPSAS8YdCs1eby/8jvYptQ19bcz0QTaaurGWadCAuVJ0UEAX eNlXkUkD34pLEy+5pkPm3yKOhvA/6+iYLKdk3dzPRuYJcYBtYy0hOZV3QouGH89uzV5U z+FH+gS+vL4i44FC+xFEENravEKlVqzVT0M+U= 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:references; b=nOflvjboUqukflwJjhDFPs3QlSmIV3cNe98vcjVbd2ByG45NA7jEn8UWtmUDKCWrDv GeFx6DVPK5mfoOyEMD43SDk+YJhBmugBsRmJ/rb49gNVcqpoUL+5r4oRc+Qj3c4TRAmD fFzchdxzZP+dZzBr6q++GCiuVPN80W7Uy6Zx4= Received: by 10.114.181.6 with SMTP id d6mr6859392waf.174.1224624344711; Tue, 21 Oct 2008 14:25:44 -0700 (PDT) Received: by 10.114.102.12 with HTTP; Tue, 21 Oct 2008 14:25:44 -0700 (PDT) Message-ID: Date: Tue, 21 Oct 2008 23:25:44 +0200 From: "Antipov Dima" To: "Eduardo Meyer" , freebsd-net@freebsd.org In-Reply-To: <20081021204007.GS66228@hal.rescomp.berkeley.edu> MIME-Version: 1.0 References: <20081021204007.GS66228@hal.rescomp.berkeley.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Tue, 21 Oct 2008 21:25:45 -0000 and sysinstall not work for you? 2008/10/21 Christopher Cowart > 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 >