Subject: Re: vlan creation
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Michael Graff <explorer@flame.org>
List: tech-net
Date: 08/10/2002 13:36:11
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It didn't work for me for some reason... I'll look elsewhere.
- --Michael
Jason R Thorpe <thorpej@wasabisystems.com> writes:
> 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>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)
Comment: See http://www.flame.org/~explorer/pgp for my keys
iD8DBQE9VXk7l6Nz7kJWYWYRAjgIAJ9tn/i0bfFbTKZfu2NoLtgmTlI8QwCffkxh
lkXDkFZl41ae/hpY/Ic9OwQ=
=wlll
-----END PGP SIGNATURE-----