rewrite ingress tag
To specify the encapsulation adjustment that is to be performed on the frame ingress to the service instance,
use the rewrite ingress tag command in the interface configuration mode. To delete the encapsulation
adjustment that is to be performed on the frame ingress to the service instance, use the no form of this command.
rewrite ingress tag {push {dot1q vlan-id| dot1q vlan-id second-dot1q vlan-id| dot1ad vlan-id dot1q vlan-id}|
pop {1| 2}| translate {1to1 {dot1q vlan-id| dot1ad vlan-id}| 2-to-1 dot1q vlan-id| dot1ad vlan-id}| 1-to-2
{dot1q vlan-id second-dot1q vlan-id| dot1ad vlan-id dot1q vlan-id}| 2-to-2 {dot1q vlan-id second-dot1q
vlan-id| dot1ad vlan-id dot1q vlan-id}} [symmetric]
no rewrite ingress tag {push {dot1q vlan-id| dot1q vlan-id second-dot1q vlan-id| dot1ad vlan-id dot1q
vlan-id}| pop {1| 2}| translate {1to1 {dot1q vlan-id| dot1ad vlan-id}| 2-to-1 dot1q vlan-id| dot1ad vlan-id}|
1-to-2 {dot1q vlan-id second-dot1q vlan-id| dot1ad vlan-id dot1q vlan-id}| 2-to-2 {dot1q vlan-id
second-dot1q vlan-id| dot1ad vlan-id dot1q vlan-id}} [symmetric]
Syntax Description
VLAN ID, integer in the range 1 to 4094.
vlan-id
Pushes one 802.1Q tag with vlan-id.push dot1q vlan-id
Pushes a pair of 802.1Q tags in the order first, second.
push dot1q vlan-id second-dot1q
vlan-id
One or two tags are removed from the packet. This command can
be combined with a push (pop N and subsequent push vlan-id).
pop {1 | 2}
Replaces the incoming tag (defined in the encapsulation command)
into a different 802.1Q tag at the ingress service instance.
translate 1-to-1 dot1q vlan-id
Replaces a pair of tags defined in the encapsulation command by
vlan-id.
translate 2-to-1 dot1q vlan-id
Replaces the incoming tag defined by the encapsulation command
by a pair of 802.1Q tags.
translate 1-to-2 dot1q vlan-id
second-dot1q vlan-id
Replaces the pair of tags defined by the encapsulation command by
a pair of VLANs defined by this rewrite.
translate 2-to-2 dot1q vlan-id
second-dot1q vlan-id
(Optional) A rewrite operation is applied on both ingress and egress.
The operation on egress is the inverse operation as ingress.
symmetric
Command Default
The frame is left intact on ingress.
Command Modes
Interface configuration
Cisco ASR 9000 Series Aggregation Services Router VPN and Ethernet Services Command Reference, Release
6.1.x
28
Ethernet Interfaces Commands
rewrite ingress tag