Chapter10-1路由器配置和应用_第1页
Chapter10-1路由器配置和应用_第2页
Chapter10-1路由器配置和应用_第3页
Chapter10-1路由器配置和应用_第4页
Chapter10-1路由器配置和应用_第5页
已阅读5页,还剩57页未读, 继续免费阅读

下载本文档

kok电子竞技权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

kok电子竞技:文档简介

1、Chapter 10 路由器配置和应用课前复习Ping 查看TCP/IP是否安装成功TTL 经过几个设备(路由器或三层交换)Windows TTL一般128Ping 或本地 观察结果Tracert 观察结果 (丢弃并产生ICMP报文)Route printMicrosoft Office Visio华为、思科模拟器华为6台+思科5台(如何分组)2本章目标路由器的功能、结构和接口路由器的根本配置常见广域网协议学习本章节,您应该能够:3课程内容路由器的功能、结构和接口路由器的根本配置常见广域网协议4路由器工作流程IPETHPPP以太网口串口IPPPPETH串口以太网口协议封装路由选择协议转换路由器

2、路由器传送拆包接收发送工作过程5路由器的结构硬件组成CPU(处理器):中央处理单元,和计算机一样,它是路由器的控制和运算部件。RAM(存储正在运行的配置文件):内存,用于存储临时的运算结果。如路由表、ARP表、快速交换缓存、缓冲数据包、数据队列、当前配置文件。众所周知,RAM中的数据在路由器断电后是会丧失的。FLASH Memory(负责保存OS的映像和路由器的微码):闪存,可擦除、可编程的 ROM,用于存放路由器的IOS,Flash的可擦除特性允许更新、升级IOS而不用更换路由器内部的芯片。路由器断电后,flash的内容不会丧失。Flash容量较大时,就可以存放多个IOSkok电子竞技本。6路由器的结构

3、硬件组成:NVRAM(保存配置件)ROM(加载OS) Cisco(Internetwork Operating System,网际操作系统)Huawei(Versatile Routing Platform,通用路由平台)接口(完成路由器与其它设备的数据交换)7路由器的结构软件结构BOOT ROM:主要功能是路由器加电后完成有关初始化工作,并向内存中参加操作系统代码VRP(通用路由平台):Quidway路由器上运行的软件平台路由器的厂商:锐捷,神州数码8VRP体系结构9中低端路由器开展路标低端路由器R1600/2500介入中低端路由器之间R1760中端路由器R2600/3600增强型中端路由器

4、R2630E/R3600E智能型中端路由器R2611/26101996199820022003统一的VRP平台2000ADSL宽带接入路由器4/8口语音网关冗余电源款型R2600-RPS/3600-RPS2004AR18,28,46系列路由器Aolynk路由器10AR 18-1XAR 18-2XAR 28-0X/1XAR 28-3X/40/80AR 46-20/40/80SOHOSMB企业分支企业大型分支企业中心灵活性能业 务 性 能Quidway AR全系列路由器11课程内容路由器的功能、结构和接口路由器的根本配置常见广域网协议12AR28-31备份口配置口13配置路由器通过console口

5、配置通过拨号远程配置通过telnet方式配置通过哑终端方式配置通过FTP方式传送配置文件14通过console口配置建立本地配置环境配置口(Console)配置口(console)电缆R232 串口(db9的简化应用) Console线就是反转线 (rollover cable):一端采用568A或568B做线标准,另一端把568A或568B的顺序刚好从第一根到最后一根反过来。一般小于15米,所以本地配置。反转线一般长度固定,可以购置RJ45-DB9转接器。15创立超级终端(II)16选择串口(III)17端口设置(IV)18通过拨号线路配置路由器将路由器和PC分别与modem连接 备份电缆m

6、odemmodemPSTN/ISDN19通过Telnet配置本地路由器Quidway-Ethernet0/0ip address 00 24 缺省的telnet登录用户名:admin 口令:admin效劳器PC工作站工作站10Base-T 网口20通过哑终端配置Quidway-Serial0/0physical-mode async同/异步串口21通过FTP配置在路由器上启动FTP效劳器在终端上启动FTP客户端程序Ethernet22命令行概述用户视图系统视图 RIP视图OSPF视图BGP视图以太网接口视图同步串口视图Dialer接口视图注意:视图切换(华为) 模式切换(思科)23进入路由器配

