tag-rewrite
To configure VLAN tag rewrite, use the tag-rewrite command in Encapsulation MPLS configuration mode.
To disable VLAN tag rewrite, use the no form of this command.
tag-rewrite ingress vlan vlan-id
no tag-rewrite ingress vlan vlan-id
Syntax Description
Configures ingress mode.ingress
Configures VLAN tagged modevlan
Specifies the value of the ID of the VLAN.
vlan-id
Command Default
None
Command Modes
Encapsulation MPLS configuration
Command History
ModificationRelease
This command was introduced.Release 3.7.0
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
The tag-rewrite command is applicable only to pseudowires with MPLS encapsulation.
Task ID
OperationsTask ID
read, writel2vpn
Examples
The following example shows how to configure preferred-path tunnel settings:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# l2vpn
RP/0/0/CPU0:router(config-l2vpn)# pw-class kanata01
RP/0/0/CPU0:router(config-l2vpn-pwc)# encapsulation mpls
RP/0/0/CPU0:router(config-l2vpn-pwc-encap-mpls)# tag-rewrite vlan 2000
RP/0/0/CPU0:router(config-l2vpn-pwc-encap-mpls)#
Cisco IOS XR Virtual Private Network Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
144 OL-28460-01
Virtual Private Network Commands
tag-rewrite