《配置Cisco路由器》PPT课件.ppt

上传人:人*** 文档编号:568429342 上传时间:2024-07-24 格式:PPT 页数:76 大小:2.37MB
返回 下载 相关 举报
《配置Cisco路由器》PPT课件.ppt_第1页
第1页 / 共76页
《配置Cisco路由器》PPT课件.ppt_第2页
第2页 / 共76页
《配置Cisco路由器》PPT课件.ppt_第3页
第3页 / 共76页
《配置Cisco路由器》PPT课件.ppt_第4页
第4页 / 共76页
《配置Cisco路由器》PPT课件.ppt_第5页
第5页 / 共76页
点击查看更多>>
资源描述

《《配置Cisco路由器》PPT课件.ppt》由会员分享,可在线阅读,更多相关《《配置Cisco路由器》PPT课件.ppt(76页珍藏版)》请在金锄头文库上搜索。

1、计算机网络技术培训教材中国人民保险公司目 录第一章 Cisco路由器产品介绍第二章 配置Cisco路由器第三章 管理Cisco路由器第四章 Cisco路由器故障排除第五章 提升Cisco路由器的安全性第六章 PICC网络范例第二章 配置Cisco路由器1.安装Cisco路由器2.Cisco路由器的初始配置3.用户界面的使用4.了解Cisco路由器的内部组件5.Cisco路由器的基本配置方法6.广域网配置模型第二章 配置Cisco路由器1.安装Cisco路由器2.Cisco路由器的初始配置3.用户界面的使用4.了解Cisco路由器的内部组件5.Cisco路由器的基本配置方法6.广域网配置模型1

2、安装Cisco路由器UTP电缆的制作方法路由器端口的命名方法固定端口模块化端口设置控制台连接UTP电缆的制作方法正常线:UTP电缆的制作方法(续)对接线:固定配置路由器端口的命名方法对于Cisco2500系列固定配置路由器,使用e0、s0、s1等名称。Cisco1600和1700系列路由器虽然使用模块化插槽,但同样遵从此标准。模块化路由器端口的命名方法对于Cisco2600和3600等模块化配置的路由器,使用e0/0、fastethernet0/1、s1/0、s2/2、bri1/0等名称。interface type chassis slot / unit number 设置Cisco路由器的

3、5种方式通过Console口连接终端或运行终端仿真软件的微机相连通过AUX口接MODEM,通过电话线与远方的终端或运行终端仿真软件的微机相连通过Ethernet上的TFTP服务器 通过Ethernet上的TELNET程序 通过Ethernet上的SNMP网管工作站连接路由器控制台端口Cisco路由器的第一次设置必须通过Console口终端通讯参数设置为: 速度:9600bps 数据位:8位 停止位:1位 校验:无 流控:无第二章 配置Cisco路由器1.安装Cisco路由器2.Cisco路由器的初始配置3.用户界面的使用4.了解Cisco路由器的内部组件5.Cisco路由器的基本配置方法6.广

4、域网配置模型Cisco路由器的初始配置- System Configuration Dialog -At any point you may enter a question mark ? for help.Use ctrl-c to abort configuration dialog at any prompt.Default settings are in square brackets .Would you like to enter the initial configuration dialog? yes:First, would you like to see the curre

5、nt interface summary? yes:Any interface listed with OK? value NO does not have a valid configurationInterface IP-AddressOK?MethodStatusProtocol Ethernet0unassignedNOunsetupdown Serial0unassignedNOunsetdowndown Serial1unassignedNOunsetdowndown 第二章 配置Cisco路由器1.安装Cisco路由器2.Cisco路由器的初始配置3.用户界面的使用4.了解Cis

6、co路由器的内部组件5.Cisco路由器的基本配置方法6.广域网配置模型3 用户界面的使用命令模式使用联机帮助使用编辑命令使用历史命令命令模式用户模式(user mode): 提示符是“”,在此模式下,用户可以查看路由器的连接状态,访问其它网络和主机,但不能看到和更改路由器的设置内容。特权模式(privileged mode):提示符是“#”,在此模式下,用户可以执行所有的用户命令,还可以看到和更改路由器的设置内容。RouterRouterenablePassword:*Router#Router#disableRouter使用联机帮助Cisco路由器拥有众多的命令和参数,即使最熟练的Cisc

