Cisco路由器配置实例(经典).doc

上传人:sk****8 文档编号:4211756 上传时间:2019-10-04 格式:DOC 页数:49 大小:1.74MB
下载 相关 举报
Cisco路由器配置实例(经典).doc_第1页
第1页 / 共49页
Cisco路由器配置实例(经典).doc_第2页
第2页 / 共49页
Cisco路由器配置实例(经典).doc_第3页
第3页 / 共49页
Cisco路由器配置实例(经典).doc_第4页
第4页 / 共49页
Cisco路由器配置实例(经典).doc_第5页
第5页 / 共49页
点击查看更多>>
资源描述

1、实训报告 实训一 路由基本配置 1、实验目的:路由器基本配置及 ip 设置 2、拓扑结构图 Router0 fa0/0: 192.168.11.1 Fa0/1:192.168.1.1 Router1 fa0/0: 192.168.11.2 Fa0/1:192.168.2.1 Znn1:192.168.1.2 Znn2:192.168.2.2 3、实验步骤 Router1 Routeren 用户模式 进入特权模式 Router#conf t 特权模式 进入全局模式 Enter configuration commands, one per line. End with CNTL/Z. Route

2、r(config)#host rznn1 改名字为 rznn1 rznn1(config)#int fa0/0 进入 fa0/0 端口 rznn1(config-if)#ip add 192.168.11.1 255.255.255.0 设置 ip 地址 rznn1(config-if)#no sh 激活 rznn1(config)#int fa0/1 rznn1(config-if)#ip add 192.168.1.1 255.255.255.0 rznn1(config-if)#no sh rznn1(config-if)#exit rznn1(config)#exit rznn1#co

3、py running-config startup-config 保存 Destination filename startup-config? startup-config rznn1#conf t rznn1(config)#enable secret password 222 设置密文 rznn1#show ip interface b 显示 Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.1 YES manual up up FastEthernet0/1 192.168.1.1 YE

4、S manual up up Vlan1 unassigned YES manual administratively down down router 2 outeren Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host rznn2 rznn2(config)#int fa0/0 rznn2(config-if)#ip add 192.168.11.2 255.255.255.0 rznn2(config-if)#no sh rznn2(config)#

5、int fa0/1 rznn2(config-if)#ip add 192.168.2.1 255.255.255.0 rznn2(config-if)#no sh Rznn2#copy running-config startup-config 保存 Destination filename startup-config? startup-config rznn2(config-if)#exit rznn2(config)#exit rznn2#conf t rznn2(config)#enable secret 222 rznn2#show ip interface b Interface

6、 IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.2 YES manual up up FastEthernet0/1 192.168.2.1 YES manual up up Vlan1 unassigned YES manual administratively down down 实训二 1、远程登录、密码设置及验证 为路由器开设 telnet 端口,PC 机可以远程登陆到 Rznn3(Router 1) 拓扑结构图 Router0:192.168.1.1 Pc:192.168.1.2 步骤 rznn3 r

7、znn3en rznn3#conf t Enter configuration commands, one per line. End with CNTL/Z. rznn3(config)#no ip domain lookup rznn3(config)#line cons 0 rznn3(config-line)#password znn rznn3(config-line)#login rznn3(config-line)#no exec-t rznn3(config-line)#logg sync rznn3(config-line)#exit rznn3(config)#int fa

8、0/0 rznn3(config-if)#ip add 192.168.1.1 255.255.255.0 rznn3(config-if)#no sh rznn3(config-if)#exit rznn3(config)#line vty 0 4 打通五个端口 rznn3(config-line)#password cisco 设置密码 rznn3(config-line)#login 保存 rznn3(config-line)#exit 4、测试: 实训三 命令组 1、目的: 八条命令( no ip domain lookupline cons 0passwordloginno exec

9、-tlogg syncshow versionreloadcopy running-config startup-config)show cdp neighbors) 2、拓扑结构图 Router0 fa0/0: 192.168.11.1 Router1 fa0/0: 192.168.11.2 3、步骤 rznn1#conf t Enter configuration commands, one per line. End with CNTL/Z. 1、rznn1(config)#no ip domain lookup 取消域名查找转换 2、rznn1(config)#line cons 0

10、打开 cons 0 端口 3、rznn1(config-line)#password znn 设置密码为 znn rznn1(config-line)#login 保存 rznn1(config-line)#no exec-t 设置永不超时 4、rznn1(config-line)#logg sync 产生日志 5、rznn1#show version 显示思科路由系统版本信息 Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2) Tec

