
109
Action
Click
Delete
to delete the MAC VLAN profile.
6.3.4.2.
Port-Based Q-in-Q
Port-Based Q-in-Q
Q-in-Q encapsulation is to convert a single tagged 802.1Q packet into a double tagged Q-
in-Q packet. The Q-in-Q encapsulation can be based on port or traffic. Port-based Q-in-Q
is to encapsulate all the packets incoming to a port with the same SPVID outer tag. The
mode is more inflexible.
In the following example figure, both
X
and
Y
are Service Provider’s Network (
SPN
)
customers with VPN tunnels between their head offices and branch offices respectively.
Both have an identical VLAN tag for their VLAN group. The service provider can separate
these two VLANs within its network by adding tag
100
to distinguish customer
X
and tag
200
todistinguish customer
Y
at edge device A and then stripping those tags at edge device
B as the data frames leave the network.
This example shows how to configure switch A with ports 1 on the Switch to tag incoming
frames with the service provider’s VID of 200 (ports are connected to customer X network)
and configure port 7 to service provider’s VID of 100 (ports are connected to customer Y
network).This example also shows how to set the priority for port 1 to 3 and port 7 to 4.
L2SWITCH(config)# vlan-stacking port-based
L2SWITCH(config)# vlan-stacking tpid-table index 2 value 88a8
L2SWITCH(config)# vlan 10
L2SWITCH(config-vlan)# fixed 5,6