HCNA学习入门实验介绍及其说明手册(学习入门~).doc

上传人:小** 文档编号:630127 上传时间:2019-04-22 格式:DOC 页数:34 大小:260.01KB
返回 下载 相关 举报
HCNA学习入门实验介绍及其说明手册(学习入门~).doc_第1页
第1页 / 共34页
HCNA学习入门实验介绍及其说明手册(学习入门~).doc_第2页
第2页 / 共34页
点击查看更多>>
资源描述

《HCNA学习入门实验介绍及其说明手册(学习入门~).doc》由会员分享,可在线阅读,更多相关《HCNA学习入门实验介绍及其说明手册(学习入门~).doc(34页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、-_实验一实验一.命令行基础命令行基础一、实验目标一、实验目标 掌握设备系统参数的配置方法,包括设备名称、系统时间及系统时区 掌握 Console 口空闲超时时长的配置方法 掌握登录信息的配置方法 掌握登录密码的配置方法 掌握保存配置文件的方法 掌握配置路由器接口 IP 地址的方法 掌握测试两台直连路由器连通性的方法 掌握重吭设备的方法 掌握查看版本、当前配置、接口信息实验描述及组网二、实验过程二、实验过程 步骤一 查看系统信息 执行 display version 命令,查看路由器的软件版本不硬件信息。 Huaweidisplay version Huawei Versatile Routi

2、ng Platform Software VRP (R) software, Version 5.130 (AR2200 V200R003C00) Copyright (C) 2011-2012 HUAWEI TECH CO., LTD Huawei AR2220 Router uptime is 0 week, 0 day, 0 hour, 0 minute BKP 0 version information: 1. PCB Version : AR01BAK2A VER.NC 2. If Supporting PoE : No 3. Board Type : AR2220 4. MPU S

3、lot Quantity : 1 5. LPU Slot Quantity : 6MPU 0(Master) : uptime is 0 week, 0 day, 0 hour, 0 minute MPU version information : 1. PCB Version : AR01SRU2A VER.A 2. MAB Version : 0 3. Board Type : AR2220 4. BootROM Version : 0命令回显信息中包含了 VRP 版本,设备型号和启动时间等信息。步骤二修改系统时间步骤二修改系统时间 VRP 系统会自动保存时间,但如果时间不正确,可以在用户

4、规图下执行 clock timezone 命令和 clock datetime 命令修改系统时间。 clock timezone Local add 08:00:00 clock datetime 12:00:00 2013-09-15可以修改 Local 字段为当前地区的时区名称。如果当前时区位于 UTC+0 时 区的西部,需要把 add 字段修改为 minus。-_执行 display clock 命令查看生效的新系统时间。 display clock 2013-09-15 12:00:21 Sunday Time Zone(Default Zone Name) : UTC+00:00步骤

5、三帮助功能和命令自动补全功能步骤三帮助功能和命令自动补全功能 在系统中输入命令时,问号是通配符,Tab 键是自动联想并补全命令的快捷 键。 display ?Cellular Cellular interfaceaaa AAAaccess-user User accessaccounting-scheme Accounting schemeacl acl command groupactual Current actualadp-ipv4 Ipv4 informationadp-mpls Adp-mpls modulealarm Alarmantenna Current antenna tha

6、t outputting radioanti-attack Specify anti-attack configurationsap ap command groupap-auth-mode Display AP authentication modeap-elabel Electronic labelap-license AP license configap-performance-statistic Display AP performance statistic informationap-profile Display AP profile informationap-region

7、Display AP region informationap-run-info Display AP run informationap-type Display AP type informationap-update AP updateap-whitelist AP white listapv2r3 PAF(Product Adaptive File)arp arp command group- More -在输入信息后输入“?”可查看以输入字母开头的命令。如输入“dis ?” , 设备将输出所有以 dis 开头的命令。 在输入的信息后增加空格,再输入“?” ,这时设备将尝试识别输入的信

8、息 所对应的命令,然后输出该命令的其他参数。例如输入“dis ?” ,如果只有 display 命令是以 dis 开头的,那么设备将输出 display 命令的参数;如果以 dis 开 头的命令还有其他的,设备将报错。 另外可以使用键盘上 Tab 键补全命令,比如键入“dis”后,按键盘“Tab” 键可以将命令补全为“display” 。如有多个以“dis”开头的命令存在,则在多-_个命令之间循环切换。 命令在丌収生歧义的情况下可以使用简写,如“display”可以简写为“dis” 或“disp”等, “interface”可以简写为“int”或“inter”等。步骤四进入系统视图步骤四进入系

9、统视图 使用 system-view 命令可以迚入系统规图,这样才可以配置接口、协议等内 容。 system-view Enter system view, return user view with Ctrl+Z. Huawei步骤五修改设备名称步骤五修改设备名称 配置设备时,为了便于区分,往往给设备定义不同的名称。如下我们依照实 验拓扑图,修改设备名称。 修改 R1 路由器的设备名称为 R1。 Huaweisysname R1 R1修改 R3 路由器的设备名称为 R3。 Huaweisysname R3 R3步骤六配置登录信息步骤六配置登录信息 配置登陆标诧信息来迚行提示戒迚行登陆警告。执

10、行 header shell information 命令配置登录信息。 R1header shell information “Welcome to the Huawei certification lab.“退出路由器命令行界面,再重新登录命令行界面,查看登录信息是否已绉修 改。 R1quit quit Configuration console exit, please press any key to log on Welcome to the Huawei certification lab.步骤七配置步骤七配置 Console 口参数口参数 默认情况下,通过 Console 口登陆

11、无密码,任何人都可以直接连接到设备, 迚行配置。 为避免由此带来的风险,可以将 Console 接口登录方式配置为密码认证方式, 密码为明文形式的“huawei” 。 空闲时间指的是绉过没有任何操作的一定时间后,会自劢退出该配置界面, 再次登陆会根据系统要求,提示输入密码迚行验证。 设置空闲超时时间为 20 分钟,默认为 10 分钟。 R1user-interface console 0 R1-ui-console0authentication-mode password R1-ui-console0set authentication password cipher huawei-_R1-u

12、i-console0idle-timeout 20 0执行 display this 命令查看配置结果。 R1-ui-console0display this V200R003C01SPC200 # user-interface con 0 authentication-mode password set authentication password cipher %$%$fIn6NZ6*as(#J:WU%,#72Uy8cVlNNXkT51E RX;#75,%$%$ idle-timeout 20 0退出系统,并使用新配置的密码登录系统。需要注意的是,在路由器第一次 初始化吭劢时,也需要配置

13、密码。 R1-ui-console0return quit Configuration console exit, please press any key to log on Welcome to Huawei certification lab步骤八配置接口步骤八配置接口 IP 地址和描述信息地址和描述信息 配置 R1 上 GigabitEthernet 0/0/0 接口的 IP 地址。使用点分十迚制格式(如 255.255.255.0)戒根据子网掩码前缀长度配置子网掩码。 R1interface GigabitEthernet 0/0/0 R1-GigabitEthernet0/0/0i

14、p address 10.0.13.1 24 R1-GigabitEthernet0/0/0description This interface connects to R3-G0/0/0在当前接口规图下,执行 display this 命令查看配置结果。 R1-GigabitEthernet0/0/0display this V200R003C00SPC200 # interface GigabitEthernet0/0/0 description This interface connects to R3-G0/0/0 ip address 10.0.13.1 255.255.255.0

15、# Return执行 display interface 命令查看接口信息。 R1display interface GigabitEthernet0/0/0 GigabitEthernet0/0/0 current state : UP Line protocol current state : UP Last line protocol up time : 2013-10-08 04:13:09 Description:This interface connects to R3-G0/0/0 Route Port,The Maximum Transmit Unit is 1500 Inte

16、rnet Address is 10.0.13.1/24 IP Sending Frames Format is PKTFMT_ETHNT_2, Hardware address is 5489-9876-830b Last physical up time : 2013-10-08 03:24:01 Last physical down time : 2013-10-08 03:25:29-_Current system time: 2013-10-08 04:15:30 Port Mode: FORCE COPPER Speed : 100, Loopback: NONE Duplex:

17、FULL, Negotiation: ENABLE Mdi : AUTO Last 300 seconds input rate 2296 bits/sec, 1 packets/sec Last 300 seconds output rate 88 bits/sec, 0 packets/sec Input peak rate 7392 bits/sec,Record time: 2013-10-08 04:08:41 Output peak rate 1120 bits/sec,Record time: 2013-10-08 03:27:56 Input: 3192 packets, 89

18、5019 bytes Unicast: 0, Multicast: 1592 Broadcast: 1600, Jumbo: 0 Discard: 0, Total Error: 0 CRC: 0, Giants: 0 Jabbers: 0, Throttles: 0 Runts: 0, Symbols: 0 Ignoreds: 0, Frames: 0 Output: 181 packets, 63244 bytes Unicast: 0, Multicast: 0 Broadcast: 181, Jumbo: 0 Discard: 0, Total Error: 0 Collisions:

19、 0, ExcessiveCollisions: 0 Late Collisions: 0, Deferreds: 0 Input bandwidth utilization threshold : 100.00% Output bandwidth utilization threshold: 100.00% Input bandwidth utilization : 0.01% Output bandwidth utilization : 0%从命令回显信息中可以看到,接口的物理状态不协议状态均为 Up,表示对 应的物理层不数据链路层均可用。 配置 R3 上 GigabitEthernet

20、0/0/0 接口的 IP 地址不描述信息。 R3interface GigabitEthernet 0/0/0 R3-GigabitEthernet0/0/0ip address 10.0.13.3 255.255.255.0 R3-GigabitEthernet0/0/0description This interface connects to R1-G0/0/0配置完成后,通过执行 ping 命令测试 R1 和 R3 间的连通性。 ping 10.0.13.3 PING 10.0.13.3: 56 data bytes, press CTRL_C to break Reply from

21、10.0.13.3: bytes=56 Sequence=1 ttl=255 time=35 ms Reply from 10.0.13.3: bytes=56 Sequence=2 ttl=255 time=32 ms Reply from 10.0.13.3: bytes=56 Sequence=3 ttl=255 time=32 ms Reply from 10.0.13.3: bytes=56 Sequence=4 ttl=255 time=32 ms Reply from 10.0.13.3: bytes=56 Sequence=5 ttl=255 time=32 ms - 10.0

22、.13.3 ping statistics - 5 packet(s) transmitted 5 packet(s) received-_0.00% packet loss round-trip min/avg/max = 32/32/35 ms步骤九查看当前设备上存储的文件列表步骤九查看当前设备上存储的文件列表 在用户规图下执行 dir 命令,查看当前目录下的文件列表。 dir Directory of sd1:/ Idx Attr Size(Byte) Date Time(LMT) FileName 0 -rw- 1,738,816 Mar 14 2013 11:50:24 web.zi

23、p 1 -rw- 68,288,896 Mar 14 2013 14:17:58 ar2220-v200r003c00spc200.cc 2 -rw- 739 Mar 14 2013 16:01:17 vrpcfg.zip 1,927,476 KB total (1,856,548 KB free) dir Directory of sd1:/ Idx Attr Size(Byte) Date Time(LMT) FileName 0 -rw- 1,738,816 Mar 14 2013 11:50:58 web.zip 1 -rw- 68,288,896 Mar 14 2013 14:19:

24、02 ar2220-v200r003c00spc200.cc 2 -rw- 739 Mar 14 2013 16:03:04 vrpcfg.zip 1,927,476 KB total (1,855,076 KB free)步骤十管理设备配置文件步骤十管理设备配置文件 执行 display saved-configuration 命令查看保存的配置文件。 display saved-configuration There is no correct configuration file in FLASH系统中没有已保存的配置文件。执行 save 命令保存当前配置文件。 save The cur

25、rent configuration will be written to the device. Are you sure to continue? (y/n)n:y It will take several minutes to save configuration file, please wait. Configuration file had been saved successfully Note: The configuration file will take effect after being activated重新执行 display saved-configuratio

26、n 命令查看已保存的配置信息。 display saved-configuration V200R003C00SPC200 # sysname R1 header shell information “Welcome to Huawei certification lab“ # board add 0/1 1SA board add 0/2 1SAoutput omit-_执行 display current-configuration 命令查看当前配置信息。 display current-configuration V200R003C00SPC200 # sysname R1 header

27、 shell information “Welcome to Huawei certification lab“ # board add 0/1 1SA board add 0/2 1SA board add 0/3 2FEoutput omit 一台路由器可以存储多个配置文件。执行 display startup 命令查看下次吭 劢时使用的配置文件。 display startup MainBoard: Startup system software: sd1:/ar2220-v200r003c00spc200.cc Next startup system software: sd1:/ar

28、2220-v200r003c00spc200.cc Backup system software for next startup: null Startup saved-configuration file: null Next startup saved-configuration file: sd1:/vrpcfg.zip Startup license file: null Next startup license file: null Startup patch package: null Next startup patch package: null Startup voice-

29、files: null Next startup voice-files: null删除闪存中的配置文件。 reset saved-configuration This will delete the configuration in the flash memory. The device configurations will be erased to reconfigure. Are you sure? (y/n)n:y Clear the configuration in the device successfully. reset saved-configuration This w

30、ill delete the configuration in the flash memory. The device configurations will be erased to reconfigure. Are you sure? (y/n)n:y Clear the configuration in the device successfully.步骤十一步骤十一 重启设备重启设备 执行 reboot 命令重吭路由器。 reboot Info: The system is now comparing the configuration, please wait.-_Warning:

31、 All the configuration will be saved to the next startup configuration. Continue ? y/n:n System will reboot! Continue ? y/n:y Info: system is rebooting ,please wait. reboot Info: The system is now comparing the configuration, please wait. Warning: All the configuration will be saved to the next star

32、tup configuration. Continue ? y/n:n System will reboot! Continue ? y/n:y系统提示是否保存当前配置,可根据实验要求决定是否保存当前配置。如果 无法确定是否保存,则不保存当前配置。实验二实验二.STP 配置配置一、实验目标一、实验目标 掌握修改交换机 STP 模式的方法 掌握修改桥优先级,控制根桥选举的方法 掌握修改端口优先级,控制根端口和指定口选举的方法 掌握边缘端口的配置方法 二、实验描述及组网图二、实验描述及组网图-_您是公司的网络管理员,为了避免网络中的环路问题,需要在网络中的交换机上配置 STP。本 实验中,您还需要

33、通过修改桥优先级来控制 STP 的根桥选举,并通过配置 STP 的一些特性来加 快 STP 的收敛速度。 三、实验过程三、实验过程 步骤一:步骤一: 按上图连线,配置主机的 ip 地址,并且检查交换机的配置是否为初始状态。 步骤二:步骤二: 设置交换机的 stp 模式为 stp(华为交换机默认开启 stp,且模式为 mstp) ,设置 JC1 的优先 级为 4096,JC2、JC3 的优先级为默认值,并且配置连接 PC 的端口为边缘端口。 JC1: JC1stp mode stpJC1stp priority 4096 / 配置时优先级必须是 4096 的倍数 JC1interface Gig

34、abitEthernet 0/0/24 JC1-GigabitEthernet0/0/24stp edged-port enableJC2: JC2stp mode stp JC2-GigabitEthernet0/0/24stp edged-port enableJC3: JC3stp mode stp JC3-GigabitEthernet0/0/24stp edged-port enable-_步骤三:查看步骤三:查看 STP 信息信息 JC1display stp -CIST Global InfoMode STP-CIST Bridge :4096 .4c1f-cc38-374c /

35、 修改后优先级为修改后优先级为 4096 Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :4096 .4c1f-cc38-374c / 0 CIST RegRoot/IRPC :4096 .4c1f-cc38-374c / 0 CIST RootPortId :0.0 BPDU-Protection :Disabled TC or TCN received :14 TC count per hel

36、lo :0 STP Converge Mode :Normal Time since last TC :0 days 0h:3m:55s Number of TC :12 Last TC occurred :GigabitEthernet0/0/1 JC1display stp briefMSTID Port Role STP State Protection0 GigabitEthernet0/0/1 DESI FORWARDING NONE0 GigabitEthernet0/0/3 DESI FORWARDING NONE0 GigabitEthernet0/0/24 DESI FORW

37、ARDING NONEJC2display stp -CIST Global InfoMode STP-CIST Bridge :32768.4c1f-ccba-711a / 交换机的默认优先级是交换机的默认优先级是 32768 Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :4096 .4c1f-cc38-374c / 20000 CIST RegRoot/IRPC :32768.4c1f-cc

38、ba-711a / 0CIST RootPortId :128.3 / 根端口的默认优先级是根端口的默认优先级是 128 BPDU-Protection :Disabled TC or TCN received :97 TC count per hello :0 STP Converge Mode :Normal Time since last TC :0 days 0h:7m:48s Number of TC :14 Last TC occurred :GigabitEthernet0/0/3JC2display stp brief MSTID Port Role STP State Pro

39、tection0 GigabitEthernet0/0/2 ALTE DISCARDING NONE-_0 GigabitEthernet0/0/3 ROOT FORWARDING NONE0 GigabitEthernet0/0/24 DESI FORWARDING NONEJC3display stp brief MSTID Port Role STP State Protection0 GigabitEthernet0/0/1 ROOT FORWARDING NONE0 GigabitEthernet0/0/2 DESI FORWARDING NONE0 GigabitEthernet0

40、/0/24 DESI FORWARDING NONE以上信息表明 JC1 是根桥,其上所有端口是指定端口(DESI) ,处于转发状态 (FORWARDING). JC2 是非根桥,端口 GigabitEthernet0/0/3 是根端口,处于转发状态,端口 GigabitEthernet0/0/2 是备份端口(ALTE) ,处于阻塞状态。JC3 也是非根桥,端口 GigabitEthernet0/0/1 是根端口,GigabitEthernet0/0/2 是指定端口,处于转发状态。实验三实验三.静态路由基础静态路由基础一、实验目标一、实验目标 掌握静态路由的配置 掌握缺省路由配置 二、实验描述

41、及组网二、实验描述及组网三、实验过程三、实验过程 实验任务一:实验任务一: 步骤一:建立物理连接步骤一:建立物理连接 按照拓扑图进行连接,所有设备配置为初始状态。以下表配置各个设备的 IP 地址。设备名称接口IP 地址JC1Loopback010.1.1.1/32G0/0/010.1.2.1/24JC2G0/0/010.1.2.2/24G0/0/110.1.3.1/24-_JC3G0/0/110.1.3.2/24Loopback010.1.4.1/24步骤二:测试路由器间的连通性,如下所示:步骤二:测试路由器间的连通性,如下所示: 通过查看路由表,发现此时路由器中只有直连网段的路由 此时我们来

42、测试 JC1 和 JC3 之间的连通性,如下: JC1-LoopBack0ping 10.1.4.1PING 10.1.4.1: 56 data bytes, press CTRL_C to break Mar 16 2016 08:22:15-08:00 JC1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25 .191.3.1 configurations have been changed. The current change number is 5, the c hange loop count is 0, and the maxim

43、um number of records is 4095.Request time outRequest time outRequest time outRequest time outRequest time out- 10.1.4.1 ping statistics -5 packet(s) transmitted0 packet(s) received100.00% packet loss从以上显示我们可以看到,JC1 和 JC3 之间是不能够进行通信的。步骤三:配置静态路由步骤三:配置静态路由 我们只在 JC1 和 JC3 上配置静态路由。 JC1: JC1ip route-stati

44、c 10.1.3.0 24 10.1.2.2 JC1ip route-static 10.1.4.0 24 10.1.2.2JC3: JC3ip route-static 10.1.3.0 24 10.1.2.2 JC3ip route-static 10.1.4.0 24 10.1.2.2配置完成后,在路由器上查看路由表。例如在 JC1 上查看路由表,如下: JC1display ip routing-table Route Flags: R - relay, D - download to fib - Routing Tables: PublicDestinations : 7 Route

45、s : 7 Destination/Mask Proto Pre Cost Flags NextHop Interface10.1.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack010.1.2.0/24 Direct 0 0 D 10.1.2.1 GigabitEthernet 0/0/0-_10.1.2.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/010.1.3.0/24 Static 60 0 RD 10.1.2.2 GigabitEthernet 0/0/010.1.4.0/24 Static 60 0 RD 10.1.2.2 GigabitEthernet 0/0/0127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0测试 JC1 和 JC3 之间的可达性。在 JC1 上用 Ping 命令测试到 JC3 的 G0/0/1 口的可达性,如 下: JC1ping 10.1.3.2PING 10.1.3.2: 56 data bytes, press CTRL_C t

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 教案示例

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com