7、o专家也难以记住每个命令的准确语法。因此,Cisco IOS有一个广博的联机帮助系统。从任何提示或在命令项目位置输入问号“?”,即可得到可用选项清单。使用联机帮助(续)Cisco#show ipx ? Accounting The active IPX accounting database Cache IPX fast-switching cache Eigrp IPX EIGRP show commands Interface IPX interface status and configuration route IPX routing table servers SAP servers

8、 spx-spoof SPX Spoofing table traffic IPX protocol statistics使用联机帮助(续)Router# show c?clock compress configuration controllersRouter (config-if)# ip address 172.29.1.0 ?A.B.C.D IP subnet mask缩写命令在配置Cisco路由器时,用户不用输入命令的完整单词,可以缩写命令,但要求输入部分可以唯一标识这个命令。缩写命令(续)如果输入太少,路由器无法唯一标识一个命令,则会出现如下输出:Router# t% Ambigu

9、ous command : “t”表示路由器需要更多字母才能匹配这个命令。输入足够字符之后按Tab键,路由器会自动填入余下部分。错误命令当输入错误字符或格式时, 路由器在错误出现的地方用字符()提示错误,并终止该命令的执行。Router # clock set 19:56:00 04 8 %Invalid input detected at the markerRouter # clock set 19:56:00 04 august%Incomplete command.Router # clock set 19:56:00 04 August ? year使用编辑命令使用历史命令第二章 配

10、置Cisco路由器1.安装Cisco路由器2.Cisco路由器的初始配置3.用户界面的使用4.了解Cisco路由器的内部组件5.Cisco路由器的基本配置方法6.广域网配置模型4 了解Cisco路由器的内部组件ROMFLASHNVRAMRAMCisco路由器的启动顺序ROMROM Read Only Memory保存系统初始化所需的程序代码,包括系统引导区代码和通电测试代码。还保存备份操作系统(Mini IOS),以便原操作系统删除或破坏时使用。如果要进行升级,则要替换ROM芯片。FLASH存放IOS(Internet Operating System)映像如何从快速闪存中读取操作系统代码,取

11、决于路由器的类型。从快速闪存运行(run-from-Flash)例如:Cisco 2500系列从RAM运行(run-from-RAM)例如:Cisco 4500系列从快速闪存运行的路由器通常比从RAM运行的路由器慢。NVRAMNVRMA Nonvolatile RAM用于保存系统配置文件速度快,价格高不同型号的路由器有32KB128KB NVRAMRAMRandom Access Memory(RAM,随机访问内存)Cisco路由器中的RAM是执行期间暂时存放操作系统和数据的存储器。运行期间,RAM中包含路由表项目、ARP缓冲项目、日志项目和排队等待发送的分组等;RAM中还包含运行配置(run

12、ning-config)和正在执行的操作系统代码(IOS)。Cisco路由器的启动顺序从CPU卡的ROM上装载普通引导程序。操作系统资源可定位于几个不同的位置,这些位置的选择取决于配置寄存器的根域(Boot field)。装载操作系统映像文件并检测软硬件构成。将NVRAM中存储的配置文件装入主存并逐行执行。如果NVRAM中没有有效的配置文件,操作系统将执行一个被称作系统配置对话的初始配置程序。第二章 配置Cisco路由器1.安装Cisco路由器2.Cisco路由器的初始配置3.用户界面的使用4.了解Cisco路由器的内部组件5.Cisco路由器的基本配置方法6.广域网配置模型5 Cisco路由

13、器的基本配置方法配置模式全局配置模式路由协议配置模式接口配置模式子接口配置模式控制器配置模式线端口配置模式口令设置方法打开/关闭接口Cisco路由器基本操作命令配置模式配置模式(续)全局配置模式全局配置模式下的命令影响系统全局特征应用于单行命令配置方式配置全系统全局配置模式包括进入其他模式的命令Router # configure terminalRouter (config) # hostnameRouter (config) # (commands)Router (config)# exitRouter #Router # configure terminalRouter (config)

14、 # router protocolRouter (config-router) # (commands)Router (config-router) # exitRouter (config) # interface type portRouter (config-if) # (commands)Router (config-if) # exitRouter (config) # exitRouter #全局配置模式常用命令Router(config)# hostname hostnameRouter(config)# enable secret passwordRouter(config)

15、# ip routingRouter(config)# snmp-server community string RO | RWRouter(config)# ip route prefix mask address | interface distance tag tag permanent路由协议配置模式用户可以通过配置静态路由和动态路由两种方法使路由器完成路由表的建立和维护工作。当选择使用动态路由协议时,需按不同协议配置相关命令。用户首先应使用router命令选择要使用的路由协议,此时,路由器进入路由协议配置模式,提示符为Router(config-router)#。在配置完相关命令后,

