QinQ
A QinQ VLAN tunnel enables a service provider (SP) to segregate the traffic of different customers in their infrastructure, while still giving the customer a full range of VLANs for their internal use by adding a second 802.1Q VLAN tag to an already tagged frame.
So let us assume for example that an SP exists which needs to offer L2 connectivity to two corporations, “X” and “Y”, that have campuses located in both “A”, “B”. All campuses run Ethernet LANs, and the customers intend to connect through the SP’s L2 VPN network so that their campuses are in the same LAN (L2 network). Hence, it would be desirable for “X”, “Y” to have a single LAN each in both “A”, “B” which could easily exceed the VLAN limit of 4096 of the 802.1Q specification.
QinQ can be enabled on a port or according to predefined conditions.
C-VLAN is the VLAN tag assigned to the ingress traffic of a QinQ-enabled interface.
S-VLAN is the VLAN tag assigned to the egress traffic of a QinQ-enabled interface.
ACL-mode: Adding and removing S-VLAN is determined by an ACL-dependent action
Port-mode: All ingress traffic to a specific QinQ-enabled interface is tagged with an additional VLAN 802.1Q tag (also known as S-VLAN). The S-VLAN ID is equal to that interface’s PVID (access VLAN).
The S-VLAN tag is added regardless of whether the traffic is tagged or untagged. Traffic coming out from this port, has the S-VLAN stripped from it.
Create the C-VLAN. Run:
switch(config) # vlan200switch(config vlan200) # exitEnter the configuration mode of an Ethernet, LAG, or MLAG interface. Run:
switch(config) #interfaceport-channel100Change the switchport mode of the interface to enable QinQ. Run:
switch(configinterfaceport-channel100) # switchport mode dot1q-tunnelChange its port VLAN ID (PVID). This configures the S-VLAN. Run:
switch(configinterfaceport-channel100) # switchport access vlan200Verify the configuration. Run:
switch(configinterfaceport-channel100) # showinterfaceport-channel100Po100 Admin state: Enabled Operational state: Up Description: N\A Mac address:00:00:00:00:00:00MTU:1500bytes(Maximum packet size1522bytes) lacp-individual mode: Disabled Flow-control: receive off send off Actual speed:1X40Gbps Width reduction mode: disabled Switchport mode: dot1q-tunnel QoS mode: uniform MAC learning mode: Enabled Last clearing of"show interface"counters : Never60seconds ingress rate:0bits/sec,0bytes/sec,0packets/sec60seconds egress rate:0bits/sec,0bytes/sec,0packets/sec Rx0packets0unicast packets0multicast packets0broadcast packets0bytes0error packets0discard packets Tx0packets0unicast packets0multicast packets0broadcast packets0bytes0discard packetsVerify the configuration. Run:
switch(configinterfaceport-channel100) # show interfaces switchport Interface Mode Access vlan Allowed vlans ------------------------------------------------------------------------- Eth1/1access1Eth1/2access1Eth1/3access1Eth1/4access1Eth1/5access1Eth1/6access1... Eth1/27access1Eth1/33access1Eth1/34access1Eth1/35access1Eth1/36access1Po400 dot1q-tunnel200
switchport dot1q-tunnel qos-mode
|
switchport dot1q-tunnel qos-mode {pipe | uniform} no switchport dot1q-tunnel qos-mode Assigns QoS to the service provider’s traffic. The no form of the command resets the parameter value to its default. |
||
|
Syntax Description |
pipe |
Gives the service provider’s traffic the same QoS as the customer’s traffic |
|
uniform |
Gives the service provider’s traffic QoS 0 |
|
|
Default |
pipe |
|
|
Configuration Mode |
config interface ethernet config interface port-channel config interface mlag-port-channel |
|
|
History |
3.4.3000 |
|
|
Example |
switch (config interface ethernet 1/1) # switchport dot1q-tunnel qos-mode uniform |
|
|
Related Commands |
show vlan show interfaces switchport switchport access vlan switchport [trunk | hybrid] allowed-vlan vlan |
|
|
Notes |
||