10路由器配置和应用V2_第1页
10路由器配置和应用V2_第2页
10路由器配置和应用V2_第3页
10路由器配置和应用V2_第4页
10路由器配置和应用V2_第5页
已阅读5页,还剩53页未读, 继续免费阅读

下载本文档

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

文档简介

1、Chapter 10 路由器配置和应用ISSUE 2.1日期:杭州华三通信技术有限公司 版权所有,未经授权不得使用与传播路由器的功能、结构和接口路由器的基本配置常见广域网协议课程目标学习完本课程,您应该能够:路由器的功能、结构和接口路由器的基本配置常见广域网协议目录路由器工作流程IPETHPPP以太网口串口IPPPPETH串口以太网口协议封装路由选择协议转换路由器路由器传送拆包接收发送工作过程路由器的结构硬件组成CPU(处理器)RAM(存储正在运行的配置文件)FLASH(负责保存OS的映像和路由器的微码)NVRAM(保存配置件)ROM(加载OS)接口(完成路由器与其它设备的数据交换) 软件结构

2、BOOT ROM:主要功能是路由器加电后完成有关初始化工作,并向内存中加入操作系统代码COMWARE:H3C路由器上运行的软件平台COMWARE体系结构中低端路由器发展路标低端路由器R1600/2500介入中低端路由器之间R1760中端路由器R2600/3600增强型中端路由器R2630E/R3600E智能型中端路由器R2611/261019961998200220032000ADSL宽带接入路由器4/8口语音网关冗余电源款型R2600-RPS/3600-RPS2004AR18,28,46系列路由器Aolynk路由器路由器的功能、结构和接口路由器的基本配置常见广域网协议目录AR28-31备份口

3、配置口配置路由器通过console口配置通过拨号远程配置通过telnet方式配置通过哑终端方式配置通过FTP方式传送配置文件通过console口配置建立本地配置环境配置口(Console)配置口(console)电缆R232 串口 创建超级终端(II)选择串口(III)端口设置(IV)通过拨号线路配置路由器将路由器和PC分别与modem连接 备份电缆modemmodemPSTN/ISDN通过Telnet配置本地路由器H3C-Ethernet0/0ip address 00 24 缺省的telnet登录用户名:admin 口令:admin服务器PC工作站工作站10Base-T 网口通过哑终端配置

4、H3C-Serial0/0physical-mode async同/异步串口通过FTP配置在路由器上启动FTP服务器在终端上启动FTP客户端程序FTP serverFTP clientEthernet命令行概述用户视图系统视图 RIP视图OSPF视图BGP视图以太网接口视图同步串口视图Dialer接口视图进入路由器配置界面 User interface Con 0 is available. Press ENTER to get started. console用户视图常用命令? cdChange current directory debugging Enable system debugg

5、ing functions delete Delete a file displayDisplay current system informationpingSend echo messagessaveSave current configuration resetReset operationreboot Reboot system系统视图常用命令system-viewH3C?aclSpecify acl configuration information arpAdd static ARP entry bgpSpecify BGP(Border Gateway Protocol) con

6、figuration informationfirewallSpecify firewall configuration information ipsecSpecify IPSec(IP Security) configuration information local-userSpecify local user configuration information pppSpecify PPP(the Point-to-Point Protocol)接口视图命令H3Cinterface s0/0 H3C-Serial0/0? baudrateSet transmit and receive

7、 baudrate async Asynchronous line configuration command ipSpecify IP configuration information 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 comm

8、and view loopbackSet loopback on an interface在线帮助H3C display ?aclAcl status and configuration information arp Display ARP entryaspf ASPF status and configuration information auto-config Specify auto configuration information bgp BGP status and configuration informationcurrent-configurationCurrent co

9、nfigurationdebuggingCurrent setting of debugging switches dhcp DHCP configuration subcommands diagnostic-information System Information for Diagnosis 命令行错误信息 H3Cdispaly ? % Unrecognized command found at position. H3Cdisplay % Incomplete command found at position. H3Cdisplay interface Serial 0/0 0 %

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

11、play versiondisplay current-configurationdisplay interfacedisplay ip route 基本操作命令display versionH3Cdisplay version H3C Comware Platform Software Comware software, Version 3.40, Feature 1711P01 Copyright(c). Without the owners prior written consent, no decompiling nor reverse-engineering shall be all

12、owed. H3C AR18-22S-8 uptime is 0 week, 0 day, 4 hours, 48 minutes Last reboot 2000/01/01 00:00:00 CPU type: PowerPC 8248 400MHz 128M bytes SDRAM Memory 16M bytes Flash Memory 0K bytes NvRAM Memory Pcb Version:3.0 Logic Version:1.0 BootROM Version:14.52 SLOT 0 AUX (Hardware)3.0, (Driver)1.0, (Cpld)1.

13、0 display current-configurationH3Cdisplay current-configuration# sysname H3C# FTP server enable# domain default enable system#radius scheme system server-type extended primary authentication 1645 primary accounting 1646 user-name-format without-domain#domain system access-limit disable state active#

14、display interface显示接口信息H3Cdisplay 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 initial

