资源描述:
《华为交换机的基本配置》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、华为交换机的基本配置一、交换机的软件版本由于华为交换机的软件版本不尽相同,我们以比较新的版本V3.1R0005为例。[New_S3552]displayversionHuaweiVersatileRoutingPlatformSoftwareVRP(R)Software,Version3.10,RELEASE0007Copyright(c)2000-2004HUAWEITECHCO.,LTD.QuidwayS3552Guptimeis41weeks,0day,9hours,32minutes二、端口
2、操作1、打开关闭以太网端口shutdownundoshutdown例如:[YD_S3552]interfaceeth0/38[YD_S3552-Ethernet0/38]shutdown[YD_S3552-Ethernet0/38]undoshutdown二、端口操作2、端口描述descriptiontext例如:[YD_S3552]interfaceeth0/38[YD_S3552-Ethernet0/38]desc[YD_S3552-Ethernet0/38]descriptionshihua
3、nbaoju.[YD_S3552-Ethernet0/38]undodesc二、端口操作3、端口双工状态、端口速率duplex{auto
4、full
5、half}undoduplexspeed{10
6、100
7、auto}undospeed二、端口操作4、端口链路类型设置端口为Access端口portlink-typeaccess设置端口为Hybrid端口portlink-typehybrid设置端口为Trunk端口portlink-typetrunk恢复端口的链路类型为缺省的Access端口undopor
8、tlink-type二、端口操作5、把当前以太网端口加入到指定Vlan把当前Access端口加入到指定VLANportaccessvlanvlan_id将当前Hybrid端口加入到指定VLANporthybridvlanvlan_id_list{tagged
9、untagged}把当前Trunk端口加入到指定VLANporttrunkpermitvlan{vlan_id_list
10、all}把当前Access端口从指定VLAN删除undoportaccessvlan把当前Hybrid端口从指定VLAN中
11、删除undoporthybridvlanvlan_id_list把当前Trunk端口从指定VLAN中删除undoporttrunkpermitvlan{vlan_id_list
12、all}二、端口操作6、设置以太网端口缺省VlanID设置Hybrid端口的缺省VLANIDporthybridpvidvlanvlan_id设置Trunk端口的缺省VLANIDporttrunkpvidvlanvlan_id恢复Hybrid端口的缺省VLANID为缺省值undoporthybridpvid恢复Trunk端口
13、的缺省VLANID为缺省值undoporttrunkpvid二、端口操作7、查看端口状态displayinterface例如:displayinterfaceEthernet0/11Ethernet0/11currentstate:UPIPSendingFrames'FormatisPKTFMT_ETHNT_2,Hardwareaddressis00e0-fc37-a4f0Description:to_qixiangjuTheMaximumTransmitUnitis1500Mediatypeist
14、wistedpair,loopbacknotsetPorthardwaretypeis100_BASE_TX10Mbps-speedmode,half-duplexmodeLinkspeedtypeisforcelink,linkduplextypeisautonegotiationFlow-controlisnotsupportedTheMaximumFrameLengthis1552BroadcastMAX-ratio:100%PVID:110Mditype:autoPortlink-type:
15、accessTaggedVLANID:noneUntaggedVLANID:110Last5minutesinput:4packets/sec502bytes/secLast5minutesoutput:6packets/sec1827bytes/secInput(total):-packets,-bytes-broadcasts,-multicastsInput(normal):919143packets,187520582bytes9502broadcasts,2