Hello,
I’m having trouble finding documentation on how to do this configuration so that this works at hardware speed.
Here is a simple example, how do I accomplish this?
Two circuits are communicating with switch through sfp1
Circuit 1 has vlan tags: inner vlan 10, outter vlan 100
Circuit 2 has vlan tags: inner vlan 20, outter vlan 200
I want to hand off the inner vlan 10 to sfp2 with just the inner tag
Of course vice versa as well (vlan 10 traffic from sfp2 would receive additional outer tag of 200 out sfp1; vlan 20 in sfp2 would get an additional outer tag of 200 out sfp1)
In the “old” way in software, I could add vlan interfaces and bridge like this:
#Add vlan interfaces for outer and inner vlans on sfp1, setup same tags as inner tags on sfp2
/interface vlan
add interface=sfp-sfpplus1 name=sfp1.vlan100 vlan-id=100
add interface=sfp1.vlan100 name=sfp1.vlan100.vlan10 vlan-id=10
add interface=sfp-sfpplus1 name=sfp1.vlan200 vlan-id=200
add interface=sfp1.vlan200 name=sfp1.vlan200.vlan20 vlan-id=20
add interface=sfp-sfpplus2 name=sfp2.vlan10 vlan-id=10
add interface=sfp-sfpplus2 name=sfp2.vlan20 vlan-id=20
#Bridge sfp1 inner vlans to same vlan IDs on sfp2
/interface bridge
add name=bridge10 protocol-mode=none
add name=bridge20
/interface bridge port
add bridge=bridge10 interface=sfp1.vlan100.vlan10
add bridge=bridge10 interface=sfp2.vlan10
add bridge=bridge20 interface=sfp1.vlan200.vlan20
add bridge=bridge20 interface=sfp2.vlan20