15、Output queue : (Urgent 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,

16、0.00 packets/sec Last 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 colli

17、sions 0 deferred DCD=UP DTR=UP DSR=UP RTS=UP CTS=UP H3C interface serial 0/0H3C-serial0/0 undo shutdown开启或关闭端口开启已经关闭的端口H3C interface serial 0/0H3C-serial 0/0 shutdown人工关闭端口解读端口状态H3Cdisplay interface serial 0/0physical layer is synchronous, baudrate is 64000 bps, no cable Link-protocol is PPP LCP ini

18、tial, IPCP initial, IPXCP initial, CCP initialline protocol is downSerial0/0 is down,物理层组件的状态数据链路层的状态display ip routing-tableH3Cdis 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 RIP 100 4 Ser

19、ial0 /8 Static 60 0 Serial0 /8 Direct 0 0 Ethernet0 /32 Direct 0 0 LoopBack0 . terminal debuggingdebugging ? all All debugging functionsarp ARP moduleaspf ASPF moduleatm ATM modulebgp BGP modulebridge Debugging bridgedhcp DHCP moduledialer DCC moduledlsw Data Link Switching moduledns Domain name sys

20、tem module调试命令:debugging H3Cping 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 time = 31 ms Reply f

21、rom : 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:网络连通测试命令tracert:网络连通测试命令 H3C tracert 86 traceroute to 86(86) 30 hops max,40 bytes packet 1 29 ms 22 ms 21 ms 2 86 38 ms 24 ms 24 ms路由

22、器的功能、结构和接口路由器的基本配置常见广域网协议目录广域网 V.24 ,V.35, X.21BisEIA/TIA-232/449LAPB,Frame Relay,HDLC,PPP,SDLC网络层X.25物理层数据链路层路由器 A广域网的下三层网络层物理层数据链路层路由器 B广域网的数据链路层专用点到点HDLC,PPP分组交换X.25,帧中继电路交换PSTN:PPPISDN B信道:PPPISDN D信道:LAPD高级数据链路控制HDLC 面向比特 透明传输零比特填充法 运行于同步串行线路地址标志控制信息帧校验标志HDLC协议的配置在接口上封装HDLC协议link-protocol hdlc打

23、开HDLC所有报文调试信息开关 debugging hdlc all interface type number 打开HDLC事件调试信息开关 debugging hdlc event interface type number 打开HDLC数据包调试信息开关 debugging hdlc packet interface type number PPP配置命令封装PPPlink-protocol ppp设置验证类型ppp authentication-mode pap|chap 设置用户名、口令、服务类型H3Clocal-user huaweiH3C-luser-huaweipassword

24、 simple sharepassH3C-luser-huaweiservice-type pppPAP配置命令验证方配置配置验证方式ppp authentication-mode pap配置用户列表H3Clocal-user huaweiH3C-luser-huaweipassword simple sharepassH3C-luser-huaweiservice-type ppp被验证方配置配置PAP用户名ppp pap local-user username password simple|cipher passwordCHAP配置命令主验证方配置:配置本地验证对端(方式为CHAP) p

25、pp authentication-mode chap配置本地名称 ppp chap user username将对端用户名和密码加入本地用户列表 H3Clocal-user huawei H3C-luser-huaweipassword simple sharepass H3C-luser-huaweiservice-type ppp被验证方配置:配置本地名称密码H3C-Serial0/0 ppp chap user usernameH3C-Serial1/1ppp chap password simple|cipher passwordPPP典型配置举例一主验证方被验证方RouterA R

26、outerB PAP 验证S0/0S0/0RouterAlocal-user routerb RouterA-luser-routerbpassword simple helloRouterA-luser-routerbservice-type pppRouterAinterface serial 0/0RouterA-Serial0/0ppp authentication-mode papRouterBinterface serial 0/0 RouterB-Serial0/0ppp pap local-user routerb password simple helloPPP典型配置举例二

27、RouterARouterBCHAP 验证S0/0S0/0RouterAlocal-user routerbRouterA-luser-routerbpassword simple helloRouterA-luser-routerbservice-type pppRouterAinterface serial 0/0RouterA-Serial0/0ppp chap user routeraRouterA-Serial0/0ppp authentication-mode chapRouterBlocal-user routera RouterB-luser-routerapassword s

28、imple helloRouterB-luser-routeraservice-type pppRouterBinterface serial 0/0RouterB-Serial0/0ppp chap user routerbRouterB-Serial0/0ppp authentication-mode chap主验证方被验证方帧中继的配置封装帧中继协议link-protocol frame-relay MFR |nonstandard | ietf 配置帧中继接口的终端类型fr interface-type dce | dte | nni 选择LMI类型fr lmi type ansi |

29、 nonstandard | q933a 配置帧中继地址映射手工配置静态映射:fr map ip | ipx protocol-address dlci broadcast 动态建立:使能动态逆向地址解析协议fr inarp ip | ipx dlci 帧中继地址映射也就是建立对端协议地址与本地DLCI的映射关系,该地址映射可静态配置,也可动态建立配置帧中继本地虚电路为主接口分配一条虚电路号fr dlci dlci配置帧中继子接口创建帧中继子接口,进入子接口配置模式interface type number.subinterface-number multipoint | point-to-point 配置帧中继子接口的虚电路号fr dlci dlci建立地址映射的命令和物理接口相同,可以使用静态或动态地址映射。地址映射只有在点到多点的情况下才需要配置子接口有两种类型:点到点和点到多点配置帧中继交换允许帧中继进行PVC交换fr switching设置帧中继接口类型fr interface-type dce | dte | nni 配置帧中继PVC交换的路由H3C-Serial1/0

温馨提示

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

最新文档

评论

0/150

提交评论