11、hnical Support: Copyright (c) 1986-2007 by Cisco Systems, Inc. Compiled Wed 18-Jul-07 06:21 by pt_rel_team 6、rznn1#show cdp neighbors 查看路由器连接的相邻路由器的相关信 息 Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone Device ID Local In

12、trfce Holdtme Capability Platform Port ID rznn2 Fas 0/0 139 R C2800 Fas 0/0 7、rznn1#copy running-config startup-config 保存刚才指令 Destination filename startup-config? startup-config Building configuration. OK 8、rznn1#reload 重启路由器 Proceed with reload? confirm System Bootstrap, Version 12.1(3r)T2, RELEASE

13、 SOFTWARE (fc1) Copyright (c) 2000 by cisco Systems, Inc. cisco 2811 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memory Self decompressing the image : # OK Restricted Rights Legend rznn1#show ip interface b Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11

14、.1 YES manual up up FastEthernet0/1 192.168.1.1 YES manual up up Vlan1 unassigned YES manual administratively down down 9、rznn1(config-if)#ip add 192.168.3.1 255.255.255.0 重置 ip 地址 rznn1#show ip interface b Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.3.1 YES manual up up

15、FastEthernet0/1 192.168.1.1 YES manual up up Vlan1 unassigned YES manual administratively down down 实训四 发现协议 1、实训目的 通过发现协议显示路由器相邻路由的端口信息 2、拓扑结构 Router0:192.168.11.1 Router1:fa0/0 192.168.11.2 Fa0/1 192.168.12.1 Router2:192.168.12.2 3、步骤 R1 路由器 Routeren Router#conf t Enter configuration commands, one

16、 per line. End with CNTL/Z. Router(config)#host r1 r1(config)#int fa0/0 r1(config-if)#ip add 192.168.11.1 255.255.255.0 r1(config-if)#no sh %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upr1(config-if)# r1(config-if)#exit r1(config)#exit r1# %SYS-5-CONFIG_I: Configured from console by

17、 console r1#show ip interface b Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.1 YES manual up down FastEthernet0/1 unassigned YES manual administratively down down Vlan1 unassigned YES manual administratively down down R2 路由器 Routeren Router#conf t Enter configuration co

18、mmands, one per line. End with CNTL/Z. Router(config)#host r2 r2(config)#int fa0/0 r2(config-if)#ip add 192.168.11.2 255.255.255.0 r2(config-if)#no sh %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

19、r2(config-if)#exit r2(config)#exit r2# %SYS-5-CONFIG_I: Configured from console by console r2#conf t Enter configuration commands, one per line. End with CNTL/Z. r2(config)#int fa0/0 r2(config-if)#int fa0/1 r2(config-if)#ip add 192.168.12.1 255.255.255.0 r2(config-if)#no sh %LINK-5-CHANGED: Interfac

20、e FastEthernet0/1, changed state to up r2(config-if)#exit r2(config)#exit r2# %SYS-5-CONFIG_I: Configured from console by console r2#show ip interface b Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.2 YES manual up up FastEthernet0/1 192.168.12.1 YES manual up down Vlan1

21、 unassigned YES manual administratively down down R3 路由器 Routeren Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host r3 r3(config)#int fa0/0 r3(config-if)#ip add 192.168.12.2 255.255.255.0 r3(config-if)#no sh %LINK-5-CHANGED: Interface FastEthernet0/0, cha

22、nged state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up r3(config-if)#exit r3(config)#exit r3# %SYS-5-CONFIG_I: Configured from console by console r3#show ip interface b Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.12.2 YES man

23、ual up up FastEthernet0/1 unassigned YES manual administratively down down Vlan1 unassigned YES manual administratively down down R1 发现邻居 r1#show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone Device ID Lo

24、cal Intrfce Holdtme Capability Platform Port ID r2 Fas 0/0 165 R C2800 Fas 0/0 R2 发现邻居 r2#show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone Device ID Local Intrfce Holdtme Capability Platform Port ID r1

25、Fas 0/0 176 R C1841 Fas 0/0 r3 Fas 0/1 130 R C1841 Fas 0/0 R3 发现邻居 r3#show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone Device ID Local Intrfce Holdtme Capability Platform Port ID r2 Fas 0/0 166 R C2800

