switchport
dot1q-tunnel
service match cvid
This command creates a CVLAN to SPVLAN mapping entry. Use the no
form to delete a VLAN mapping entry.
S
YNTAX
switchport dot1q-tunnel service svid match cvid cvid
svid - VLAN ID for the outer VLAN tag (Service Provider VID).
(Range: 1-4093)
cvid - VLAN ID for the inner VLAN tag (Customer VID).
(Range: 1-4094)
D
S
EFAULT
ETTING
Default mapping uses the PVID of the ingress port on the edge router for
the SPVID.
C
M
OMMAND
ODE
Interface Configuration (Ethernet, Port Channel)
C
U
OMMAND
SAGE
The inner VLAN tag of a customer packet entering the edge router of a
◆
service provider's network is mapped to an outer tag indicating the
service provider VLAN that will carry this traffic across the 802.1Q
tunnel. This process is performed in a transparent manner as described
under
"IEEE 802.1Q Tunneling" on page
When priority bits are found in the inner tag, these are also copied to
◆
the outer tag. This allows the service provider to differentiate service
based on the indicated priority and appropriate methods of queue
management at intermediate nodes across the tunnel.
Rather than relying on standard service paths and priority queuing,
◆
QinQ VLAN mapping can be used to further enhance service by defining
a set of differentiated service pathways to follow across the service
provider's network for traffic arriving from specified inbound customer
VLANs.
Note that all customer interfaces should be configured as access
◆
interfaces (that is, a user-to-network interface) and service provider
interfaces as uplink interfaces (that is, a network-to-network interface).
Use the
switchport dot1q-tunnel mode uplink
interface to access or uplink mode.
E
XAMPLE
This example sets the SVID to 99 in the outer tag for egress packets
exiting port 1 when the packet's CVID is 2.
Console(config)#interface ethernet 1/1
Console(config-if)#switchport dot1q-tunnel service 99 match cvid 2
Console(config-if)#
– 1117 –
| VLAN Commands
C
36
HAPTER
Configuring IEEE 802.1Q Tunneling
213.
command to set an