华为交换机配置.doc_第1页
华为交换机配置.doc_第2页
华为交换机配置.doc_第3页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

华为交换机配置一 常用命令及说明1.system ;进入特权视图;2. Quidwayinterface ethernet 0/1 ;进入接口视图3.Quidwayinterface vlan x ;进入SVI接口视图4. Quidway-Vlan-interfacexip address 192.168.1.1 255.255.255.0 ;配置SVI的IP地址5. Quidwayip route-static interface number|nexthopvaluereject|blackhole;静态路由 例如:Quidwayip route-static 129.1.0.0 16 10.0.0.2Quidwayip route-static 129.1.0.0 255.255.0.0 10.0.0.2Quidwayip route-static 129.1.0.0 16 Serial 2Quidwayip route-static 0.0.0.0 0.0.0.0 10.0.0.26. Quidway-Ethernet0/1port link-type trunk|access|hybrid ;设置端口工作模式7. Quidway-Ethernet0/1undo shutdown ;激活端口8.Quidwayvlan 3 ;创建VLAN9.Quidway-vlan3port ethernet 0/1 to ethernet 0/4 ;在VLAN中增加端口10.Quidway-Ethernet0/2port access vlan 3 ;当前端口加入到VLAN11.Quidway-Ethernet0/2port trunk permit vlan ID|All ;设trunk允许的VLAN12.Quidway-Ethernet0/2port trunk pvid vlan 3 ;设置trunk端口的PVID13. Quidway-Ethernet0/2 port link-type hybrid ;设置端口为hybird口14Quidway-Ethernet0/2port hybrid vlan XX tagged|untagged ;设置vlan XX在hybird的属性为tagged还是untagged15. Quidway-Ethernet0/2port hybrid pvid vlan ;设置hybird口的PVID16. Quidwaydisplay current-config ;看当前配置17Quidwaysaved-configuration ;保存当前配置二实验实验一:创建VLAN ,将端口划到某个VLAN中; 配置:system ;进入特权视图Quidwaysysname S3026 ;设置交换机命名S3026vlan 2 ;创建VLAN2S3026-vlan2port ethernet0/2 ;将端口 ethernet0/2划到VLAN2 中S3026-vlan2port e0/4 to et0/6 ;将端口 e0/4 to et0/6划到VLAN2 中S3026-vlan2quit S3026int e0/3S3026-Ethernet1port access vlan 2 ;在接口视图下将该接口加入到VLAN2S3026-Ethernet1quit S3026interface vlan 1 ;配置SVI S3026-Vlan-interface1ip address 10.65.1.8 255.255.0.0 ;配置SVI的IP地址S3026-Vlan-interface1quit实验二: 设置trunk: 配置S3026Ainterface ethernet0/8S3026A-Ethernet0/8port link-type trunkS3026A-Ethernet0/8port trunk permit vlan allS3026Binterface ethernet0/1S3026B-Ethernet0/1port link-type trunkS3026B-Ethernet0/1port trunk permit vlan allS3026B-Ethernet0/1quit实验三:配置 hybridS3026Ainterface ethernet0/8S3026A-Ethernet0/8port link-type hybirdS3026A-Ethernet0/8 port hybrid pvid vlan 20S3026A-Ethernet0/8 port hybrid vlan 30 untagged S3026Binterface ethernet0/1S3026B-Ethernet0/1 port link-type hybirdS3026B-Ethernet0/1 port hybrid pvid vlan 20S3026A-Ethernet0/1 port hybrid vlan 30 untagged S3026B-Ethernet0/1quit实验四:交换机的镜像与生成树配置(一) 设置镜像镜像是一个端口的数据被映射到另一个端口,进行数据分析。Quidwaymonitor-port e0/8Quidwayport mirror e0/1或:Quidwayport mirror e0/1 to e0/2 observing-port e0/8(二) 生成树Quidwaystp e

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论