VLAN support in rcNG [PATCH]

Ruslan Ermilov ru at freebsd.org
Sat Apr 17 16:06:48 PDT 2004

On Sat, Apr 17, 2004 at 04:55:38PM -0400, Adam C. Migus wrote:
> Quoting Ruslan Ermilov <ru at freebsd.org>:
> > So, how your patch is different from the existing functionality?
> > 
> Hmmm, well, it's not.  In fact the code is almost a copy of the cloned
> interfaces stuff.  The thing is when you try to use the existing cloned
> interfaces stuff to create a vlan interface, the lack of the _tag and
> _dev stuff in combination with things like this:
> /etc/network.subr:318:    _tmplist="${_tmplist} ${cloned_interfaces}"
> creating vlans as cloned interfaces tends to be more of a crude hack
> than an easy, one-step configuration.
> If you can show me how I can create a vlan, using the existing stuff
> with the functionality I want (DHCP or static IP, etc.) without writing
> any code beyond declarations in rc.conf, show me, otherwise I'm
> suggesting this patch as it makes it easy.
Hmm, I have this in my /etc/rc.conf:

ifconfig_vlan0="x.x.x.x/28 vlan 65 vlandev rl0 mtu 1500"

and I'm pretty sure it works.  ;)

Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040418/fc3779ca/attachment.bin

More information about the freebsd-current mailing list