7、置界面 User interface Con 0 is available. Press ENTER to get started. console用户视图:system 进入系统模式 H3C用户模式:Routerenable 进入特权模式 Router#24用户视图常用命令? cdChange current directory debugging Enable system debugging functions delete Delete a file displayDisplay current system informationpingSend echo messagessaveS

8、ave current configuration resetReset operationreboot Reboot system25系统视图常用命令system-viewQuidway?aclSpecify acl configuration information arpAdd static ARP entry bgpSpecify BGP(Border Gateway Protocol) configuration informationfirewallSpecify firewall configuration information ipsecSpecify IPSec(IP Se

9、curity) configuration information local-userSpecify local user configuration information pppSpecify PPP(the Point-to-Point Protocol)26接口视图命令Quidwayinterface s0/0 Quidway-Serial0/0? baudrateSet transmit and receive baudrate async Asynchronous line configuration command ipSpecify IP configuration info

10、rmation shutdownShut down the specified interface physical-mode Set synchronous or asynchronous mode on serial interfacedialer Specify DCC(Dial-Control-Center) configuration information quit Exit from current command view loopbackSet loopback on an interface27在线帮助Quidway display ?aclAcl status and c

11、onfiguration information arp Display ARP entryaspf ASPF status and configuration information auto-config Specify auto configuration information bgp BGP status and configuration informationcurrent-configurationCurrent configurationdebuggingCurrent setting of debugging switches dhcp DHCP configuration

12、 subcommands diagnostic-information System Information for Diagnosis 28命令行错误信息 Quidwaydispaly ? % Unrecognized command found at position. Quidwaydisplay % Incomplete command found at position. Quidwaydisplay interface Serial 0/0 0 % Too many parameters found at position.29历史命令display history-command

13、补全命令使用Tab键查看历史记录使用 键使用Ctrl P快捷键历史命令30编辑特性普通按键 输入字符到当前光标位置退格键BackSpace 删除光标位置的前一个字符删除键Delete 删除光标位置字符左光标键 光标向左移动一个字符位置右光标键 光标向右移动一个字符位置上下光标键 显示历史命令31Language中英文显示方式切换暂停显示时键入Ctrl+c 停止显示和命令执行暂停显示时键入空格键继续显示下一屏信息暂停显示时键入回车键继续显示下一行信息显示特性32状态查看命令display versiondisplay current-configurationdisplay interfaced

14、isplay ip route 根本操作命令33常用命令Quidwaydisplay flashRouter# show flashH3Ccopy tftp flashH3Ccopy cur startup-config (current-config)Router# copy run saved-config (running-config) 34display versionQuidwaydisplay version Copyright Notice: All rights reserved (Apr 08 2005). Without the owners prior written

15、consent, no decompiling nor reverse-engineering shall be allowed. Huawei-3Com Versatile Routing Platform Software VRP(R) software, Version 3.40, Release RT-0009 Copyright (c) 2003-2005 Hangzhou Huawei-3Com Tech. Co.,Ltd. All rights reserved. Copyright (c) 2000-2003 Huawei Tech. Co.,Ltd. All rights r

16、eserved. Quidway AR28-11 uptime is 0 week, 0 day, 0 hour, 1 minute CPU type: PowerPC 8241 200MHz 128M bytes SDRAM Memory 32M bytes Flash Memory Pcb Version:1.0 Logic Version:1.0 BootROM Version:9.09 SLOT 0 AUX (Hardware)1.0, (Driver)1.0, (Cpld)1.0 35display current-configurationQuidwaydisplay curren

17、t-configuration# sysname Quidway# enable# local-server nas-ip key huawei# domain default enable system#radius scheme system server-type huawei primary authentication 1645 primary accounting 1646 user-name-format without-domain#domain system access-limit disable state active#36display interface显示接口信息

18、Quidwaydisplay interface Serial 1/1Serial1/1 current state :UPLine protocol current state :UPDescription : Serial1/1 InterfaceThe Maximum Transmit Unit is 1500, Hold timer is 10(sec)Internet protocol processing : disabledInternet Address is /8 Link layer protocol is PPPLCP initialOutput queue : (Urg

19、ent queue : Size/Length/Discards) 0/50/0Output queue : (Protocol queue : Size/Length/Discards) 0/500/0Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0Physical layer is synchronous,Baudrate is 64000 bps, Interface has no cable Last 300 seconds input rate 0.00 bytes/sec, 0.00 packets/sec La

