Vous êtes sur la page 1sur 18

ZXR10 2900 Switch QinQ Principle and

Configuration
V2.1

Objectives

Know QinQ protocol and configuration

Content

QinQ Principle
QinQ Configuration

QinQ/SVLAN Basic Principle

QinQ, also known as VLAN stack, is a graphic


name for the IEEE 802.1Q based tunnel protocol.
QinQ technology encapsulates the original VLAN
tag (inner tag) with another VLAN tag (outer tag) so
that the inner tag is masked.
QinQ implements simple Layer 2 VPN (L2VPN)
without protocol support, applicable to small-sized
LANs with L3 switches as their core.

What is QinQ?

QinQ major feature is that private VLAN and


service are transparently transmitted to another
end. This allows the customer considerable
flexibility for Private VLAN ID planning, without
any conflict with those of the SP network.
The message transmitted in the backbone network
has two layers 802.1q tag. One is public network
tag (outer tag), another is private network tag
(inner tag).

QinQ/SVLAN Basic Principle

QinQ technology encapsulates the original VLAN


tag (inner tag) with another VLAN tag (outer
tag) .One identifies customer network, another
identifies service provider network.
SPVLAN (vlan1-100)

SPVLAN

SPVLAN (vlan1-100)
PE
Vlan1-100

Customer A

(vlan1-100)

PE
Vlan1-100

Customer B

QinQ/SVLAN Basic Principle

The message structure which has double VLAN


tags is as follows:
DA

SA

Nested vlan tag

Use vlan tag

ETYPE

DATA

QinQ/SVLAN Basic Principle

8100 which is in the red frame represents 802.1Q frame structure. Two
8100s mean that there are two layers 802.1Q frame header 0A
represents outer tag VLAN ID 10 02 represents inner tag VLAN ID
2.

QinQ/SVLAN Basic Principle

Ordinary QinQ limitation


Unicastvlan
vlan100
vlan101

vlan2000

vlan199

PPPOE

Unicastvlan
vlan2001

vlan200
vlan201

vlan999

vlan299
vlan999

Multicastvlan

BRAS

By
port

Ordinary QinQ cant support multiple outer tags on one port to support multiple
services. For multicast service, exit is hoped to keep one inner tag and isolated by
port. Sorting by port adds links and network is so complex, which is not good for
maintenance.

QinQ/SVLAN Basic Principle

Selective QinQ extends early QinQ technology.


Select port specific VLAN and encapsulate outer
tag.
Implement single
port multiple services VLAN
unicastvla
separation. vlan100
n
vlan101

pri
vlan2000

vlan199

unicastvlan
vlan200
vlan201

vlan2001
pri
vlan999

vlan299

pri
vlan999

multicastvlan

PPPOE

By
vlan

Implement multiple VLAN service IDs


separation on one port.

BRAS

Content

QinQ Principle
QinQ Configuration

QinQ Configuration Commands

Adds a Customer port


zte(cfg)# set qinq customer port <portlist>{enable|disable}

Adds an Uplink port


zte(cfg)# set qinq uplink port <portlist>{enable|disable}

Sets the tpid of the outer tag


zte(cfg)# set qinq tpid <tpid>

Displays the QinQ configuration


zte(cfg)# show qinq

QinQ Configuration Example


Encapsulate an exterior label in SW1
(ZXR10 2952) for the packet from SW2.
The VLAN number is 100.
The port connecting upstream BRAS in
SW1 is port 24.
The port connecting downstream SW2
is port 1.
The NM vlan of SW1 is 999 and the
management IP address is
192.168.0.1/24.

QinQ Configuration Example--SW1 Configuration

/* set qinq, the outer label is 100*/


zte(cfg)# set vlan 100 enable
zte(cfg)# set vlan 100 add port 1 24
zte(cfg)# set port 1 24 pvid 100
zte(cfg)# set qinq customer port 1 enable
zte(cfg)# set qinq uplink port 24 enable
zte(cfg)# set vlan 999 enable
zte(cfg)# config router
zte(cfg-router)# set ipport 1 ipaddress 192.168.0.1/24
zte(cfg-router)# set ipport 1 vlan 999
zte(cfg-router)# set ipport 1 enable
zte(cfg-router)# exit

Configuration Summary

Note the following points when adding outer tag

Set uplink port as hybrid tag


Set customer port as hybrid untag
Customer port native VLAN = outer tag of maximum
traffic

If other services need to add outer tag:

Set uplink port as hybrid tag


Set customer port as hybrid untag
Configure session

Configuration Summary

Note the following points when not adding outer


tag

Set uplink port as hybrid tag


Set customer port as hybrid tag
Configure hybrid untag vlan on both customer port
Configure session, enable helper vlan

Note of QinQ/SVLAN

Data plan tries to ensure VLAN continuity.


Dont use default value 1 as port native VLAN, try to
modify as certain service VLAN.
One customer port can use native VLAN to
encapsulate one outer tag for saving session.
Must bind upward device mac address
mac add permanent 0008.e23d.ef48 interface

Vous aimerez peut-être aussi