Chapter1VLANConguration
SettingVLANLinkTypeonEthernet
Interface
TosetVLANlinktypeonEthernetport,usethefollowingcommand.
CommandFunction
ZXR10(config-gei_1/x)#switchportmode{access|trunk
|hybrid}
ThissetsVLANlinktypeon
Ethernetport.
TherearethreeVLANlinktypesforEthernetinterfaceofZXR10
5900E:Accessmode,TrunkmodeandHybridmode.Accessmode
isusedbydefault.
�PortsofaccessmodebelongtoonlyoneVLAN,supportun-
taggedframesandareusuallyconnectedtocomputers.
�PortsoftrunkmodecanbelongtoseveralVLANs(re-
ceives/sendspacketsfrom/toseveralVLANs),supporttagged
frames,andareusuallyusedastrunkportsbetweenswitches.
�PortsofhybridmodecanbelongtoseveralVLANs(re-
ceives/sendspacketsfrom/toseveralVLANs),supportboth
taggedanduntaggedframes(customized),andcanbeused
toconnectbothswitchesandcomputers.
Portsofhybridmodearedifferentfromtrunkports.Theysend
bothtaggedanduntaggedframes(trunkportssenduntagged
framesonlywhentheyarefromthedefaultVLAN).
AddingVLANMemberPort
Toaddanaccess,trunkorhybridporttoaspeciedVLAN,use
followingcommands.
AccessportonlycanbeaddedtooneVLAN,TrunkportandHybrid
portcanbeaddedintomultipleVLANs.
�ToaddanaccessportintoaspecicVLAN,usethefollowing
commands.
CommandFunction
ZXR10(config-gei_1/x)#switchportaccessvlan
{<vlan-id>|<vlan-name>}
Thiscommandaddsanaccess
porttoaspeciedVLAN.
�ToaddatrunkporttoaspecicVLAN,usethefollowingcom-
mand.
CommandFunction
ZXR10(config-gei_1/x)#switchporttrunkvlan<vlan-list>Thiscommandaddsatrunkport
toaspeciedVLAN.
CondentialandProprietaryInformationofZTECORPORATION7