20、st 300 seconds output rate 0.00 bytes/sec, 0.00 packets/sec Input: 0 packets, 0 bytes 0 broadcasts, 0 multicasts 0 errors, 0 runts, 0 giants 0 CRC, 0 align errors, 0 overruns 0 dribbles, 0 aborts, 0 no buffers 0 frame errors Output:0 packets, 0 bytes 0 errors, 0 underruns, 0 collisions 0 deferred DC

21、D=UP DTR=UP DSR=UP RTS=UP CTS=UP 37Quidway interface serial 0/0Quidway-serial0/0 undo shutdown开启或关闭端口开启已经关闭的端口Quidway interface serial 0/0Quidway-serial 0/0 shutdown人工关闭端口38解读端口状态Quidwaydisplay interface serial 0/0physical layer is synchronous, baudrate is 64000 bps, no cable Link-protocol is PPP LC

22、P initial, IPCP initial, IPXCP initial, CCP initialline protocol is downSerial0/0 is down,物理层组件的状态数据链路层的状态39display ip routing-tableQuidwaydis ip routing-tableRouting Tables:Destination/Mask proto pref Metric Nexthop Interface /0 Static 60 0 Serial0 /8 RIP 100 3 Serial0 /8 OSPF 10 50 Ethernet0 /8 RI

23、P 100 4 Serial0 /8 Static 60 0 Serial0 /8 Direct 0 0 Ethernet0 /32 Direct 0 0 LoopBack0 . 40terminal debuggingdebugging ? all All debugging functionsarp ARP moduleaspf ASPF moduleatm ATM modulebgp BGP modulebridge Debugging bridgedhcp DHCP moduledialer DCC moduledlsw Data Link Switching moduledns Do

24、main name system module调试命令:debugging41 Quidwayping PING : 56 data bytes, press CTRL_C to break Reply from : bytes=56 Sequence=0 ttl=255 time = 31 ms Reply from : bytes=56 Sequence=1 ttl=255 time = 31 ms Reply from : bytes=56 Sequence=2 ttl=255 time = 32 ms Reply from : bytes=56 Sequence=3 ttl=255 t

25、ime = 31 ms Reply from : bytes=56 Sequence=4 ttl=255 time = 31 ms - ping statistics - 5 packets transmitted 5 packets received 0.00% packet loss round-trip min/avg/max = 31/31/32 msping:网络连通测试命令42tracert:网络连通测试命令 Quidway tracert 86 traceroute to 86(86) 30 hops max,40 bytes packet 1 29 ms 22 ms 21 ms

26、 2 86 38 ms 24 ms 24 ms43课程内容路由器的功能、结构和接口路由器的根本配置常见广域网协议44广域网V.24 ,V.35, X.21BisEIA/TIA-232/449LAPB,Frame Relay,HDLC,PPP,SDLC网络层X.25物理层数据链路层路由器 A广域网的下三层网络层物理层数据链路层路由器 B45广域网的数据链路层专用点到点HDLC,PPP分组交换X.25,帧中继电路交换PSTN:PPPISDN B信道:PPPISDN D信道:LAPD46高级数据链路控制HDLC 面向比特 透明传输零比特填充法 运行于同步串行线路地址标志控制信息帧校验标志47HDLC

27、协议的配置在接口上封装HDLC协议link-protocol hdlc翻开HDLC所有报文调试信息开关 debugging hdlc all interface type number 翻开HDLC事件调试信息开关 debugging hdlc event interface type number 翻开HDLC数据包调试信息开关 debugging hdlc packet interface type number 48PPP配置命令封装PPPlink-protocol ppp设置验证类型ppp authentication-mode pap|chap 设置用户名、口令、效劳类型Quidwa

28、ylocal-user huaweiQuidway-luser-huaweipassword simple sharepassQuidway-luser-huaweiservice-type ppp49PAP配置命令验证方配置配置验证方式ppp authentication-mode pap配置用户列表Quidwaylocal-user huaweiQuidway-luser-huaweipassword simple sharepassQuidway-luser-huaweiservice-type ppp被验证方配置配置PAP用户名ppp pap local-user username p

