Introduction
This document describes how to configure VLAN (Virtual Local Area Network) translation on a Cisco ASR router in order to establish layer 2 communication between devices in two different VLANs across an OTV (Overlay Transport Virtualization) network.
Network Diagram
Configure
Method 1 :
In this method, a VLAN tag rewrite is configured only on the Overlay interface of a Cisco ASR router in order to translate the VLAN tag from one VLAN to another.
ASR-1
On the Internal Interface :
service instance 10 ethernet
encapsulation dot1q 10
bridge-domain 10
On the Overlay Interface:
service instance 10 ethernet
encapsulation dot1q 20
rewrite ingress tag translate 1-to-1 dot1q 10 symmetric
bridge-domain 10
ASR-2
On the Internal Interface :
service instance 20 ethernet
encapsulation dot1q 20
bridge-domain 20
On the Overlay Interface:
service instance 20 ethernet
encapsulation dot1q 20
bridge-domain 20
Method 2 :
In this method, a VLAN tag rewrite is configured on both the Internal and Overlay interfaces of a Cisco ASR router in order to remove one VLAN tag and then add a new one.
ASR-1
On the Internal Interface :
service instance 10 ethernet
encapsulation dot1q 10
rewrite ingress tag pop 1 symmetric
bridge-domain 10
On the Overlay Interface:
service instance 10 ethernet
encapsulation dot1q 20
rewrite ingress tag pop 1 symmetric
bridge-domain 10
ASR-2
On the Internal Interface :
service instance 20 ethernet
encapsulation dot1q 20
bridge-domain 20
On the Overlay Interface:
service instance 20 ethernet
encapsulation dot1q 20
bridge-domain 20