is it possible to assign multiple VIDs to the same port using brctl and vconfig?
Suppose you have a linux box with three ethernet interfaces (eth0, eth1, eth2). I want to configure eth0 in trunking mode with VID 10,20,30 and put eth1 on VLAN 20 and eth2 on VLAN 30. This is achievable with the following commands:
vconfig add eth0 20
vconfig add eth0 30
brctl addbr br20
brctl addbr br30
brctl addif br20 eth0.20
brctl addif br20 eth1
brctl addif br30 eth0.30
brctl addif br30 eth2
This way packets tagged with 10 that arrives at eth0 are sent out untagged on eth1 and packets tagged with 20 that arrives to eth0 are sent out untagged on eth2.
Now if I want to assign both eth1 and eth2 also to VLAN 10 what should I do? And is it possible or not?