[RFC] [PATCH] Mode=Switch: add per-VLAN forwarding database

Michael Braun michael-dev at fami-braun.de
Tue Jan 6 12:31:20 CET 2015


Hi,

I'm inter-connecting AccessPoints using a tinc mesh and have bridge-nodes to bridge this vpn into some existing backbone.
The AccessPoints bridge their users into 802.1q VLANs (per WiFi-Client, there can be multiple VLANs active on each AP) in the tinc mesh, and the bridge nodes bridge some vlans into the backbone.
Now there is a router in the backbone that uses the same MAC on all VLANs, thus its MAC appears on all bridge nodes.
As the forwarding database of tinc currently is not aware of vlans, this leads to conflicting subnet entries for the router mac pointing to one of the bridge nodes. Thus, only one subnet will work at a time.

To resolve this, please find attached a patch that enables tinc to have the VLAN-id included in its SUBNET_MAC entries.
For backward compatibility, adding the VLAN-id to SUBNET_MAC entries needs to be enabled using a configuration option.

The patch is based on tinc 1.0.25.

Any comments?

Regards,
 M. Braun

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tinc-add-vlan-fdb.patch
Type: text/x-diff
Size: 12415 bytes
Desc: not available
URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20150106/58d937e9/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20150106/58d937e9/attachment.sig>


More information about the tinc-devel mailing list