Compartilhando aqui um caso que surgiu a necessidade de implementação. A ideia era estabelecer transporte l2vpn entre huawei e cisco, porém com vlans diferentes em cada ponta. Ocorre que a configuração em 2 huawei por exemplo, é tranquila. Já nesse caso com Cisco, muda um pouco, vou compartilhar o material de referência para entender melhor.
Diferente de outros roteadores, a Cisco em X Series, usa a tag como um classificador. Em roteadores tradicionais é removido a tag antes de serem transportados pelo l2vpn.
Por exemplo transporte l2vc entre huawei, contanto que o VCI sejam iguais, o ID das vlans não importa se são diferentes nas pontas.
O que diz a Cisco:
IOS XR L2VPN Services and Features
On traditional routers that do not use the Ethernet Virtual Connection (EVC) model, the VLAN tags configured under the subinterface are removed (popped) from the frame before they are transported by the L2VPN feature. On a Cisco ASR 9000 Series Aggregation Services Router that uses the EVC infrastructure, the default action is to preserve the existing tags. Use the rewrite command to modify the default.
CONFIGURAÇÃO
Para manipular a tag, usamos o comando rewrite. O comportamento é sempre simétrico, o que significa que a tag externa 20 é removida na direção de entrada e empurrada na direção de saída.
CISCO
interface HundredGigE0/0/0/1.20 l2transport
encapsulation dot1q 20
rewrite ingress tag translate 1-to-1 dot1q 10 symmetric
mtu 9198
l2vpn xconnect group teste
p2p 10
interface HundredGigE0/0/0/1.20
neighbor ipv4 X.X.X.X pw-id 10
pw-class L2VPN-VPWS-VLAN
huawei
interface Vlanif10
description teste
mpls l2vc Y.Y.Y.Y 10 mtu 9198 no-control-word
DIAGRAMA
