Example VLAN translation configuration on Juniper SRX for translating VLANs 800 to 8 and 500 to 5:

[edit interfaces ge-0/0/1 unit 0 family bridge]

interface mode trunk
vlan-id-list [ 5 8 500-800 ];
vlan-rewrite {
    translate 800 8;
    translate 500 5;
}

Translation occurs on ingress interfaces with reverse translation on egress, applicable only to trunk interfaces.