ZXR105250SeriesCongurationGuide
CommandFunction
zte(cfg)#setvlan<vlanlist>addtrunk<trunklist>[tag|untag]AddsatrunktoaVLANand
conguresthetrunklocationinthe
VLAN.
zte(cfg)#setvlan<vlanlist>deletetrunk<trunklist>DeletesatrunkfromaVLAN.
zte(cfg)#setport<portlist>protocol-vlan{enable|disable}Enablesordisablestheprotocol
VLANfunction.
zte(cfg)#setvlanprotocol-mappingsession-no<1-8>{ethernet2|
llc|snap}<0xHHHH>vlan<1-4094>
SetsaprotocolVLANtemplate.
zte(cfg)#createvlan<1-4094>name<name>CreatesaVLANname.
zte(cfg)#clearvlan<vlanlist>nameClearsaVLANname.
zte(cfg)#clearvlanprotocol-mappingsession-no<1-8>ClearstheVLANtemplate
congurationoftheprotocol.
showvlan[<vlanlist>](allcongurationmodes)DisplaysthebasicVLAN
information.
showvlanprotocol-mapping(allcongurationmodes)DisplaystheVLANconguration
oftheprotocol.
VLANCongurationExampleOne
lCongurationDescription
CongureVLAN100.Adduntaggedports1and2andtaggedports7and8.The
detailedcongurationisasfollows:
Note:
Bydefault,VLAN1isenabled,allportsareinVLAN1andinuntagmode.
lCongurationProcedure
zte(cfg)#setvlan100addport1,2untag
zte(cfg)#setvlan100addport7,8tag
zte(cfg)#setport1,2pvid100
zte(cfg)#setvlan100enable
lCongurationVerication
zte(cfg)#showvlan100
VlanId:100VlanStatus:enabled
VlanName:
VlanMode:Static
Taggedports:7-8
5-84
SJ-20131111172707-002|2013-11-27(R1.0)ZTEProprietaryandCondential