ZXR102900ESeriesCongurationGuide
CommandFunction
zte(cfg)#setvlansqinqsession<1-400>customer-port<port-id>
customer-vlan<vlan-list>uplink-vlan<vlan-id>
EnablesSVLANfunction.
WhentheSQinQfunctionisenabled,
theuplinktrafcisnormallyforwarded
inSPVLAN.Thedownlinktrafc
isnormallyforwardedinSPVLAN.
BecausetheUNIportbelongsto
SPVLANinuntaggedmode,the
SPVLANtagofdownlinkpacketswill
beremoved.
zte(cfg)#clearvlansqinqDeletesallSQinQsessions.
zte(cfg)#clearvlansqinqsession<1-400>DeletesthespeciedSQinQsession.
showvlansqinq(allcongurationmodes)DisplaysallSQinQsessions.
showvlansqinqsession<1-400>(allcongurationmodes)DisplaysthespeciedSQinQsession.
SQinQCongurationInstance
lCongurationDescription
Port1isacustomerport,andport2isanuplinkport.WhenCVLANis10and12,the
packetfromport1SPVLANis997and998respectively.
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.
zte(cfg)#showvlansqinq
Sessionnumber:1
CustomerPort:1
CustomerVlanList:10
UplinkVlan:997
Sessionnumber:2
CustomerPort:1
CustomerVlanList:12
UplinkVlan:998
4-118
SJ-20120409144109-002|2012-07-02(R1.0)ZTEProprietaryandCondential