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

上传人:小** 文档编号:575996 上传时间:2018-10-31 格式:DOC 页数:49 大小:1.67MB
返回 下载 相关 举报
Cisco路由器配置实例(经典~).doc_第1页
第1页 / 共49页
Cisco路由器配置实例(经典~).doc_第2页
第2页 / 共49页
点击查看更多>>
资源描述

《Cisco路由器配置实例(经典~).doc》由会员分享,可在线阅读,更多相关《Cisco路由器配置实例(经典~).doc(49页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

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

2、st rznn1 改名字为 rznn1rznn1(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/1rznn1(config-if)#ip add 192.168.1.1 255.255.255.0rznn1(config-if)#no sh|rznn1(config-if)#exitrznn1(config)#exitrznn1#copy running-config s

3、tartup-config 保存 Destination filename startup-config? startup-configrznn1#conf trznn1(config)#enable secret password 222 设置密文rznn1#show ip interface b 显示Interface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.11.1 YES manual up upFastEthernet0/1 192.168.1.1 YES manual up upVlan1 unass

4、igned YES manual administratively down downrouter 2outerenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host rznn2rznn2(config)#int fa0/0rznn2(config-if)#ip add 192.168.11.2 255.255.255.0rznn2(config-if)#no shrznn2(config)#int fa0/1rznn2(config-if)#ip add 19

5、2.168.2.1 255.255.255.0rznn2(config-if)#no shRznn2#copy running-config startup-config 保存 Destination filename startup-config? startup-configrznn2(config-if)#exitrznn2(config)#exitrznn2#conf trznn2(config)#enable secret 222rznn2#show ip interface b Interface IP-Address OK? Method Status ProtocolFastE

6、thernet0/0 192.168.11.2 YES manual up upFastEthernet0/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.1Pc:192.168.1.2步骤 rznn3rznn3enrznn3#conf t|Enter configuration commands, one

7、per line. End with CNTL/Z.rznn3(config)#no ip domain lookuprznn3(config)#line cons 0rznn3(config-line)#password znnrznn3(config-line)#loginrznn3(config-line)#no exec-trznn3(config-line)#logg syncrznn3(config-line)#exitrznn3(config)#int fa0/0rznn3(config-if)#ip add 192.168.1.1 255.255.255.0rznn3(conf

8、ig-if)#no shrznn3(config-if)#exitrznn3(config)#line vty 0 4 打通五个端口rznn3(config-line)#password cisco 设置密码rznn3(config-line)#login 保存 rznn3(config-line)#exit4、测试:|实训三 命令组1、目的:八条命令( no ip domain lookupline cons 0passwordloginno exec-tlogg syncshow versionreloadcopy running-config startup-config)show cd

9、p neighbors)2、拓扑结构图Router0 fa0/0: 192.168.11.1Router1 fa0/0: 192.168.11.23、步骤rznn1#conf tEnter configuration commands, one per line. End with CNTL/Z.1、rznn1(config)#no ip domain lookup 取消域名查找转换|2、rznn1(config)#line cons 0 打开 cons 0 端口3、rznn1(config-line)#password znn 设置密码为 znnrznn1(config-line)#logi

10、n 保存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)Technical Support: http:/ (c) 1986-2007 by Cisco Systems, Inc.Compiled Wed 18-Jul-07 06:

11、21 by pt_rel_team6、rznn1#show cdp neighbors 查看路由器连接的相邻路由器的相关信息Capability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS - Switch, H - Host, I - IGMP, r - Repeater, P - PhoneDevice ID Local Intrfce Holdtme Capability Platform Port IDrznn2 Fas 0/0 139 R C2800 Fas 0/07、rznn1#copy running

12、-config startup-config 保存刚才指令Destination filename startup-config? startup-configBuilding configuration.OK8、rznn1#reload 重启路由器Proceed with reload? confirmSystem Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)Copyright (c) 2000 by cisco Systems, Inc.cisco 2811 (MPC860) processor (revision 0x200)

13、 with 60416K/5120K bytes of memorySelf decompressing the image :# OKRestricted Rights Legendrznn1#show ip interface bInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.11.1 YES manual up upFastEthernet0/1 192.168.1.1 YES manual up upVlan1 unassigned YES manual administratively do

