路由器基础知识培训.ppt

上传人:本田雅阁 文档编号:3088682 上传时间:2019-07-06 格式:PPT 页数:42 大小:204.01KB
返回 下载 相关 举报
路由器基础知识培训.ppt_第1页
第1页 / 共42页
路由器基础知识培训.ppt_第2页
第2页 / 共42页
路由器基础知识培训.ppt_第3页
第3页 / 共42页
路由器基础知识培训.ppt_第4页
第4页 / 共42页
路由器基础知识培训.ppt_第5页
第5页 / 共42页
点击查看更多>>
资源描述

《路由器基础知识培训.ppt》由会员分享,可在线阅读,更多相关《路由器基础知识培训.ppt(42页珍藏版)》请在三一文库上搜索。

1、1,路由器基础,2,将RJ-45 到 DB-9 或 RJ-45 到 DB-25的转换接头连接到PC的COM口,再通过电缆连接到Cisco设备的Console口 在终端软件中对COM 口的设置为:速率9600 bps, 8 个数据位,无奇偶效验位,1个停止位,无流量控制 AUX 口用于通过调制解调器连接管理设备,连接设备的Console,3,Cisco IOS 基础知识,互联网操作系统,4,命令行接口(CLI),用户模式,Console,Auxiliary,接口,Modem,Modem,VTY,5,路由器的用户模式和特权模式,用户模式,特权模式,enable,disable,Console,Au

2、x,VTY,6,路由器CLI的模式,Router(config)#,Router,Router#,配置模式,提示符,Interface Router(config-if)# Subinterface Router(config-subif)# Controller Router(config-controller)# Line Router(config-line)# Router Router(config-router)# IPX router Router(config-ipx-router)#,enable,configure terminal,exit,end 或ctrl-z,用户模

3、式,特权模式,全程配置模式,7,路由器的配置文件,用户模式,特权模式,全程配置模式,RAM (running-config) 运行配置文件,enable,Ctrl-Z,or,exit,NVRAM (startup-config) 启动配置文件,write,copy,conf t,disable,每一条成功的配置,8,路由器的内部配置部件,RAM/DRAM 路由器的工作区,保存路由表、ARP缓存、快速交换缓存、分组缓存区和分组队列 保存运行配置文件(Running-config) NVRAM 非易失性RAM,保存启动配置文件(Startup-config) Flash 存放操作系统 ROM 保存

4、开机诊断程序、引导程序和最小的操作系统,9,路由器的检测,Router# show processes CPU Router# show protocols,Router# show running-config Router# write term,Router# show memory Router# show stacks Router# show buffers,Router# show startup-config Router# show config,Router# show version,Router# show flash,Router# show interface,10

5、,路由器的基本配置,11,路由器的管理性配置,路由器的名称 Router(config)# hostname Router(config)# hostname P1R1 P1R1(config)# 路由器的标语 Router(config)# banner motd # Router(config)# banner motd #You are on Router1# 接口的描述 Router(config-if)# description Router(config-if)# description connected to Router2,12,配置路由器进入特权模式的密码,配置方法一: R

6、outer# conf t Router(config)#enable password 可在 setup 或 全程设置模式下配置 密码以纯文本的方式存放在配置文件中 配置方法二: Router# conf t Router(config)#enable secret 可在 setup 或 全程设置模式下配置 密码以加密的方式存放在配置文件中 此密码与“enable password”配置的密码共存时,此密码起作用,13,配置命令行接口连接的密码,其他相关命令: exec-timeout 0 0 logging synchronous,14,路由器的配置文件,用户模式,特权模式,全程配置模式,

7、RAM (running-config) 运行配置文件,enable,Ctrl-Z,or,exit,NVRAM (startup-config) 启动配置文件,write,copy,conf t,disable,每一条成功的配置,15,查看配置文件,Console,show startup-config,show running-config,启动配置 文件,运行配置 文件,RAM,NVRAM,16,命令列表,用 “?” 去看命令列表,Router? Exec commands: access-enable Create a temporary Access-List entry atmsig

8、 Execute Atm Signalling Commands cd Change current device clear Reset functions connect Open a terminal connection dir List files on given device disable Turn off privileged commands disconnect Disconnect an existing network connection enable Turn on privileged commands exit Exit from the EXEC help