29、assword simple|cipher password50CHAP配置命令主验证方配置:配置本地验证对端(方式为CHAP) ppp authentication-mode chap配置本地名称 ppp chap user username将对端用户名和密码参加本地用户列表 Quidwaylocal-user huawei Quidway-luser-huaweipassword simple sharepass Quidway-luser-huaweiservice-type ppp被验证方配置:配置本地名称密码Quidway-Serial0/0 ppp chap user userna

30、meQuidway-Serial1/1ppp chap password simple|cipher password51PPP典型配置举例一主验证方被验证方RouterA RouterB PAP 验证S0/0S0/0RouterAlocal-user routerb RouterA-luser-routerbpassword simple helloRouterA-luser-routerbservice-type pppRouterAinterface serial 0/0RouterA-Serial0/0ppp authentication-mode papRouterBinterfac

31、e serial 0/0 RouterB-Serial0/0ppp pap local-user routerb password simple hello52PPP典型配置举例二RouterARouterBCHAP 验证S0/0S0/0RouterAlocal-user routerbRouterA-luser-routerbpassword simple helloRouterA-luser-routerbservice-type pppRouterAinterface serial 0/0RouterA-Serial0/0ppp chap user routeraRouterA-Seri

32、al0/0ppp authentication-mode chapRouterBlocal-user routera RouterB-luser-routerapassword simple helloRouterB-luser-routeraservice-type pppRouterBinterface serial 0/0RouterB-Serial0/0ppp chap user routerbRouterB-Serial0/0ppp authentication-mode chap主验证方被验证方53帧中继的配置封装帧中继协议link-protocol frame-relay MFR

33、 |nonstandard | ietf 配置帧中继接口的终端类型fr interface-type dce | dte | nni 选择LMI类型fr lmi type ansi | nonstandard | q933a 54配置帧中继地址映射手工配置静态映射:fr map ip | ipx protocol-address dlci broadcast 动态建立:使能动态逆向地址解析协议fr inarp ip | ipx dlci 帧中继地址映射也就是建立对端协议地址与本地DLCI的映射关系,该地址映射可静态配置,也可动态建立55配置帧中继本地虚电路为主接口分配一条虚电路号fr dlci

34、 dlci56配置帧中继子接口创立帧中继子接口,进入子接口配置模式interface type number.subinterface-number multipoint | point-to-point 配置帧中继子接口的虚电路号fr dlci dlci建立地址映射的命令和物理接口相同,可以使用静态或动态地址映射。地址映射只有在点到多点的情况下才需要配置子接口有两种类型:点到点和点到多点57配置帧中继交换允许帧中继进行PVC交换fr switching设置帧中继接口类型fr interface-type dce | dte | nni 配置帧中继PVC交换的路由Quidway-Serial1

35、/0fr dlci-switch 16 interface Serial 1/1 dlci 40注意:如果使用帧中继交换,接口类型必须为DCE或NNI58帧中继典型配置举例一DLCI 100Router ARouter B封装为帧中继DCEDTEinterface serial 1/0ip address 51 link-protocol frfr interface-type dcefr dlci 100fr inarp( fr map ip 52 dlci 100)interface serial 1/0 ip address 52 link-protocol frame-relayfr

36、interface-type dtefr inarp( fr map ip 51dlci 100)51/2452/2459帧中继典型配置举例二IP 51/24DLCI 50通过帧中继网络互连局域网DLCI 70IP:52/24Router BRouter ARouter CDLCI 60DLCI 80IP:53/24帧中继60帧中继的监控与维护操作命令显示帧中继LMI类型报文的收发统计显示协议地址与帧中继地址映射表显示帧中继PVC统计信息显示帧中继PVC路由表显示各接口的帧中继协议状态去除所有动态建立的帧中继地址映射翻开帧中继的所有报文调试开关翻开帧中继ARP报文信息调试开关翻开帧中继事件信息

37、调试开关翻开帧中继LMI协议信息调试开关display fr lmi-info interface type number display fr map-info display fr pvc-info serial interface-number dlci dlci-number display fr dlci-switch display fr interface reset fr inarp-info debugging fr all interface type number debugging fr arp interface type number debugging fr event interface type number debugging fr lmi interface type number 61小结路由器的功能、结构和接口路由器的根本配置常见广域网协议62

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论