您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > H3C实验手册(入门篇)
说明本实验手册在以下设备测试通过三层交换机H3CS3610-28TP二层交换机H3CS3100-26C-SI路由器MSR20-20拓扑图通用IP配置E0/0S1/0S2/0R1192.168.1.1/24192.168.10.1/24R2192.168.2.1/24192.168.10.2/24192.168.20.1/24R3192.168.3.1/24192.168.20.2/24限于时间与水平,不当之处,欢迎批评指正。E-mail:pohui@live.cnjohn.hui@live.cn基本命令创建超级终端,通过Console口进入交换机、路由器进去后按回车,之后将出现命令行提示符(如H3C)。#进入系统视图H3Csys#配置设备名[H3C]sysnameRouterA#设置super(明文)密码[RouterA]superpasswordsimplequidway#设置super(密文)密码[RouterA]superpasswordcipherquidway#启用telnet管理功能[RouterA]user-interfacevty04[RouterA-ui-vty0-4]authentication-modepassword[RouterA-ui-vty0-4]setauthenticationpasswordquidway[RouterA-ui-vty0-4]userprivilegelevel3[RouterA-ui-vty0-4]quit[RouterA]telnetserverenable#配置端口IP地址[RouterA]inte0[RouterA-Ethernet0]ipadd192.168.1.124#启动端口[RouterA-Ethernet0]undoshutdown[RouterA-Ethernet0]quit#保存,在任何视图下RouterAsave#查看当前设备配置信息[RouterA]displaycurrent-configuration#查看Flash中的配置(相当于CISCOstart-config)[RouterA]displaysaved-configuration#删除FLASH中的配置信息(重置设备配置)[RouterA]resetsaved-configuration#重新启动设备RouterAreboot#显示系统软件版本[RouterA]displayversion#访问TFTP服务器H3Ctftp服务器IP{put|get}源文件名目的文件名H3Ctftp192.168.1.2putstartup.cfgstartup.cfg//上传H3Ctftp192.168.1.2gettest.txttest.txt//下载交换机、路由器基本命令#交换机IP地址[H3C]intvlan1[H3C-Vlan-interface1]ipadd192.168.1.124[H3C-Vlan-interface1]undoipadd192.168.1.124#创建VLAN[H3C]vlan10[H3C]undovlan10#向VLAN添加一个、多个端口[H3C-vlan10]porte1/0/1[H3C-vlan10]porte1/0/5toe1/0/7[H3C-vlan10]porte1/0/8toe1/0/9e1/0/11toe1/0/12#显示VLAN信息[H3C]disvlan#设置以太网端口的链路类型为TRUNK[H3C-Ethernet1/0/1]portlink-typetrunk[H3C-Ethernet1/0/1]porttrunkpermitvlanall[H3C-Ethernet1/0/1]porttrunkpvidvlan1#设置以太网端口的链路类型为ACCESS[H3C-Ethernet1/0/1]portlink-typeaccess[H3C-Ethernet1/0/1]portaccessvlan10[H3C-Ethernet1/0/1]undoportaccessvlan#配置Loopback环回接口[H3C]intloopback0[H3C-Lookback0]ipadd10.1.1.124#静态路由[H3C]iproute192.168.3.0255.255.255.0s1/0[H3C]undoiproute192.168.3.0255.255.255.0s1/0#默认路由[H3C]iproute0.0.0.00.0.0.0s1/0缺省路由和静态路由一、实验拓扑二、实验要求使各网络间能互相通信,R1和R3使用缺省路由,指向R2;在R2上配置静态路由到192.168.1.0和192.168.3.0的子网三、实验步骤R1:[R1]iproute0.0.0.00.0.0.0192.168.10.2R2:[R2]iproute192.168.1.0255.255.255.0192.168.10.1[R2]iproute192.168.3.0255.255.255.0192.168.20.2R3:[R3]iproute0.0.0.00.0.0.0192.168.20.1RIPv1一、实验拓扑二、实验要求使用RIPv1,使各子网间能正常通信三、实验步骤R1:[R1]rip[R1-rip-1]undosummary[R1-rip-1]network192.168.1.0[R1-rip-1]network192.168.10.0R2:[R2]rip[R2-rip-1]undosummary[R2-rip-1]network192.168.2.0[R2-rip-1]network192.168.10.0[R2-rip-1]network192.168.20.0R3:[R3]rip[R3-rip-1]undosummary[R3-rip-1]network192.168.3.0[R3-rip-1]network192.168.20.0RIPv2一、实验拓扑二、实验要求使用RIPv2,使各子网间能正常通信三、实验步骤R1:[R1]rip[R1-rip-1]version2[R1-rip-1]undosummary[R1-rip-1]network192.168.1.0[R1-rip-1]network192.168.10.0R2:[R2]rip[R2-rip-1]v2[R2-rip-1]net192.168.10.0[R2-rip-1]net192.168.2.0[R2-rip-1]net192.168.20.0R3:[R3]rip[R3-rip-1]v2[R3-rip-1]undosummary[R3-rip-1]network192.168.3.0[R3-rip-1]network192.168.20.0单区域OSPF一、实验拓扑二、实验要求使用单区域的OSPF使各子网间通信。三、实验步骤R1:[R1]rip[R1-rip-1]undosummary[R1-rip-1]network192.168.1.0[R1-rip-1]network192.168.10.0R2[R2]ospf[R2-ospf-1]area0[R2-ospf-1-area-0.0.0.0]network192.168.10.00.0.0.255[R2-ospf-1-area-0.0.0.0]network192.168.20.00.0.0.255[R2-ospf-1-area-0.0.0.0]network192.168.2.00.0.0.255R3[R3]ospf[R3-ospf-1]area0[R3-ospf-1-area-0.0.0.0]network192.168.3.00.0.0.255[R3-ospf-1-area-0.0.0.0]network192.168.20.00.0.0.255多区域OSPF一、实验拓扑二、实验要求使用多区域OSPF实现各子网间进行互相通信,其中R1直接相连的两个网络为area0,R3直接相连的两个网络为area1三、实验步骤R1:[R1]intlo0[R1-LoopBack0]ipadd10.1.1.132[R1-LoopBack0]undoshut[R1-LoopBack0]quit[R1]ospf[R1-ospf-1]area0[R1-ospf-1-area-0.0.0.0]network192.168.1.00.0.0.255[R1-ospf-1-area-0.0.0.0]network192.168.10.00.0.0.255[R1-ospf-1-area-0.0.0.0]network10.1.1.00.0.0.255[R1-ospf-1-area-0.0.0.0]quit[R1-ospf-1]quitR2:[R2]intl0[R2-LoopBack0]ipadd10.1.1.232[R2-LoopBack0]quit[R2]ospf[R2-ospf-1]area0[R2-ospf-1-area-0.0.0.0]network192.168.10.00.0.0.255[R2-ospf-1-area-0.0.0.0]network10.1.1.20.0.0.0[R2-ospf-1-area-0.0.0.0]quit[R2-ospf-1]area1[R2-ospf-1-area-0.0.0.1]network192.168.20.00.0.0.255[R2-ospf-1-area-0.0.0.1]quitR3:[R3]intl0[R3-LoopBack0]ipadd10.1.1.332[R3-LoopBack0]quit[R3]ospf[R3-ospf-1]area1[R3-ospf-1-area-0.0.0.1]network192.168.3.00.0.0.255[R3-ospf-1-area-0.0.0.1]network192.168.20.00.0.0.255[R3-ospf-1-area-0.0.0.1]network10.1.1.30.0.0.0[R3-ospf-1-area-0.0.0.1]quit[R3-ospf-1]quit单臂路由一、实验拓扑二、实验要求通过路由器实现不同VLAN间通信三、实验步骤交换:H3Csys[H3C]vlan10[H3C-vlan10]porte1/0/2toe1/0/12[H3C-vlan10]quit[H3C]vlan20[H3C-vlan20]porte1/0/13toe1/0/24[H3C-vlan20]quit#Trunk配置[H3C]inte1/0/1[H3C-Ethernet1/0/1]portlink-typetrunk[H3C-Ethernet1/0/1]porttrunkpermitvlanall[H3C-Ethernet1/0/1]porttrunkpvidvlan1路由:H3Csys[H3C]inte0/0.1[H3C-Ethernet0/0.1]ipadd192.168.1.124[H3C-Ethernet0/0.1]vlan-typedot1qvid10[H3C-Ethernet0/0.1]inte0/0.2[H3C-Ethernet0/0.2]ipadd192.168.2.124[H3C-Ethernet0/0.2]vlan-typedot1qvid20CISCOR1(config)#inte0/0R1(config-if)#noshutR1(config-if)#inte0/0.1R1(config-subif)#encapsulationdot1Q10R1(config-subif)#ipadd192.168.1.1255.255.255.0R1(config-subif)#noshutR1(config-subif)#exitR1(config)#inte0/0.2R1(config-subif)#
本文标题:H3C实验手册(入门篇)
链接地址:https://www.777doc.com/doc-4101184 .html