User's Manual Part 2
23JadeOSUserManual
4.6ConfiguringQinQ
4.6.1ConfiguringQinQ
DefinedinIEEE802.1Q,VLANTagdomainonlyuses12bytestoindicateVLANID,so
equipmentcansupportupto4094VLANs.Somescenarios,especiallyinmetropoli‐
tanareanetwork,requireaseparateVLANforcustomers.Therefore,4094VLAN
cannotmeettherequirement.The802.1QinQexpandsVLANspacebyusinga
VLAN‐in‐VLANhierarchyandtaggingthetaggedpackets.Atthesametime,QinQ
makesSPuseoneVLANsupportstheentirecustomer'sVLANs.SPprovidesdifferent
servicefordifferentcustomersbydecapsulatinginnerandoutervlantagofusers’
message.
ConfiguringQinQbyusingfollowingcommand:
Step1CreateQinQsub‐interfaceinphysicalinterface:
interface gigabitethernet/tengigabitethernet <slot>/<port>.<subif>
parameter description
slot
Slot number,range: 1-13
port
Port number
subif
Sub interface,range: 1-16760836
table4‐3ParameterDescription
Forexample,createQinQsub‐interfacegigabitethernet1/0 . 1 inEthernetinterface
gigabitethernet1/0 :
interface gigabitethernet 1/0.1
step2SpecifyQinQinnerandoutertag
encapsulation dot1q <outer-vlan-id> second-dot1q <vlan-id|[begin-end]>
Parameter Description
out‐vlan‐id
Singletagnumber,range:1‐4094
vlan‐id|[begin‐end] Singletagnumber,range:1‐4094;orrange,forexample:100‐200
table4‐4ParameterDescription
Forexample:createaQinQinterfacethatoutertagis1000andinnertagrangeis
100‐200,andconfigureIPaddressasalayer‐3interface.
(JadeOS)(config)#interface gigabitethernet 10/0.1
(JadeOS)(config-subif)# encapsulation dot1q 1000 second-dot1q 100-200
(JadeOS)(config-subif)#ip address 1.1.1.1/32
Thesub‐interfacecanbeusedasalayer‐3routingsub‐interface.YoucanconfigureIP