3com 5500-ei pwr Reference Guide

Page of 1314
 
2-3 
 
A packet cannot be tagged with different outer VLAN tags. To change the outer VLAN tag of a packet, 
you need to remove the existing outer VLAN tag configuration and configure a new outer VLAN tag.  
 
Before configuring this command in QinQ view, you need to use the vlan-vpn vid command to 
configure the outer VLAN tag to be used in the selective QinQ policy. 
Related commands: vlan-vpn vid.  
Examples 
# Configure Ethernet 1/0/1 to add the tag of VLAN 20 as the outer tag to packets with their inner VLAN 
IDs being 8 through 15. 
<Sysname> system-view 
System View: return to User View with Ctrl+Z. 
[Sysname] interface Ethernet 1/0/1 
[Sysname-Ethernet1/0/1] vlan-vpn vid 20  
[Sysname-Ethernet1/0/1-vid-20] raw-vlan-id inbound 8 to 15 
vlan-vpn vid 
Syntax 
vlan-vpn vid vlan-id 
undo vlan-vpn vid vlan-id 
View 
Ethernet port view 
Parameters 
vlan-id: VLAN ID, in the range 1 to 4094.  
Description 
Use the vlan-vpn vid command to configure the outer VLAN tag for a selective QinQ policy (that is, the 
outer VLAN tag to be used by a port to encapsulate received packets) and to enter QinQ view.  
Use the undo vlan-vpn vid command to remove the configured outer VLAN tag. Note that this 
command will also remove all configurations configured by the raw-vlan-id inbound command in QinQ 
view. 
Before configuring this command on a port, make sure that the vlan-vpn enable command is 
configured on the port.