《华为跨交换机的相同vlan通信(trunk).docx》由会员分享,可在线阅读,更多相关《华为跨交换机的相同vlan通信(trunk).docx(3页珍藏版)》请在第壹文秘上搜索。
1、跨交换机的相同VLAN通信(trunk) (82.1Q)交换机改名关闭信息提示建立 VlanlO 和 VIan20华为跨交换机的相同vlan通信(trunk)交换机1:syHuaweisyHuaweisysnameSlSlundoinfo-centerenable把端口1力口入到VlanlO中:Slvlanbatch1020SlintgO/O/1Sl-GigabitEthernetO0lportlink-typeaccessSl-GigabitEthernetO0lportdefaultvlan10Sl-GigabitEthernetOOlquit把端口2加入到5an20中:Slintg002
2、Sl-GigabitEthernet002portlink-typeaccessSl-GigabitEthernet002portdefaultvlan20Sl-GigabitEthernetOO2disthis设置24口为trunk口,并允许vlanl和20的流量通过:Slintg0024Sl-GigabitEthernet0024portlink-typetrunkSl-GigabitEthernet0024porttrunkallow-passvlan1020允许通过vlanl和20Sl-GigabitEthernet0024quitSlquitsav交换机2:S2(与交换机Sl配置类似
3、)syHuaweisysnameS2S2vlanbatch1020S2interfacegO/O/1S2-GigabitEthernet00lportlink-typeaccessS2-GigabitEthernet00lportdefaultvlan10S2-GigabitEthernet00lquitS2interfaceg002S2-GigabitEthernet002portlink-typeaccessS2-GigabitEthernet002portdefaultvlan20S2-GigabitEthernetOO2disthisS2-GigabitEthernet002quitS
4、2intg0024S2-GigabitEthernet0024portlink-typetrunkS2-GigabitEthernet0024porttrunkallow-passvlan1020S2-GigabitEthernet0024quitS2quitsave测试:PC2星娜e三命令行组制UD喧包工具串口LinklocalIPv6addressIPv6addressIPv6gatewayIPv4addressSubnetmaskGatewayPhysicaladdressDNSserverfe80:5689:98ff:feeb:22cl:/1282.2.2.1255.255.255.0
5、0.0.0.054-89-98-EB-22-C1PCping2222byts=32 bytes=32 byts=32 bytes=32 bytes=3232 data bytes.Press Ctrl C tobreakSeq=I Seq=2 seq=3 seq=4 Seq=5ttl=128 ttl=128 ttl=128 ttl=128 ttl=128time=62 time=47 time=46 tim=62 time=47ms ras msms ras222.2pingstatistics5packet(s)transmitted5packet(s)received0.00%packetlossround-tripmin/avg/max=46/52/62ms