H3C路由器配置和应用PPT课件

上传人:s9****2 文档编号:567431681 上传时间:2024-07-20 格式:PPT 页数:56 大小:1.53MB
返回 下载 相关 举报
H3C路由器配置和应用PPT课件_第1页
第1页 / 共56页
H3C路由器配置和应用PPT课件_第2页
第2页 / 共56页
H3C路由器配置和应用PPT课件_第3页
第3页 / 共56页
H3C路由器配置和应用PPT课件_第4页
第4页 / 共56页
H3C路由器配置和应用PPT课件_第5页
第5页 / 共56页
点击查看更多>>
资源描述

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

1、n路由器的功能、路由器的功能、结构和接口构和接口n路由器的基本配置路由器的基本配置n常常见广域网广域网协议课程目程目标学学习完本完本课程,您程,您应该能能够:n路由器的功能、路由器的功能、结构和接口构和接口n路由器的基本配置路由器的基本配置n常常见广域网广域网协议目目录4路由器工作流程路由器工作流程IPETHPPP以太网口以太网口串口串口IPPPPETH串口串口以太网口以太网口协议封装协议封装路由选择路由选择协议转换协议转换路由器路由器路由器路由器传送传送拆包拆包接收接收发送发送工作过程工作过程5路由器的路由器的结构构l硬件硬件组成成CPU(处理器)RAM(存储系统运行时的程序和与CPU的通信

2、数据 )FLASH或CF(存放OS的映像和路由器的配置文件)Boot ROM (存放启动时的引导程序文件 )接口(完成路由器与其它设备的数据交换)l 软件件结构构BOOT ROM软件:主要功能是路由器加电后完成有关初始化工作,并向内存中加入操作系统代码COMWARE:H3C路由器上运行的软件平台6Comware v5平台平台结构构VPN子系子系统MPLS子系子系统网网络接口子系接口子系统IPv6支持支持QoS增增强IP栈子系子系统 安全子系安全子系统QoS子系子系统路由子系路由子系统服服务控控制制平平面面数数据据转发平平面面配置管理子系配置管理子系统系系统服服务 平平 台台通用控制平面通用控制

