Bridge between 2 different vlans

"Ramzi Maalouf" <ramzi-lML08nMzyLFWk0Htik3J/[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.devel
Message-ID <000001c5158c$6ce88670$6b0a0a0a@ramziws>
Hello all. 

I am still a beginner with ebtables, and would really appreciate your
help with the following.

I am using fedora core 2 as bridge firewall. 

My current setup is as follows

 

 

+--------------------+   trunk             eth0 +----------------+  eth1
trunk  +--------------------+

 | Vlan Switch 1 |-------------------------------| FW/bridge
|-----------------------------------| Vlan Switch 2 |

+--------------------+                              +----------------+
+--------------------+            

            | vlan 2
| vlan 3

            |
|

            |
|

         PC1
PC2

 

I want to have PC1 and PC2 on the same subnet, that is, connected
through the bridge.

My configuration is as follows:

 

vconfig add eth0 2

vconfig add eth1 3

brctl addbr br 

brctl addif br eth0.2

brctl addif br eth1.3

ifconfig eth0.2 0.0.0.0 up

ifconfig eth1.3 0.0.0.0 up

ifconfig br up

 

The setup still does not work. However, if I use vlan 2 instead of 3 in
Switch 2, and replace 3 by 2 in the above configuration, the setup works
perfectly, as if the vlan tag is not stripped.

Is there anything I could do with ebtables to make the original setup
work?

Thanks for your time.

Any help would be greatly appreciated.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.