Hi all. I have a need to remap VLANs between two switches. One is managed by me, the other is managed by a vendor. I’m wondering the best way to do this in VyOS. I have tested it using bridges, but I don’t know if this is the optimal or best way to do this.
The example below is very simple, but it has the possibility to ramp up to many VLAN remappings in the near future.
For example, I want to translate the following.
Switch 1 VLAN | Switch 2 VLAN |
---|---|
9 | 814 |
620 | 815 |
So if packets come in tagged with VLAN 9 on one port, they will be passed out through the other port tagged with VLAN 814. And 620 will be tagged as 815 on the other end, etc.
I’m using the below configuration.
set interfaces bridge br0 description 'eth1.814 to eth0.9'
set interfaces bridge br0 member interface eth0.9
set interfaces bridge br0 member interface eth1.814
set interfaces bridge br1 description 'eth1.815 to eth0.620'
set interfaces bridge br1 member interface eth0.620
set interfaces bridge br1 member interface eth1.815
set interfaces ethernet eth0 description 'Trunk to Switch 1'
set interfaces ethernet eth0 vif 9 description 'VLAN 9'
set interfaces ethernet eth0 vif 620 description 'VLAN 620'
set interfaces ethernet eth1 description 'Trunk to Switch 2'
set interfaces ethernet eth1 vif 814 description 'VLAN 814'
set interfaces ethernet eth1 vif 815 description 'VLAN 815'