Subject: Re: vlan creation
To: Michael Graff <explorer@flame.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-net
Date: 08/10/2002 11:53:28
On Sat, Aug 10, 2002 at 01:31:50AM -0700, Michael Graff wrote:
> How are people currently creating vlan interfaces?
>
> I wrote a rc.d/vlan script that runs before ipfilter, and basically
> does
> ifconfig $vlan create
> and if interface and id are specified,
> ifconfig $vlan vlan $id vlanif $int
>
> This lets me use vlan interface names in ipf.conf, as well as
> using standard ifconfig.vlanX files to configure them.
No need -- just use /etc/ifconfig.vlan0 or whatever. This is what I
do, and it works great:
/etc/ifconfig.vlan0:
create
vlan 2 vlanif wm1
inet 192.168.1.1 netmask 255.255.255.0
> AFAIK, if ifconfig.vlan0 exists, it isn't actually consulted unless
> vlan0 already exists.
Nonsense :-) I use this same trick for gif interfaces, as well. It
works fine.
> Should I check this goop in?
No. The existing mechanism works fine.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>