16、用exit命令返回到全局配置模式。Router(config)# router eigrp 100Router(config-router)# (command)Router(config-router)# exitRouter(config)# 接口配置模式路由器的不同端口连接不同的网段,不同端口间存在着不同的差别和特性。在对不同端口配置相关特性前应先通过interface命令进入接口配置模式。配置完成后通过exit命令返回到全局配置模式。Router(config)# interface e0Router(config-if)# (command)Router(config-if)# ex

17、itRouter(config)# 接口配置模式常用命令Router(config-if)# media-type 10base-T | AUIRouter(config-if)# ip address address maskRouter(config-if)# encapsulation ppp | frame-relay | x25子接口配置模式在大多数情况下,用户只需对相应接口进行操作,完成该端口的特性配置。但在配置帧中继时,为使配置能适应不同环境,需通过interface type slot/number.subinterface命令对子接口进行配置。Router(config)#

18、interface type slot/numberRouter(config-if)# (command)Router(config-if)# interface type slot/number.subinterface point-to-point | multipointRouter(config-subif)# (command)Router(config-subif)# exitRouter(config-if)# exitRouter(config)# 控制器配置模式当用户选择E1、CE1或ISDN PRI模板时,需通过控制器配置模式对该模板进行帧格式、时隙划分等特性进行配置。配

19、置命令为controller。Router(config)# controller t1 | e1 slot/numberRouter(config-controller)# (command)Router(config-controller)# exitRouter(config)# 线端口配置模式Cisco路由器除以太口、令牌环口、串口外,还有console口、AUX口、VTY口等线端口。为了完成对这些端口的特性配置,需首先通过line命令进入线端口配置模式。异步端口编号 interface-number = (32 x slot-number) + port-number + 1Rout

20、er(config)# line con 0Router(config-line)# (command)Router(config-line)# exitRouter(config)# line vty 0 4Router(config-line)# (command)Router(config-line)# exitRouter(config)# line aux 0Router(config-line)# (command)Router(config-line)# exitRouter(config)# line 33Router(config-line)# (command)Router

21、(config-line)# exitRouter(config)# line 34 40Router(config-line)# (command)Router(config-line)# exitRouter(config)# 设置路由器口令line console 0命令建立了进入控制终端的口令保护; Router(config)# line console 0 Router(config-line)# login Router(config-line)# password passwordline vty 0 4命令建立了进入Telnet会话的口令保护: Router(config)#

22、 line vty 0 4 Router(config-line)# login Router(config-line)# password password设置路由器口令(续)Enable-secret命令限制进入特权执行模式:Router(config)# enable secret password通过enable secret命令设置的口令将通过加密方式显示。Enable-password命令限制进入特权执行模式:Router(config)# enable password password口令password适用于IOS 10.2以下版本,在IOS 10.3以上版本均使用secre

23、t,不再用password。在配置文件中,password是以明文方式显示的。password可通过service password-encryption命令加密进行保护。Router(config)# service password-encryptionusername password命令用户可以在全局配置模式通过username password命令设置用户名和口令对,并在接口/ 线端口配置模式使用login local命令使用该用户名和口令。Router(config)# username username usernameusername password password pas

24、swordpasswordRouter(config-line)# login login locallocalUsername password命令可为console或vty访问提供保护,也可为PAP和CHAP认证提供依据。打开、关闭接口用户在使用某一端口前,需通过no shutdown命令打开该端口。相反,用户可通过shutdown命令强行关闭某一端口。Router(config-if)# no shutdownno shutdownRouter(config-if)# shutdownshutdown当使用show interface命令时,如果显示为line is administra

25、tive down,则说明该端口被用户强行关闭。Cisco路由器基本操作命令Cisco路由器基本操作命令(续)第二章 配置Cisco路由器1.安装Cisco路由器2.Cisco路由器的初始配置3.用户界面的使用4.了解Cisco路由器的内部组件5.Cisco路由器的基本配置方法6.广域网配置模型6 广域网配置模型配置DDN配置Frame Relay配置X.25配置DDR配置静态路由DDN概述DDN可以使用PPP和HDLC两种封装格式。点对点协议(PPP)最初是作为在点对点链路上进行IP通信的封装协议出现的,它定义了IP地址的分配和管理、异步和同步封装、网络协议复用、链路配置、链路质量测试、错误

