User's Manual Part 2

23JadeOSUserManual
4.6ConfiguringQinQ
4.6.1ConfiguringQinQ
DefinedinIEEE802.1Q,VLANTagdomainonlyuses12bytestoindicateVLANID,so
equipmentcansupportupto4094VLANs.Somescenarios,especiallyinmetropoli
tanareanetwork,requireaseparateVLANforcustomers.Therefore,4094VLAN
cannotmeettherequirement.The802.1QinQexpandsVLANspacebyusinga
VLANinVLANhierarchyandtaggingthetaggedpackets.Atthesametime,QinQ
makesSPuseoneVLANsupportstheentirecustomer'sVLANs.SPprovidesdifferent
servicefordifferentcustomersbydecapsulatinginnerandoutervlantagofusers’
message.
ConfiguringQinQbyusingfollowingcommand:
Step1CreateQinQsubinterfaceinphysicalinterface:
interface gigabitethernet/tengigabitethernet <slot>/<port>.<subif>
parameter description
slot
Slot numberrange: 1-13
port
Port number
subif
Sub interfacerange: 1-16760836
table43ParameterDescription
Forexample,createQinQsubinterfacegigabitethernet1/0 . 1 inEthernetinterface
gigabitethernet1/0 :
interface gigabitethernet 1/0.1
step2SpecifyQinQinnerandoutertag
encapsulation dot1q <outer-vlan-id> second-dot1q <vlan-id|[begin-end]>
Parameter Description
outvlanid
Singletagnumberrange:14094
vlanid|[beginend] Singletagnumber,range:14094;orrange,forexample:100200
table44ParameterDescription
Forexample:createaQinQinterfacethatoutertagis1000andinnertagrangeis
100200,andconfigureIPaddressasalayer3interface.
(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
Thesubinterfacecanbeusedasalayer3routingsubinterface.YoucanconfigureIP