From owner-freebsd-stable@FreeBSD.ORG Tue Oct 21 19:11:47 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E25B106566B for ; Tue, 21 Oct 2008 19:11:47 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from mail-gx0-f16.google.com (mail-gx0-f16.google.com [209.85.217.16]) by mx1.freebsd.org (Postfix) with ESMTP id 476CD8FC14 for ; Tue, 21 Oct 2008 19:11:46 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by gxk9 with SMTP id 9so5795280gxk.19 for ; Tue, 21 Oct 2008 12:11:45 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=8TPvMEE3H4VQglFN5Otvcm1e3OB6q+Oyeabjfi+kcAc=; b=Pr0B7g8PddWzOx5kGMDwDGvjw21OwewNZOZ6AJVgEk3etikBnctcuitO214Eapx57o mQJNiCFMXgZ+inj2koKbuF5U5U9rX7oux/gDSOOi2528R5WaYSio6TswStJS8dJedqnJ xozZEygBHevvKb69cTLf2sIIlc/iI6OlfNNu4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=qy8yNupkBlpGDTGCqePnbPDR74sVhv4CJjRayWMjeEilJjjghq01Frr26SB6EA/rg8 t1WNlQ0txyfQuW0Ml2B6BOaigRY8HLnv3iVJ12H234hWzC34A+ybufume12rGT6PrFiZ H+QIDAWxpYNtxHskVxF+7D/kGMF3ouOOgMGFw= Received: by 10.64.181.19 with SMTP id d19mr7053854qbf.34.1224614930513; Tue, 21 Oct 2008 11:48:50 -0700 (PDT) Received: by 10.64.201.9 with HTTP; Tue, 21 Oct 2008 11:48:50 -0700 (PDT) Message-ID: Date: Tue, 21 Oct 2008 16:48:50 -0200 From: "Eduardo Meyer" To: freebsd-stable@freebsd.org, freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: ifconfig won't allow me to change ether address and inet address in the same command X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 19:11:48 -0000 Hello :) Please, follow: # 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 # ifconfig rl0 inet 192.168.2.12 netmask 255.255.255.0 ether 00:02:4f:0a:ce:f3 ifconfig: ether: bad value # 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 ifconfig_rl0="inet 192.168.2.12 netmask 255.255.255.0 ether 00:02:4f:0a:ce:f3" 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? Or can ifconfig accomplish this task by someway else other than issuing the command twice? Thank you. -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br