Date: Wed, 06 May 2009 15:44:31 +0200 From: Giulio Ferro <auryn@zirakzigil.org> To: Chris Cowart <ccowart@rescomp.berkeley.edu>, freebsd-net@freebsd.org Subject: Re: Configure networking outside rc.conf Message-ID: <4A01943F.6000400@zirakzigil.org> In-Reply-To: <20090505225425.GA49013@hal.rescomp.berkeley.edu> References: <4A00BE6C.5030800@zirakzigil.org> <20090505225425.GA49013@hal.rescomp.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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.<iface> file? Do the "stop" files make sense? Anyway I'll try to make it fit with what I need.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A01943F.6000400>