Chapter 21
| VLAN Commands
Configuring IEEE 802.1Q Tunneling
– 594 –
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.
Syntax
switchport dot1q-tunnel service svid match cvid cvid
svid - VLAN ID for the outer VLAN tag (Service Provider VID). (Range: 1-4094)
cvid - VLAN ID for the inner VLAN tag (Customer VID). (Range: 1-4094)
Default Setting
Default mapping uses the PVID of the ingress port on the edge router for the SPVID.
Command Mode
Interface Configuration (Ethernet, Port Channel)
Command Usage
â—† 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.
â—† 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 command to set an interface to access or uplink
mode.
Example
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)#