Subject: Re: vlan creation
To: Michael Graff <>
From: Jason R Thorpe <>
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:


vlan 2 vlanif wm1
inet netmask

 > 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 <>