VLAN的基础配置VLAN最基本实验,1和3属于VLAN2,相互不通;2和4属于VLAN3,可以ping通。=====================================================================[SW1]dicu#sysnameSW1#vlanbatch2to3#clusterenablentdpenablendpenable#dropillegal-macalarm#diffservdomaindefault#drop-profiledefault#aaaauthentication-schemedefaultauthorization-ounting-schemedefaultdomaindefaultdomaindefault_adminlocal-useradminpasswordsimpleadminlocal-useradminservice-typehttp#interfaceVlanif1#interfaceMEth0/0/1#0/0/1portlink-essportdefaultvlan2#0/0/2portlink-essportdefaultvlan3#0/0/3#0/0/4#0/0/5#0/0/6#0/0/7#0/0/8#0/0/9#0/0/10#0/0/11#0/0/12#0/0/13#0/0/14#0/0/15#0/0/16#0/0/17#0/0/18#0/0/19#0/0/20#0/0/21#0/0/22portlink-typetrunkporttrunkallow-passvlan3#0/0/1#0/0/2#interfaceNULL0#user-interfacecon0user-interfacevty04#Return=====================================================================[SW2]dicu#sysnameSW2#vlanbatch2to3#clusterenablentdpenablendpenable#dropillegal-macalarm#diffservdomaindefault#drop-0/0/22portlink-typetrunkporttrunkallow-passvlan3#0/0/1#0/0/2#interfaceNULL0#user-interfacecon0user-interfacevty04#port-grouplink-type#returnVLAN间路由注:在pc1和pc2上面配置好ip地址和网关=====================================================================[SW1]dicu#sysnameSW1#vlanbatch2to3#clusterenablentdpenablendpenable#dropillegal-macalarm#diffservdomaindefault#drop-profiledefault#aaaauthentication-schemedefaultauthorization-ounting-schemedefaultdomaindefaultdomaindefault_adminlocal-useradminpasswordsimpleadminlocal-useradminservice-typehttp#interfaceVlanif1#interfaceVlanif2ipaddress#interfaceVlanif3ipaddress#interfaceMEth0/0/1#0/0/1portlink-essportdefaultvlan2#0/0/2portlink-essportdefaultvlan3#0/0/3#0/0/4#0/0/5#0/0/6#0/0/7#0/0/8#0/0/9#0/0/10#0/0/11#0/0/12#0/0/13#0/0/14#0/0/15#0/0/16#0/0/17#0/0/18#0/0/19#0/0/20#0/0/21#0/0/22#0/0/1#0/0/2#interfaceNULL0#user-interfacecon0user-interfacevty04
华为eNSP实验指南 来自淘豆网www.taodocs.com转载请标明出处.