Chapter4ServiceConguration
CommandFunction
zte(cfg)#createvlan<1-4094>name<name>CreatesaVLANname.
zte(cfg)#clearvlan<vlanlist>nameClearsaVLANname.
zte(cfg)#clearvlanprotocol-mappingsession-no<1-8>
ClearstheVLANtemplateconguration
oftheprotocol.
showvlan[<vlanlist>](allcongurationmodes)DisplaysthebasicVLANinformation.
showvlanprotocol-mapping(allcongurationmodes)
DisplaystheVLANcongurationofthe
protocol.
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
Untaggedports:1-2
Forbiddenports:
VLANCongurationExampleTwo
lCongurationDescription
AsshowninFigure4-3,switchAisconnectedtoswitchBthroughport16.Port1
ofswitchAandport2ofswitchBaremembersofVLAN2.Port3ofswitchAand
port4ofswitchBaremembersofVLAN3.ThemembersinthesameVLANcan
communicatewitheachother.
4-13
SJ-20120409144109-002|2012-07-02(R1.0)ZTEProprietaryandCondential