9、Description of the interactive help system lat Open a lat connection lock Lock the terminal login Log in as a particular user logout Exit from the EXEC - More -,-More- 按空格键显示下一屏; 按回车键显示下一行; 按 “q” 退出,17,用“?”命令得到帮助,Router#c? clear clock configure connect copy Router#clock ? set set the time and date R

10、outer#clock set ? hh:mm:ss Current Time Router#clock set 10:30:10 ? Day of the month MONTH Month of the year Router#clock set 10:30:10 12 Jan ? Year Router#clock set 10:30:10 12 Jan 2002 ? ,18,出错信息,Router#clock set 10:30:10 % Incomplete command. Router(config)#clock set 19:56:00 04 8 2002 % Invalid

11、input detected at marker Router# sh te % Ambiguous command: “sh te” Router# sh te? WORD tech-support terminal,19,IOS 帮助命令小结,20,show version 命令,IOS 软件版本号 操作系统的名称 启动方式 硬件配置 处理器 接口 内存,21,配置接口,进入接口配置模式 Router(config)# interface Router(config)# interface ethernet 0 Router(config)# int e 0 Router(config)#

12、 interface Router(config)# interface fastethernet 0/1 Router(config)# int fa0/1,22,所有的接口在默认情况下均处于软件“shutdown”状态 Router# sh int fa0/0 FastEthernet0/0 is administratively down, 激活一个端口 Router(config-if)#no shutdown Router# sh int fa0/0 FastEthernet0/0 is up, 关闭端口 Router(config-if)#shutdown,激活接口,23,配置串行

13、广域网接口,串行接口需连接到一个提供公网时钟的 CSU/DSU (信道服务单元)设备 DTE / DCE中 DCE 提供时钟 实验环境中使用“背对背”的连接,其中连接DCE电缆的一端必须提供时钟 确定连接的电缆是DTE电缆 / DCE电缆 Router# show controllers ,Router#show controller serial 0 HD unit 0, idb = 0x121C04, driver structure at 0x127078 buffer size 1524 HD unit 0, V.35 DCE cable . .,24,配置串行广域网接口,进入全程配置

14、模式,Router(config-if)#clock rate 64000 Router(config-if)#,Router(config)#interface serial 0 Router(config-if)#,Router#configure terminal Router(config)#,Router(config-if)#bandwidth 64 Router(config-if)#exit Router(config)#exit Router#,指明需要配置的接口,配置时钟精度 (只在连接DCE电缆的接口配置),配置带宽 (默认1.544M),25,Router(config

15、-if)# ip address ,配置接口的IP地址,Router#configure terminal Router(config)#interface ethernet 0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#no shutdown Router(config-if)#exit,26,使用命令历史功能,Ctrl-P or Up arrow,翻回上次的命令,Ctrl-N or Down arrow,翻回更多的近期命令,Router show history,显示以前的命令内容,Ro

16、uter terminal history size ,选择历史记录的命令数目,27,基本网络测试,28,基本网络测试,应用层的测试 telnet 网络层的测试 ping trace 数据链路层和物理层的测试 show interface 路由表的查询 show ip route,29,show interface 查看接口状态,Router# show int Router# sh int s0 Serial0 is administratively down, line protocol is down 接口未激活 Serial0 is down, line protocol is dow

17、n 线路或接口问题 连接路由器的设备的接口未激活 Serial0 is up, line protocol is down 时钟问题 Keepalive 数据链路层协议的封装不匹配 Serial0 is up, line protocol is up,30,show ip route 查看路由表,直连路由 静态/默认路由 通过路由协议学习到的路由,31,专线安装路由器典型配置,32,专线安装路由器配置,路由器的配置一般由客户自行配置。若遇到特殊情况,上报项目经理,经协调后可帮客户配置调试。 路由器配置分类: 1.专线上网(包括城域网、数据专线) 2.通过专线与其他分点相连 帧中继电路 DDN、

18、SDH电路 MSTP电路,33,城域网专线上网配置(一),打电话给网管,问ip地址,及网关ip(即静态路由的下一跳)。 假设网管所给地址为192.168.0.0/28,网关为192.168.0.1。则用户可用的ip地址为192.168.0.214。则此时,用户用电脑直接连接光纤收发器,ip地址设为192.168.0.214、网关设为192.168.0.1、子网掩码为255.255.255.240便可以接入互联网。 若用户上网人数超过13人,便要采用NAT(ip地址翻译)功能。,34,城域网专线上网配置(二),本例把以太口0作为外口,以太口1作为内口: 用超级终端进入路由器,回车,出现 rout