26、检测等标准,以及网络层地址协议和数据压缩协议等可选协议标准。PPP通过可扩展的链路控制协议(LCP)和网络控制协议(NCP)簇来实现上述功能,达到配置可选参数和设备的目的。除了支持IP外,PPP还支持其它协议,如Novell的网间数据报文交换协议(IPX)和DECnet等。PPP工作流程为了建立点对点链路上的通信连接,发送端PPP首先发送LCP帧,以配置和测试数据链路。在LCP建立好数据链路并协调好所选设备之后,发送端PPP发送NCP帧,以选择和配置一个或多个网络层协议。当所选的网络层协议配置好后,便可将各网络层协议的数据报文发送到数据链路上。配置好的链路将一直保持通信状态,直到LCP帧或NC

27、P帧明确提示关闭链路,或者有其它的外部事件发生(如用户干预等)。DDN单端口配置方法DDN CE1模板配置方法注: 当链路为CT1时,channel-group编号为0-23,timeslot范围1-24; 当链路为CE1时,channel-group编号为0-30,timeslot范围1-31。DDN单端口配置实例Router(config)# interface s0/0Router(config-if)# no shutdownRouter(config-if)# ip address 192.168.1.1 255.255.255.0Router(config-if)# encapsu

28、lation pppRouter(config-if)# exitRouter(config)# DDN CE1模板配置实例Router(config)# controller e1 1/0Router(config-controller)# framing no-crc4Router(config-controller)# channel-group 0 timeslots 1Router(config-controller)# channel-group 1 timeslots 2,3Router(config-controller)# channel-group 2 timeslots

29、4Router(config-controller)# exitRouter(config)# interface serial 1/0:0Router(config-if)# no shutdownRouter(config-if)# ip address 192.168.1.1 255.255.255.0Router(config-if)# encapsulation pppDDN CE1模板配置实例(续)Router(config)# interface serial 1/0:1Router(config-if)# no shutdownRouter(config-if)# ip add

30、ress 192.168.2.1 255.255.255.0Router(config-if)# encapsulation pppRouter(config)# interface serial 1/0:2Router(config-if)# no shutdownRouter(config-if)# ip address 192.168.3.1 255.255.255.0Router(config-if)# encapsulation pppFrame Relay概述帧中继(Frame Relay)是一种高性能的WAN协议,它运行在OSI参考模型的物理层和数据链路层。帧中继是X.X.25的

31、简化版本,帧中继比X.25具有更高的性能和更有效地传输效率。帧中继广域网的设备分为数据终端设备(DTE)和数据连接设备(DCE)两大类。帧中继技术提供面向连接的数据链路层的通信,这意味着在每对设备之间都存在一条已定义好的通信连接。每个帧中继虚电路都以数据链路连接标识符(DLCI)标识自己。帧中继本地管理接口(LMI)是对基本的帧中继标准的扩展集,提供了路由器和帧中继交换机之间的信令标准。Frame Relay配置方法Frame Relay配置实例(Point-to-Point)Router(config)# interface serial 0/0Router(config-if)# enca

32、psulation frame-relayRouter(config-if)# interface serial 0/0.1 point-to-pointRouter(config-subif)# ip address 192.168.1.1 255.255.255.0Router(config-subif)# frame-relay interface-dlci 101Router(config-subif)# exitRouter(config-if)# interface serial 0/0.2 point-to-pointRouter(config-subif)# ip addres

33、s 192.168.2.1 255.255.255.0Router(config-subif)# frame-relay interface-dlci 102Router(config-subif)# exitRouter(config-if)# interface serial 0/0.3 point-to-pointRouter(config-subif)# ip address 192.168.1.1 255.255.255.0Router(config-subif)# frame-relay interface-dlci 103Router(config-subif)# exitFra

34、me Relay配置实例(Multipoint)Router(config)# interface serial 0/0Router(config-if)# encapsulation frame-relayRouter(config-if)# interface serial 0/0.1 multipointRouter(config-subif)# ip address 192.168.1.1 255.255.255.0Router(config-subif)# frame-relay map ip 192.168.1.11 101Router(config-subif)# frame-r

35、elay map ip 192.168.1.12 102Router(config-subif)# frame-relay map ip 192.168.1.13 103Router(config-subif)# exitFrame Relay配置实例(Point-to-Point与Multipoint混合)Router(config)# interface serial 0/0Router(config-if)# encapsulation frame-relayRouter(config-if)# interface serial 0/0.1 point-to-pointRouter(co

