This article explains the requirements in order to use the vlan-rewrite statement in the configuration.
While configuring the vlan-rewrite statement, the following error might be observed.
[edit interfaces ae3 unit 0 family ethernet-switching vlan-rewrite] translate 3414 { ... } + translate 10 1779; + translate 20 1779; [edit interfaces ae3 unit 0 family ethernet-switching vlan-rewrite] 'translate 10' Ambiguous to-vlan-id statement present error: configuration check-out failed
Translate a VLAN ID (the from-vlan-id) in an incoming packet to another VLAN ID (the to-vlan-id) that you have configured on an interface. The device does the corresponding translation in reverse at egress.
You can configure VLAN translation with the vlan-rewrite translate statement as follows:
vlan-rewrite translate
An example configuration -
root@switch# show interfaces ae3 unit 0 family ethernet-switching { interface-mode trunk; vlan { members vlan771; } vlan-rewrite { translate 100 771; translate 101 771; translate 102 771; } }