19、er enable config terminal interface ethernet0 /如果用户是快速以太口则输入fastethernet ip address 192.168.0.2 255.255.255.240 /选择网段内的其它ip也可 ip nat outside no shutdown exit interface ethernet1 ip address 10.0.0.1 255.255.255.0 /该接口ip地址为上网电脑的网关 ip nat inside no shutdown exit ip nat pool aaa 192.168.0.2 192.168.0.2

20、netmask 255.255.255.240 /aaa也可换成其它名称 ip nat inside source list 1 pool aaa overload access-list 1 permit 10.0.0.0 0.0.0.255 ip route 0.0.0.0 0.0.0.0 192.168.0.1,35,帧中继电路配置,enable config terminal interface serial 0/0 encapsulation frame-relay frame-relay lmi-type q933a no shutdown interface serial 0/0

21、.1 point-to-point ip address 172.16.1.1 255.255.255.252 frame-reply interface-dlci 105 /dlci是对端的,该参数要问网管 no shutdown exit interface e0/0 ip address 192.168.1.0 255.255.255.0 ip route 192.168.0.0 255.255.255.0 172.16.1.2 /给对端网段做路由,下一跳为对端,36,DDN、SDH电路配置,enable config terminal interface s0/0 ip address

22、 172.16.1.1 255.255.255.252 no shutdown exit interface ethernet0/0 ip address 192.168.1.0 255.255.255.0 no shutdown ip route 192.168.0.0 255.255.255.0 172.16.1.2 /给对端网段做路由,下一跳为对端广域网口,37,MSTP电路配置,本例为派出所路由器配置 enable /然后输入密码 config t interface f0 ip address 192.168.xxx.xxx.255.255.255.252 /该ip地址为外网口ip地

23、址 no shutdown exit interface e0 ip address 10.43.xxx.xxx 255.255.255.240 /该ip地址为内网口ip地址 no shutdown exit router eigrp 1 network 10.0.0.0 network 192.168.xxx.0 /该ip地址中的xxx与本路由器外网口一致 no auto-summary exit exit wr,38,CISCO路由器口令恢复,当Cisco 路由器的口令被错误修改或者忘记时,可以按如下步骤进行操作 1. 开机时按使进入ROM监控状态,作如下设置,使路由器引导时忽略NVRAM

24、中的设置 2. rommon 1confreg 0x2142 正常值为0x2102 3. rommon 1reset 重新启动路由器 4. 在Setup 下,选择NO ,进入特权模式 5. Router#configure memory 恢复NVRAM中的配置 6. Router#configure terminal 恢复正常配置寄存器并激活所有端口 Router(config)#config-register 0x2102 Router(config)#interface xx Router(config)#no shut Router #wr,39,思考:,1.CISCO路由器命令行接口模

25、式主要包含哪两种模式? 2.请列举出几个比较常用的基本网络测试命令。 3.假设有一城域网上网专线网管提供的公网IP为192.168.0.0/28, 请简单描述出网关地址,可用IP地址段及子网掩码等信息。 4.在查看路由器端口状态时显示如下: Serial0 is down, line protocol is down 请简单描述可能存在的问题。 5.CISCO路由器的NVRAM与RAM在存放配置文件上有什么区别? 6.实际操作:几种常见专线的配置。,40,答案,1.CISCO路由器命令行接口模式主要包含哪两种模式? 答:用户模式和特权模式。 2.请列举出几个比较常用的基本网络测试命令。 答:t

26、elnet ping tracert 3.假设有一城域网上网专线网管提供的公网IP为192.168.0.0/28, 请简单描述出网关地址,可用IP地址段及子网掩码等信息。 答:网关地址:192.168.0.1 可用IP地址段:192.168.0.214 子网掩码:255.255.255.240,41,答案,4.在查看路由器端口状态时显示如下: Serial0 is down, line protocol is down 请简单描述可能存在的问题。 答:线路或接口问题,连接路由器的设备的接口未激活 5.CISCO路由器的NVRAM与RAM在存放配置文件上有什么区别? 答:RAM保存的是当前运行的配置文件,NVRAM保存的是启动配置文件。 6.见幻灯片。,42,谢谢大家,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 其他


经营许可证编号:宁ICP备18001539号-1