Chapter5ServiceConguration
ConguringSQinQ
TheSQinQcongurationincludesthefollowingcommands:
CommandFunction
zte(cfg)#setvlansqinqsession<1-400>customer-port
<port-id>customer-vlan<vlan-list>uplink-vlan<vlan-id>
EnablesSVLANfunction.
WhentheSQinQfunctionis
enabled,theuplinktrafcis
normallyforwardedinSPVLAN.
Thedownlinktrafcisnormally
forwardedinSPVLAN.Because
theUNIportbelongstoSPVLAN
inuntaggedmode,theSPVLAN
tagofdownlinkpacketswillbe
removed.
zte(cfg)#clearvlansqinqDeletesallSQinQsessions.
zte(cfg)#clearvlansqinqsession<1-400>DeletesthespeciedSQinQ
session.
showvlansqinq(allcongurationmodes)DisplaysallSQinQsessions.
showvlansqinqsession<1-400>(allcongurationmodes)DisplaysthespeciedSQinQ
session.
SQinQCongurationInstance
lCongurationDescription
Port1isacustomerport,andport2isanuplinkport.WhenCVLANis10and12,the
packetfromport1SPVLANis997and998respectively.SeeFigure5-26.
Figure5-26SQinQCongurationInstance
lCongurationProcedure
ConguretheSVLANinstance.
zte(cfg)#setvlan10,12addport1tag
zte(cfg)#setvlan997,998addport1untag
zte(cfg)#setvlan997,998addport2tag
zte(cfg)#setvlan10,12,997,998enable
zte(cfg)#setvlansqinqsession1customer-port1customer-vlan10uplink-vlan997
zte(cfg)#setvlansqinqsession2customer-port1customer-vlan12uplink-vlan998
lCongurationVerication
ThefollowingexampleshowshowtoshowtheSVLANinstance.
5-83
SJ-20130731155059-002|2013-11-27(R1.0)ZTEProprietaryandCondential