[LiSA-Devel] 8021q and bridge implementation

Claudiu Ghioc claudiughioc at gmail.com
Thu May 2 18:50:08 EEST 2013


Hello everyone,

I have been looking over the "brctl" and "vconfig" tools and I tried
to understand how to start implementing the middleware with "bridge"
and "8021q" modules. I have a few questions on how to approach several
API functions:

1. In switch_init, now we add a default VLAN (VID 1), using the
"vlan_add" function. I believe we must add a default bridge (let's
name it br1) in which the switch interfaces will be added. Am I
correct?
2. When we add an interface to the switch, does this mean that we also
have to add it to the default bridge? (br1, VLAN id 1)
3. Each time we create a new VLAN we have to create a new bridge.
Therefore this action will not be reflected in the "8021q" module, but
only in the "bridge" module. Afterwards we will use the VLAN module if
we want to add an interface in a VLAN. Again, am I right?
4. If we want to add a VLAN (66) to a interface (say eth0) we also
have to create a new interface (eth0.66) and add it to the bridge
"br66" (the one for VLAN 66). What happens then with eth0? Don't we
also have to create a new interface eth0.1 for the default VLAN?

That's it for the moment. Thank you, happy Easter!

-- 
Claudiu Ghioc
Software Developer
CloudBit
Email: claudiu.ghioc at gmail.com
+(40) 745 783 796


More information about the LiSA-Devel mailing list