From owner-freebsd-net@FreeBSD.ORG Wed May 6 13:44:38 2009 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 1CD171065676 for ; Wed, 6 May 2009 13:44:38 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from mail.giulioferro.it (mail.giulioferro.it [85.18.102.52]) by mx1.freebsd.org (Postfix) with ESMTP id C8B6C8FC1A for ; Wed, 6 May 2009 13:44:37 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from localhost (localhost [127.0.0.1]) by mail.giulioferro.it (Postfix) with ESMTP id 156BC33C17; Wed, 6 May 2009 15:46:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at giulioferro.it Received: from mail.giulioferro.it ([127.0.0.1]) by localhost (aurynwork1sv1.giulioferro.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r28sy+cWEAG8; Wed, 6 May 2009 15:46:42 +0200 (CEST) Received: from aurynmob2.giulioferro.it (localhost [127.0.0.1]) (Authenticated sender: gferro@giulioferro.it) by mail.giulioferro.it (Postfix) with ESMTP id 8668833C11; Wed, 6 May 2009 15:46:42 +0200 (CEST) Message-ID: <4A01943F.6000400@zirakzigil.org> Date: Wed, 06 May 2009 15:44:31 +0200 From: Giulio Ferro User-Agent: Thunderbird 2.0.0.21 (X11/20090323) MIME-Version: 1.0 To: Chris Cowart , freebsd-net@freebsd.org References: <4A00BE6C.5030800@zirakzigil.org> <20090505225425.GA49013@hal.rescomp.berkeley.edu> In-Reply-To: <20090505225425.GA49013@hal.rescomp.berkeley.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Configure networking outside rc.conf 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, 06 May 2009 13:44:40 -0000 Chris Cowart wrote: > Assuming the NICs are displayed by ifconfig -a or inserted into > cloned_interfaces in /etc/rc.conf, you can create the following scripts: > > /etc/start_if.vlan100 > /etc/stop_if.vlan100 > > Where start_if.vlan100 is sourced by the netif start and stop_if.vlan100 > is sourced by the netif stop. > > For example: > > | ccowart dev-aux etc $ cat /etc/start_if.vlan81 > | ifconfig vlan81 vlan 81 vlandev em0 > | ifconfig vlan81 inet 10.81.1.1/16 > > I don't know that two files per interface is any cleaner than a really > long /etc/rc.conf (I usually prefer the latter, but I generally am not > dealing with more than 20-40 lines at most). > > Thanks for the reply. What should be normally put in the stop_if. file? Do the "stop" files make sense? Anyway I'll try to make it fit with what I need.