VLAN support in rcNG [PATCH]

Brooks Davis brooks at one-eyed-alien.net
Sat Apr 17 16:53:03 PDT 2004


On Sat, Apr 17, 2004 at 04:25:06PM -0400, Adam C. Migus wrote:
> The following is a patch that adds support for vlan creation and
> destruction within rcNG.  Using the patch it's possible, for example,
> to create a vlan, `vlan0' with the following directives in rc.conf:
> 
> vlan_interfaces="vlan0"
> ifconfig_vlan0="DHCP"
> ifconfig_vlan0_vlan_dev="xl0"
> ifconfig_vlan0_vlan_tag="2"
> 
> Is this patch of general interest?  Should I submit a PR?

If it wasn't for the patch I'm working on, I'd answer yes.  Howerver,
I've got a patch that I need to submit for review and then commit that
will let you do this is a one shot with the clone code.  It works by
doing a major overhaul of the device cloning support so you can create
interfaces of the form <etherif>.<vlantag> and get an vlan interface
with the appropriate parent and tag.  Using your example that would mean
you the follwing in your /etc/rc.conf:

cloned_interfaces="xl0.2"

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040417/e8642163/attachment.bin


More information about the freebsd-current mailing list