H3C路由器简单配置和应用ISSUE2.2日期:杭州华三通信技术有限公司版权所有,未经授权不得使用与传播路由器的功能、结构和接口路由器的基本配置常见广域网协议课程目标学习完本课程,您应该能够:路由器的功能、结构和接口路由器的基本配置常见广域网协议目录路由器的结构硬件组成CPU(处理器)RAM(存储系统运行时的程序和与CPU的通信数据)FLASH或CF(存放OS的映像和路由器的配置文件)BootROM(存放启动时的引导程序文件)接口(完成路由器与其它设备的数据交换)软件结构BOOTROM软件:主要功能是路由器加电后完成有关初始化工作,并向内存中加入操作系统代码COMWARE:H3C路由器上运行的软件平台增强路由器的功能、结构和接口路由器的基本配置常见广域网协议目录配置(CONSOLE)口位于上方备份(AUX)口位于下方配置路由器通过console口配置通过拨号远程配置通过telnet方式配置通过哑终端方式配置通过FTP方式传送配置文件串口配置(Console)电缆创建超级终端(II)选择串口(III)端口设置(IV)通过拨号线路配置路由器将路由器和PC分别与modem连接备份(AUX)电缆modemmodemPSTN/ISDN配置本地路由器[H3C-Ethernet0/0]ipaddress10.0.0.10024缺省的telnet登录用户名:admin口令:admin服务器PC工作站工作站1000Base-T网口通过哑终端配置[H3C-Serial1/0]physical-modeasync同/异步串口配置在路由器上启动FTP服务器在终端上启动FTP客户端程序FTPserver10.110.0.1FTPclient10.110.0.2Ethernet命令行概述用户视图系统视图RIP视图OSPF视图BGP视图以太网接口视图同步串口视图Dialer接口视图用户视图常用命令H3C?cdChangecurrentdirectorydebuggingEnablesystemdebuggingfunctionsdeleteDeleteafiledisplayDisplaycurrentsysteminformationpingSendechomessagessaveSavecurrentconfigurationresetResetoperationrebootRebootsystem系统视图常用命令H3Csystem-view[H3C]?aclSpecifyaclconfigurationinformationarpAddstaticARPentrybgpSpecifyBGP(BorderGatewayProtocol)configurationinformationfirewallSpecifyfirewallconfigurationinformationipsecSpecifyIPSec(IPSecurity)configurationinformationlocal-userSpecifylocaluserconfigurationinformationpppSpecifyPPP(thePoint-to-PointProtocol)接口视图命令[H3C]interfaceEthernet3/2/0[H3C-interfaceEthernet3/2/0]?baudrateSettransmitandreceivebaudrateasyncAsynchronouslineconfigurationcommandipSpecifyIPconfigurationinformationshutdownShutdownthespecifiedinterfacephysical-modeSetsynchronousorasynchronousmodeonserialinterfacedialerSpecifyDCC(Dial-Control-Center)configurationinformationquitExitfromcurrentcommandviewloopbackSetloopbackonaninterface在线帮助[H3C]display?aclAclstatusandconfigurationinformationarpDisplayARPentryaspfASPFstatusandconfigurationinformationauto-configSpecifyautoconfigurationinformationbgpBGPstatusandconfigurationinformationcurrent-configurationCurrentconfigurationdebuggingCurrentsettingofdebuggingswitchesdhcpDHCPconfigurationsubcommandsdiagnostic-informationSystemInformationforDiagnosis命令行错误信息[H3C]dispaly?^%Unrecognizedcommandfoundat'^'position.[H3C]display^%Incompletecommandfoundat'^'position.[H3C]displayinterfaceEthernet3/2/10^%Toomanyparametersfoundat'^'position.历史命令displayhistory-command补全命令使用Tab键查看历史记录使用↑↓键使用Ctrl+P快捷键历史命令编辑特性普通按键输入字符到当前光标位置退格键BackSpace删除光标位置的前一个字符删除键Delete删除光标位置字符左光标键←光标向左移动一个字符位置右光标键→光标向右移动一个字符位置上下光标键↑↓显示历史命令Language中英文显示方式切换暂停显示时键入'Ctrl+c'停止显示和命令执行暂停显示时键入空格键继续显示下一屏信息暂停显示时键入回车键继续显示下一行信息显示特性状态查看命令displayversiondisplaycurrent-configurationdisplayinterfacedisplayiproute基本操作命令[H3C]displayversionH3CComwarePlatformSoftwareComwareSoftware,Version5.20,Release1618,StandardCopyright(c)2004-2008HangzhouH3CTech.Co.,Ltd.Allrightsreserved.H3CMSR20-21uptimeis0week,0day,0hour,1minuteLastreboot2008/05/2611:37:35SystemreturnedtoROMByRebootCommand.CPUtype:FREESCALEPowerPC8248400MHz256MbytesSDRAMMemory4MbytesFlashMemoryPcbVersion:3.0LogicVersion:3.0BasicBootROMVersion:2.11ExtendedBootROMVersion:2.12[SLOT0]CON(Hardware)3.0,(Driver)1.0,(Cpld)3.0[SLOT0]AUX(Hardware)3.0,(Driver)1.0,(Cpld)3.0[SLOT0]ETH0/0(Hardware)3.0,(Driver)1.0,(Cpld)3.0[SLOT0]ETH0/1(Hardware)3.0,(Driver)1.0,(Cpld)3.0[SLOT0]ETH0/2(Hardware)3.0,(Driver)1.0,(Cpld)3.0[SLOT0]ETH0/3(Hardware)3.0,(Driver)1.0,(Cpld)3.0[SLOT0]ETH0/4(Hardware)3.0,(Driver)1.0,(Cpld)3.0[SLOT0]ETH0/5(Hardware)3.0,(Driver)1.0,(Cpld)3.0[SLOT0]ETH0/6(Hardware)3.0,(Driver)1.0,(Cpld)3.0[SLOT0]ETH0/7(Hardware)3.0,(Driver)1.0,(Cpld)3.0[SLOT0]ETH0/8(Hardware)3.0,(Driver)1.0,(Cpld)3.0[SLOT0]ETH0/9(Hardware)3.0,(Driver)1.0,(Cpld)3.0[SLOT1]SIC-1SAE(Hardware)2.0,(Driver)1.0,(Cpld)1.0[SLOT2]SIC-EPRI(Hardware)1.0,(Driver)1.0,(Cpld)2.0[H3C]displaycurrent-configuration#version5.20,Release1618,Standard#sysnameH3C#domaindefaultenablesystem#vlan1#domainsystemaccess-limitdisablestateactiveidle-cutdisableself-service-urldisable#local-useradminpasswordcipher.]@USE=B,53Q=^Q`MAF41!!service-typetelnetlevel3#controllerE12/0………#显示接口信息[H3C]displayinterfaceEthernet3/2/0Serial0/0currentstate:UPLineprotocolcurrentstate:UPDescription:Serial1/0InterfaceTheMaximumTransmitUnitis1500,Holdtimeris10(sec)Internetprotocolprocessing:disabledInternetAddressis10.0.0.