資源描述:
《思科與華為交換機命令對比(cisco and huawei switch command comparison)》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
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