36、nfig-subif)# ip address 192.168.1.1 255.255.255.0Router(config-subif)# frame-relay interface-dlci 101Router(config-subif)# exitRouter(config-if)# interface serial 0/0.2 multipointRouter(config-subif)# ip address 192.168.2.1 255.255.255.0Router(config-subif)# frame-relay map ip 192.168.2.11 201Router

37、(config-subif)# frame-relay map ip 192.168.2.12 202Router(config-subif)# exitX.25概述X.25是ITU-U于70年代制定的WAN通信协议。X.25网络设备分为数据终端设备(DTE)、数据电路终端设备(DCE)和分组交换设备(PSE)三大类。X.25 虚电路分为交换式虚电路和永久性虚电路两类。每个分配给用户的x.25 端口都具有一个x.121地址,htc必须与x.25服务提供商分配的参数相同。X.25配置方法X.25配置实例Router(config)# interface serial 1/0Router(conf

38、ig-if)# no shutdownRouter(config-if)# ip address 192.168.1.1 255.255.255.0Router(config-if)# encapsulation x25Router(config-if)# x25 address 12345678Router(config-if)# x25 htc 16Router(config-if)# x25 map ip 192.168.1.11 12340001Router(config-if)# x25 map ip 192.168.1.12 12340002Router(config-if)# x

39、25 map ip 192.168.1.13 12340003Router(config-if)# exitDDR概述DDR(Dial on Demand Routing,按需拨号路由)是为那些分支机构在不申请专线的情况下,通过电话网络实现网络互联的方法。当路由器配置成DDR方式后,路由器随时检测进入路由器的信息包,当路由器判断出该信息包需通过拨号才能传输时,自动建立拨号连接,在连接建立后,发送该数据包。DDR可选择PSTN和ISDN两种拨号方式。DDR配置方法DDR配置方法(续)DDR配置方法(续)DDR配置实例(中心路由器)Router(config)# interface serial

40、1/0Router(config-if)# physical-layer asyncRouter(config-if)# ip address 192.168.1.1 255.255.255.0Router(config-if)# no shutdownRouter(config-if)# encapsulation pppRouter(config-if)# async default routingRouter(config-if)# async mode dedicatedRouter(config-if)# dialer in-bandRouter(config-if)# dialer

41、 idle-timeout 300Router(config-if)# exitRouter(config)# line 33Router(config-line)# modem InOutRouter(config-line)# modem autoconfig discoveryRouter(config-line)# transport input allRouter(config-line)# stopbits 1Router(config-line)# flowcontrol hardwareRouter(config-line)# exitDDR配置实例(分支路由器)Router(

42、config)# chat-script mydial “” “atdtT” TIMEOUT 60 CONNECT cRouter(config)# dialer-list 1 protocol ip permitRouter(config)# interface serial 0/0Router(config-if)# physical-layer asyncRouter(config-if)# ip address 192.168.1.10 255.255.255.0Router(config-if)# no shutdownRouter(config-if)# encapsulation

43、 pppRouter(config-if)# async default routingRouter(config-if)# async mode dedicatedRouter(config-if)# dialer in-bandRouter(config-if)# dialer map ip 192.168.1.1 modem-script mydial 62359070Router(config-if)# dialer idle-timeout 300Router(config-if)# dialer-group 1Router(config-if)# exitDDR配置实例(分支路由器

44、)续Router(config)# line 1Router(config-line)# modem InOutRouter(config-line)# modem autoconfig discoveryRouter(config-line)# transport input allRouter(config-line)# stopbits 1Router(config-line)# flowcontrol hardwareRouter(config-line)# exitRouter(config)# 路由选择技术概述路由选择(Routing)是指选择通过互联网络从源节点向目的节点传输信息的行为,而且信息至少通过一个中间节点。路由选择包括两个基本操作,即决定最佳路由选择路径和通过互联网络传输信息。在确定最佳路径的过程中,路由选择算法初始化和维护路由选择表。交换算法相对较简单,且对于大多数路由选择协议来说,交换算法基本相同。静态路由 Vs 动态路由静态路由选择算法设计简单,并在网络信息流相对可以预见且网络设计相对简单的环境里运行较好。动态路由选择算法通过分析接收的路由更新消息随时适应网络环境的变化,动态维护路由表。静态路由选择算法可以弥补动态路由选择算法的某些不足。静态路由配置方法

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 高等教育 > 研究生课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号