26、Fas 0/1 4、总结 show 命令 (1)show ip interface b (显示端口 ip 信息) (2)show version (显示 ios 版本信息) (3)show running-config (显示刚才使用的命令配置信息) (4)show cdp neighbors (显示发现邻居直连设备信息) (5)show interface (显示所有端口详细信息) 实训五 静态路由 1、实验目的:将不同网段的网络配通(ip route) Ip route 语法:ip route 目标地址 子网掩码 相邻路由器接口地址 Show ip route 2、试验拓扑: Router

27、0:192.168.11.1 Router1:fa0/0 192.168.11.2 Fa0/1 192.168.12.1 Router2:192.168.12.2 3、实验步骤: Router1 Routeren Router#conf t Router(config)#host r1 r1(config)#int fa0/0 r1(config-if)#ip add 192.168.11.1 255.255.255.0 r1(config-if)#no sh %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up r1(

28、config-if)#exit r1(config)#exit r1#show ip interface b Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.1 YES manual up down FastEthernet0/1 unassigned YES manual administratively down down Vlan1 unassigned YES manual administratively down down r1# %LINEPROTO-5-UPDOWN: Line

29、 protocol on Interface FastEthernet0/0, changed state to up r1#ping 192.168.12.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds: . Success rate is 0 percent (0/5) r1#conf t Enter configuration commands, one per line. End with CNTL/Z. r1(config)#ip

30、 route 192.168.12.0 255.255.255.0 192.168.11.2 r1(config)#exit r1#ping 192.168.12.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms r1#ping 192.168.12.2 Type escape sequence

31、 to abort. Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds: . Success rate is 0 percent (0/5) r1#ping 192.168.12.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 4

32、7/62/78 ms r1#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS,

33、L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set C 192.168.11.0/24 is directly connected, FastEthernet0/0 S 192.168.12.0/24 1/0 via 192.168.11.2 Router3 Route

34、ren Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host r3 r3(config)#int fa0/0 r3(config-if)#ip add 192.168.12.2 255.255.255.0 r3(config-if)#no sh %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interfa

35、ce FastEthernet0/0, changed state to up r3(config-if)#exit r3(config)#exit r3# %SYS-5-CONFIG_I: Configured from console by console r3#show ip interface b Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.12.2 YES manual up up FastEthernet0/1 unassigned YES manual administrative

36、ly down down Vlan1 unassigned YES manual administratively down down r3#conf t Enter configuration commands, one per line. End with CNTL/Z. r3(config)#ip route 192.168.11.0 255.255.255.0 192.168.12.1 r3(config)#exit r3#ping 192.168.11.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to

37、 192.168.11.2, timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms r3#ping 192.168.11.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.11.1, timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62

38、/63 ms r3#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 -

39、 IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set S 192.168.11.0/24 1/0 via 192.168.12.1 C 192.168.12.0/24 is directly connected, FastEthernet0/0 4、默认路由 Route 1 r1

40、en r1#conf t Enter configuration commands, one per line. End with CNTL/Z. r1(config)#no ip route 192.168.12.0 255.255.255.0 192.168.11.2 %No matching route to delete r1(config)#exit r1# %SYS-5-CONFIG_I: Configured from console by console r1#show ip route Codes: C - connected, S - static, I - IGRP, R

41、 - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candida

42、te default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set C 192.168.11.0/24 is directly connected, FastEthernet0/0 r1#conf t Enter configuration commands, one per line. End with CNTL/Z. r1(config)#ip route 0.0.0.0 0.0.0.0 192.168.11.2 r1(co

43、nfig)#exit r1# %SYS-5-CONFIG_I: Configured from console by console r1#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF externa

44、l type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is 192.168.11.2 to network 0.0.0.0 C 192.168.11.0/24 is directly

45、 connected, FastEthernet0/0 S* 0.0.0.0/0 1/0 via 192.168.11.2 r1#ping 192.168.12.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 16/28/31 ms r1#ping 192.168.12.2 Type escape sequence

46、to abort. Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 ms Route 3 r1en r1#conf t Enter configuration commands, one per line. End with CNTL/Z. r1(config)#no ip route 192.168.12.0 255.255.255.0 192.168.11.2 %No matching route to delete r1(config)#exit r1# %SYS-5-CONFIG_I: Configured from console by console r1#show ip route Codes: C - connected, S - static, I - IGRP

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

当前位置:首页 > 重点行业资料库 > 自然科学

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。