14、wn down9、rznn1(config-if)#ip add 192.168.3.1 255.255.255.0 重置 ip 地址 |rznn1#show ip interface bInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.3.1 YES manual up upFastEthernet0/1 192.168.1.1 YES manual up upVlan1 unassigned YES manual administratively down down实训四 发现协议1、实训目的通过发

15、现协议显示路由器相邻路由的端口信息2、拓扑结构Router0:192.168.11.1Router1:fa0/0 192.168.11.2Fa0/1 192.168.12.1Router2:192.168.12.23、步骤R1 路由器RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host r1r1(config)#int fa0/0r1(config-if)#ip add 192.168.11.1 255.255.255.0r1(config-if)

16、#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upr1(config-if)#|r1(config-if)#exitr1(config)#exitr1#%SYS-5-CONFIG_I: Configured from console by consoler1#show ip interface bInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.11.1 YES manual up downFastEthernet0

17、/1 unassigned YES manual administratively down downVlan1 unassigned YES manual administratively down downR2 路由器RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host r2r2(config)#int fa0/0r2(config-if)#ip add 192.168.11.2 255.255.255.0r2(config-if)#no sh

18、%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upr2(config-if)#exitr2(config)#exitr2#%SYS-5-CONFIG_I: Configured from console by consoler2#conf tEnter configuration commands, one per line. End with CNTL

19、/Z.r2(config)#int fa0/0r2(config-if)#int fa0/1r2(config-if)#ip add 192.168.12.1 255.255.255.0r2(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to upr2(config-if)#exitr2(config)#exitr2#%SYS-5-CONFIG_I: Configured from console by consoler2#show ip interface bInterface IP-Add

20、ress OK? Method Status ProtocolFastEthernet0/0 192.168.11.2 YES manual up up|FastEthernet0/1 192.168.12.1 YES manual up downVlan1 unassigned YES manual administratively down downR3 路由器RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host r3r3(config)#in

21、t fa0/0r3(config-if)#ip add 192.168.12.2 255.255.255.0r3(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 upr3(config-if)#exitr3(config)#exitr3#%SYS-5-CONFIG_I: Configured from console by

22、consoler3#show ip interface bInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.12.2 YES manual up upFastEthernet0/1 unassigned YES manual administratively down downVlan1 unassigned YES manual administratively down downR1 发现邻居r1#show cdp neighborsCapability Codes: R - Router, T -

23、 Trans Bridge, B - Source Route BridgeS - Switch, H - Host, I - IGMP, r - Repeater, P - PhoneDevice ID Local Intrfce Holdtme Capability Platform Port IDr2 Fas 0/0 165 R C2800 Fas 0/0R2 发现邻居r2#show cdp neighborsCapability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS - Switch, H - Hos

24、t, I - IGMP, r - Repeater, P - PhoneDevice ID Local Intrfce Holdtme Capability Platform Port IDr1 Fas 0/0 176 R C1841 Fas 0/0r3 Fas 0/1 130 R C1841 Fas 0/0R3 发现邻居r3#show cdp neighbors|Capability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS - Switch, H - Host, I - IGMP, r - Repeater,

25、 P - PhoneDevice ID Local Intrfce Holdtme Capability Platform Port IDr2 Fas 0/0 166 R C2800 Fas 0/14、总结 show 命令(1)show ip interface b (显示端口 ip 信息)(2)show version (显示 ios 版本信息)(3)show running-config (显示刚才使用的命令配置信息)(4)show cdp neighbors (显示发现邻居直连设备信息)(5)show interface (显示所有端口详细信息)实训五 静态路由1、实验目的:将不同网段的

26、网络配通(ip route)Ip route 语法:ip route 目标地址 子网掩码 相邻路由器接口地址Show ip route2、试验拓扑:Router0:192.168.11.1Router1:fa0/0 192.168.11.2Fa0/1 192.168.12.1Router2:192.168.12.23、实验步骤:Router1RouterenRouter#conf tRouter(config)#host r1r1(config)#int fa0/0r1(config-if)#ip add 192.168.11.1 255.255.255.0r1(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upr1(config-if)#exitr1(config)#exitr1#show ip interface b

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

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

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

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