3、平面系系统管理平面管理平面设备管理子系管理子系统信息管理子系信息管理子系统MPLS增增强n路由器的功能、路由器的功能、结构和接口构和接口n路由器的基本配置路由器的基本配置n常常见广域网广域网协议目目录8MSR 30-20配置(配置(CONSOLE )口位于上方)口位于上方备份(备份(AUX )口位于下方)口位于下方9配置路由器配置路由器l通通过console口配置口配置l通通过拨号号远程配置程配置l通通过telnet方式配置方式配置l通通过哑终端方式配置端方式配置l通通过FTP方式方式传送配置文件送配置文件10通通过console口配置口配置建立本地配置环境R232 串口串口 配置(配置(Co

4、nsole)电缆11创建超建超级终端(端(II)12选择串口(串口(III)13端口端口设置(置(IV)14通通过拨号号线路配置路由器路配置路由器l将路由器和将路由器和PC分分别与与modem连接接 备份(备份(AUX)电缆)电缆modemmodemPSTN/ISDN15通通过Telnet配置本地路由器配置本地路由器lH3C-Ethernet0/0ip address 10.0.0.100 24 l缺省的缺省的telnet登录用户名:登录用户名:admin 口令:口令:admin服务器服务器PC工作站工作站工作站工作站1000Base-T 网口网口16通通过哑终端配置端配置lH3C-Seria

5、l1/0physical-mode async同同/异步串口异步串口17通通过FTP配置配置l在路由器上启动在路由器上启动FTP服务器服务器l在终端上启动在终端上启动FTP客户端程序客户端程序FTP server10.110.0.1FTP client10.110.0.2E18命令行概述命令行概述l用户视图用户视图l系统视图系统视图 lRIP视图视图lOSPF视图视图lBGP视图视图l以太网接口视图以太网接口视图l同步串口视图同步串口视图lDialer接口视图接口视图19进入路由器配置界面入路由器配置界面 User interface Con 0 is available. Press ENT

6、ER to get started. 20用用户视图常用命令常用命令l? cdChange current directory debugging Enable system debugging functions delete Delete a file displayDisplay current system informationpingSend echo messagessaveSave current configuration resetReset operationreboot Reboot 21系系统视图常用命令常用命令lsystem-viewlH3C?aclSpecify

7、acl configuration information arpAdd static ARP entry bgpSpecify BGP(Border Gateway Protocol) configuration informationfirewallSpecify firewall configuration information ipsecSpecify IPSec(IP Security) configuration information local-userSpecify local user configuration information pppSpecify PPP(th

8、e Point-to-Point Protocol)22接口接口视图命令命令lH3C interface Ethernet3/2/0 lH3C-interface Ethernet3/2/0 ? baudrateSet transmit and receive baudrate async Asynchronous line configuration command ipSpecify IP configuration information shutdownShut down the specified interface physical-mode Set synchronous or

9、asynchronous mode on serial interfacedialer Specify DCC(Dial-Control-Center) configuration information quit Exit from current command view loopbackSet loopback on an 23在在线帮助帮助lH3C display ?aclAcl status and configuration information arp Display ARP entryaspf ASPF status and configuration information

10、 auto-config Specify auto configuration information bgp BGP status and configuration informationcurrent-configurationCurrent configurationdebuggingCurrent setting of debugging switches dhcp DHCP configuration subcommands diagnostic-information System Information for Diagnosis 24命令行命令行错误信息信息 H3Cdispa

11、ly ? % Unrecognized command found at position. H3Cdisplay % Incomplete command found at position. H3Cdisplay interface Ethernet3/2/1 0 % Too many parameters found at 25l历史命令史命令display history-commandl补全命令全命令使用Tab键l查看看历史史记录使用 键使用Ctrl P快捷键历历史命令史命令史命令史命令26编辑特性特性l普通按普通按键 输入字符到当前光入字符到当前光标位位置置l退格退格键BackSp

12、ace 删除光除光标位置的前一个字位置的前一个字符符l删除除键Delete 删除光除光标位置字符位置字符l左光左光标键 光光标向左移向左移动一个字符位置一个字符位置l右光右光标键 光光标向右移向右移动一个字符位置一个字符位置l上下光上下光标键 显示示历史命令史命令27lLanguage中英文中英文显示方式切示方式切换l暂停停显示示时键入入Ctrl+c 停止停止显示和命令示和命令执行行l暂停停显示示时键入空格入空格键继续显示下一屏示下一屏信息信息l暂停停显示示时键入回入回车键继续显示下一行示下一行信息信息显显示特性示特性示特性示特性28l状状状状态查态查看命令看命令看命令看命令display v

13、ersiondisplay current-configurationdisplay interfacedisplay ip route 基本操作命令基本操作命令基本操作命令基本操作命令29display versionH3Cdisplay version H3C Comware Platform SoftwareComware Software, Version 5.20, Release 1618, StandardCopyright (c) 2004-2008 Hangzhou H3C Tech. Co., Ltd. All rights reserved.H3C MSR20-21 up

14、time is 0 week, 0 day, 0 hour, 1 minuteLast reboot 2008/05/26 11:37:35System returned to ROM By Command.CPU type: FREESCALE PowerPC 8248 400MHz256M bytes SDRAM Memory4M bytes Flash MemoryPcb Version: 3.0Logic Version: 3.0Basic BootROM Version: 2.11Extended BootROM Version: 2.12SLOT 0CON (Hardware)3.

15、0, (Driver)1.0, (Cpld)3.0SLOT 0AUX (Hardware)3.0, (Driver)1.0, (Cpld)3.0SLOT 0ETH0/0 (Hardware)3.0, (Driver)1.0, (Cpld)3.0SLOT 0ETH0/1 (Hardware)3.0, (Driver)1.0, (Cpld)3.0SLOT 0ETH0/2 (Hardware)3.0, (Driver)1.0, (Cpld)3.0SLOT 0ETH0/3 (Hardware)3.0, (Driver)1.0, (Cpld)3.0SLOT 0ETH0/4 (Hardware)3.0,

16、(Driver)1.0, (Cpld)3.0SLOT 0ETH0/5 (Hardware)3.0, (Driver)1.0, (Cpld)3.0SLOT 0ETH0/6 (Hardware)3.0, (Driver)1.0, (Cpld)3.0SLOT 0ETH0/7 (Hardware)3.0, (Driver)1.0, (Cpld)3.0SLOT 0ETH0/8 (Hardware)3.0, (Driver)1.0, (Cpld)3.0SLOT 0ETH0/9 (Hardware)3.0, (Driver)1.0, (Cpld)3.0SLOT 1SIC-1SAE (Hardware)2.0

17、, (Driver)1.0, (Cpld)1.0SLOT 2SIC-EPRI (Hardware)1.0, (Driver)1.0, (Cpld)2.0 30display current-configurationH3Cdisplay current-configuration# version 5.20, Release 1618, Standard# sysname H3C# domain default enable system#vlan 1#domain system access-limit disable state active idle-cut disable self-s

18、ervice-url disable#local-user admin password cipher .USE=B,53Q=QMAF41! service-type telnet level 3#controller E1 2/0#31display interface显示接口信息示接口信息H3Cdisplay interface Ethernet3/2/0Serial0/0 current state :UPLine protocol current state :UPDescription : Serial1/0 InterfaceThe Maximum Transmit Unit is

19、 1500, Hold timer is 10(sec)Internet protocol processing : disabledInternet Address is 10.0.0.1/8 Link layer protocol is PPPLCP initialOutput queue : (Urgent queue : Size/Length/Discards) 0/50/0Output queue : (Protocol queue : Size/Length/Discards) 0/500/0Output queue : (FIFO queuing : Size/Length/D

20、iscards) 0/75/0Physical layer is synchronous, Virtual Baudrate is 64000 bpsInterface has no cable, Clock mode is DTECLK1 Last 300 seconds input rate 0.00 bytes/sec, 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 e

21、rrors, 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 DCD=UP DTR=UP DSR=UP RTS=UP CTS=UP 32H3C interface Ethernet3/2/1H3C-Ethernet3/2/1 undo shutdown开启或关闭端口开启或关闭端口l开启已经关闭的端

22、口开启已经关闭的端口H3C interface Ethernet3/2/1H3C-Ethernet3/2/1 shutdownl人工关闭端口人工关闭端口33解读端口状态解读端口状态H3Cdisplay interface Ethernet3/2/1Link layer protocol is PPP LCP initialphysical layer is synchronous, Virtualbaudrate is 64000 bpsInterface has no cable, Clock mode is DTECLK1line protocol current state: downE

23、thernet3/2/1 current state: down,物理层组件的状态物理层组件的状态数据链路层的状态数据链路层的状态34displaydisplay ipip routing-tablerouting-tableH3Cdis ip routing-table 查看路由表看路由表Routing Tables: PublicDestinations : 12 Routes : 12Destination/Mask Proto Pre Cost NextHop Interface0.0.0.0/0 Static 60 0 120.0.0.2 Serial1/08.0.0.0/8 RIP

24、 100 3 120.0.0.2 Serial1/09.0.0.0/8 OSPF 10 50 20.0.0.2 Ethernet0/010.0.0.0/8 RIP 100 4 120.0.0.2 Serial1/011.0.0.0/8 Static 60 0 120.0.0.2 Serial1/020.0.0.0/8 Direct 0 0 20.0.0.1 Ethernet0/020.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 . 35l H3Cping 11.1.1.1 PING 11.1.1.1: 56 data bytes, press CTRL_C to

25、 break Reply from 11.1.1.1: bytes=56 Sequence=0 ttl=255 time = 31 ms Reply from 11.1.1.1: bytes=56 Sequence=1 ttl=255 time = 31 ms Reply from 11.1.1.1: bytes=56 Sequence=2 ttl=255 time = 32 ms Reply from 11.1.1.1: bytes=56 Sequence=3 ttl=255 time = 31 ms Reply from 11.1.1.1: bytes=56 Sequence=4 ttl=

26、255 time = 31 ms - 11.1.1.1 ping statistics - 5 packets transmitted 5 packets received 0.00% packet loss round-trip min/avg/max = 31/31/32 msping:ping:网网网网络连络连通通通通测试测试命令命令命令命令36tracert:网网络连通通测试命令命令l H3C tracert 10.110.201.186 traceroute to 10.110.201.186(10.110.201.186) 30 hops max, 40 bytes packet,

27、 press CTRL_C to break 1 11.1.1.1 29 ms 22 ms 21 ms 2 10.110.201.186 38 ms 24 ms 24 msn路由器的功能、路由器的功能、结构和接口构和接口n路由器的基本配置路由器的基本配置n常常见广域网广域网协议n常常见配置命令配置命令目目录38广域网广域网 V.24 ,V.35, X.21BisEIA/TIA-232/449LAPB,Frame Relay,HDLC,PPP,SDLC网络层网络层X.25物理层物理层数据链路层数据链路层路由器路由器 A A广域网的下三层广域网的下三层网络层网络层物理层物理层数据链路层数据链路层路

28、由器路由器 B B39广域网的数据广域网的数据链路路层专用点到点专用点到点HDLC,PPP分组交换分组交换X.25,帧中继电路交换PSTN:PPPISDN B信道:PPPISDN D信道:LAPD40高高级数据数据链路控制路控制HDLCl 面向比特面向比特l 透明透明传输零比特填充法零比特填充法l 运行于同步串行运行于同步串行线路路地址地址标志标志控制控制信息信息帧校验帧校验标志标志41HDLC协议的配置的配置l在接口上封装在接口上封装HDLC协议H3C-Ethernet3/2/1 link-protocol hdlcl打开打开HDLC所有所有报文文调试信息开关信息开关 debugging h

29、dlc all l打开打开HDLC事件事件调试信息开关信息开关 debugging hdlc event interface type number 42PPP配置命令配置命令l封装封装PPPH3C-Ethernet3/2/1link-protocol pppl设置置验证类型型H3C-Ethernet3/2/1 ppp authentication-mode pap|chap l设置用置用户名、口令、服名、口令、服务类型型H3Clocal-user usernameH3C-luser-huaweipassword simple passwordH3C-luser-huaweiservice-t

30、ype 43PAP配置命令配置命令l验证方配置方配置配置验证方式H3C-Ethernet3/2/1 ppp authentication-mode pap配置用户列表H3Clocal-user user-cH3C-luser-user-cpassword simple pass-cH3C-luser-user-cservice-type pppl被被验证方配置方配置配置PAP用户名H3C-Ethernet3/2/1 ppp pap local-user user-c password simple pass-44CHAP配置命令配置命令l主主验证方配置方配置:配置本地验证对端(方式为CHAP)

31、 H3C-Ethernet3/2/1ppp authentication-mode chap配置本地名称 H3C-Ethernet3/2/1ppp chap user user-s将对端用户名和密码加入本地用户列表H3Clocal-user user-cH3C-luser-user-cpassword simple sharepassH3C-luser-user-cservice-type pppl被被验证方配置方配置:配置本地名称H3C-Ethernet3/2/1 ppp chap user user-c将对端用户名和密码加入本地用户列表H3Clocal-user user-sH3C-lus

32、er-user-spassword simple sharepassH3C-luser-user-sservice-type 45PPP典型配置典型配置举例一例一主验证方主验证方被验证方被验证方RouterA RouterB PAP 验证验证S0/0S0/0RouterAlocal-user routerb RouterA-luser-routerbpassword simple helloRouterA-luser-routerbservice-type pppRouterAinterface Ethernet3/2/1RouterA-Serial0/0ppp authentication-

33、mode papRouterBinterface Ethernet3/2/1 RouterB-Serial0/0ppp pap local-user routerb password simple 46PPP典型配置典型配置举例二例二RouterARouterBCHAP 验证验证S0/0S0/0RouterAlocal-user routerbRouterA-luser-routerbpassword simple helloRouterA-luser-routerbservice-type pppRouterAinterface Ethernet3/2/1RouterA-Serial0/0p

34、pp chap user routeraRouterA-Serial0/0ppp authentication-mode chapRouterBlocal-user routera RouterB-luser-routerapassword simple helloRouterBinterface Ethernet3/2/1RouterB-Serial0/0ppp chap user routerb主验证方主验证方被验证方被验证方47帧中中继的配置的配置l封装封装帧中中继协议 H3C-Serial1/0link-protocol fr ietf | mfr |nonstandard l配置配置

35、帧中中继接口的接口的终端端类型型 H3C-Serial1/0fr interface-type dce | dte | nni l选择LMI类型型 H3C-Serial1/0fr lmi type ansi | nonstandard | q933a 48配置配置帧中中继地址映射地址映射l手工配置静手工配置静态映射:映射: H3C-Serial1/0fr map ip protocol-address dlci broadcast l动态建立:使能建立:使能动态逆向地址解析逆向地址解析协议 H3C-Serial1/0fr inarp ip dlci 帧中继地址映射也就是建立对端协议地址与本地帧

36、中继地址映射也就是建立对端协议地址与本地DLCI的映射的映射关系,该地址映射可静态配置,也可动态建立关系,该地址映射可静态配置,也可动态建立49配置配置帧中中继本地虚本地虚电路路l为主接口分配一条虚主接口分配一条虚电路号路号 H3C-Serial1/0fr dlci 50配置配置帧中中继子接口子接口l创建建帧中中继子接口,子接口,进入子接口配置模式入子接口配置模式interface type number.subinterface-number p2mp | p2p l配置配置帧中中继子接口的虚子接口的虚电路号路号H3C-Serial1/0.1fr dlci dlci建立地址映射的命令和物理接

37、口相同,可以使用静态或动态地建立地址映射的命令和物理接口相同,可以使用静态或动态地址映射。地址映射只有在点到多点的情况下才需要配置址映射。地址映射只有在点到多点的情况下才需要配置子接口有两种类型:点到点和点到多点子接口有两种类型:点到点和点到多点51配置配置帧中中继交交换l允允许帧中中继进行行PVC交交换H3Cfr switchingl设置置帧中中继接口接口类型型H3C-Serial1/0fr interface-type dce | dte | nni l配置配置帧中中继PVC交交换的路由的路由H3C-Serial1/0fr dlci-switch input-dlci interface

38、Serial 1/1 dlci output-dlci 注意:如果使用帧中继交换,接口类型必须为注意:如果使用帧中继交换,接口类型必须为DCE或或NNI52帧中中继典型配置典型配置举例一例一DLCI 100Router ARouter B封装为帧中继封装为帧中继DCEDTEinterface Ethernet3/2/1ip address 202.38.163.251 255.255.255.0link-protocol frfr interface-type dcefr dlci 100fr inarp( fr map ip 202.38.163.252 dlci 100)interface

39、 Ethernet3/2/1 ip address 202.38.163.252 255.255.255.0link-protocol frfr interface-type dtefr inarp( fr map ip 202.38.163.251dlci 100)202.38.163.251/24202.38.160.252/53帧中中继典型配置典型配置举例二例二IP 202.38.11.251/24DLCI 50l通通过帧中中继网网络互互连局域网局域网DLCI 70IP:202.38.11.252/24Router BRouter ARouter CDLCI 60DLCI 80IP:20

40、2.38.11.253/24帧中继帧中继54常用常用查看命令看命令lH3Cdisplay version 显示版本信息示版本信息lH3Cdisplay current-configuration 显示当前配置示当前配置lH3Cdisplay interfaces 显示接口信息示接口信息lH3Cdisplay ip route 显示路由信息示路由信息lH3Csysname aabbcc 更改主机名更改主机名lH3Csuper passwrod 123456 设置口令置口令 lH3Cinterface Ethernet3/2/0 进入接口入接口lH3C-interface Ethernet3/2/

41、0ip address lH3C-interface Ethernet3/2/0undo shutdown 激活端口激活端口55常用路由常用路由协议配置命令配置命令l静静态路由:路由:lH3Cip route-static interface number|nexthopvaluereject|blackhole l例如:例如:lH3Cip route-static 129.1.0.0 16 10.0.0.2lH3Cip route-static 129.1.0.0 255.255.0.0 10.0.0.2l动态路由:路由:lH3Crouter id A.B.C.D 配置路由器的配置路由器的IDlH3Cospf 启启动OSPF协议lH3C-ospfimport-route direct 引入直引入直联路由路由lH3Cospf area 配置配置OSPF区域区域n路由器的功能、路由器的功能、结构和接口构和接口n路由器的基本配置路由器的基本配置n常常见广域网广域网协议本章本章总结

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

最新文档


当前位置:首页 > 办公文档 > 工作计划

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