欢迎来到天天文库
浏览记录
ID:16173770
大小:18.37 KB
页数:10页
时间:2018-08-08
《思科与华为交换机命令对比(cisco and huawei switch command comparison)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、思科与华为交换机命令对比(CISCOandHUAWEIswitchcommandcomparison)DebuggingcommandsCISCO:Switch#showrundisplaysallconfigurationcommandsSwitch#showIPinterbriefdisplaysallinterfacestatesSwitch#showVLANbriefdisplaysallVLANinformationSwitch#showversiondisplaysversioninformationHUAWEI:[Qu
2、idway]discurdisplaysallconfigurationcommands[Quidway]displayinterfacesdisplaysallinterfacestates[Quidway]displayVLANalldisplaysallVLANinformation[Quidway]displayversiondisplaysversioninformationTwo,interfaceconfigurationcommandCISCO:Switch(config)#interfacef0/8entersth
3、einterfaceviewSwitch(config-if)#noshut,thiscommandopenstheinterfaceDescriptionofSwitch(config-if)#descriptiontoserver01portSwitch(config-if)#ipadd192.168.1.100255.255.255.0setinterfaceIPHUAWEI:[Quidway]interfacee0/1enterstheinterfaceview[Quidway]undoshutdownthiscommand
4、openstheinterfaceDescriptionof[Quidway]descriptiontoServer02port[Quidway]ipadd192.168.1.102255.255.255.0setinterfaceIPThree,VLANconfigurationcommand:CISCO:CreatinganddeletingVLANSwitch#VLANdatabaseSwitch(VLAN)#VLAN20nameTest20Switch(VLAN)noVLAN20#Switch(VLAN)#exitAssig
5、naporttoaVLANSwitchinterfacef0/1(config)#Switch(config-if)switchportmodeaccess#Switch(config-if)switchportaccessVLAN20#SettingupVLANTRUNKSwitchinterfacef0/24(config)#Switch(config-if)switchportmodetrunk#Switch(config-if)#switchporttrunkallowVLAN{ID
6、All}Switch(config-if
7、)switchporttrunkencapsulationdot1q#HUAWEI:CreatinganddeletingVLAN[Quidway]vlan30[Quidway]undoVLAN30AssignaporttoaVLAN[Quidway]intethernet0/1[Quidway-Ethernet0/1]portaccessVLAN30(PortdefaultVLAN30)Or[Quidway]vlan30[Quidway-vlan3]portEthernet0/1addsportinVLAN[Quidway-vla
8、n3]portEthernet0/1toEthernet0/4addsmultiplecontinuousportsinVLANSettingupVLANTRUNK[Quidway]inte0/24[Quidway-Ethernet0/24]portlink-typetrunk[Quidway-Ethernet0/24]porttrunkpermitVLAN{ID
9、All}Four,portmirroringconfigurationCISCO:ConfiguremirrorsourceportSwitch(config)#moni
10、torsession1sourceinterfacegigabitEthernet0/2-5RXThelastparameterofthecommandabove:Bothlistensbidirectionaldata,defaul
此文档下载收益归作者所有