Subject: Re: vlan creation
To: Michael Graff <email@example.com>
From: Jason R Thorpe <firstname.lastname@example.org>
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
> 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 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
> Should I check this goop in?
No. The existing mechanism works fine.
-- Jason R. Thorpe <email@example.com>