华为系列中端路由器典型配置手册.doc_第1页
华为系列中端路由器典型配置手册.doc_第2页
华为系列中端路由器典型配置手册.doc_第3页
华为系列中端路由器典型配置手册.doc_第4页
华为系列中端路由器典型配置手册.doc_第5页
已阅读5页,还剩96页未读 继续免费阅读

下载本文档

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

文档简介

Quidway系列中端路由器典型配置手册目录第1章 路由器日常维护典型配置1.1 基本操作1.1.1 常用命令新旧对照列表表1-1 常用命令新旧对照表旧新旧新showdisplayshow versiondisp versionnoundoshow rundisp current-configurationuserlocal-usershow tech-supportdisp base-informationendreturnshow startdisp saved-configurationexitquitexitlogoutctrl+zctrl+qrouter ripripctrl+pctrl+erouter ospfospfno debug allctrl+drouter bgpbgphostnamesysnameaccess-listaclwritesaveerasedelete0simple7cipherhostip hostlogginginfo-centerencaplink-pro注意:disp cur显示路由器当前生效的配置参数,同时也是可以输入的命令disp是display的缩写,在没有歧义时路由器会自动识别不完整词disp和ping命令在任何视图下都可执行,不必切换到系统视图删除某条命令,一般的命令是undo xxx,另一种情况是用其他的参数代替现在的参数,如有时虽然xxx abc无法undo删除,但是可以修改为xxx def清除所有的配置命令是delete,需要y/n确认或者取消,重启生效1.2 路由器配置之后,所需要的检查事项表1-2 配置路由器之后的检查事项序号检查项目记录1是否设置了exec-administrator用户名和密码,以防止他人随意登陆路由器进行配置或其他危险操作2bootrom和exec-administrator是否设置了足够强度的密码,请牢记.如123,abc等是危险的密码3接口下是否配置了正确的ip地址,并且处于undo shutdown状态4静态路由是否配置;或者动态路由是否使能5接口下是否配置了description以确保配置的易读性6配置包过滤防火墙,是否firewall enable并且在接口的正确方向(in/out)引用了acl命令7acl中反掩码配置得是否正确8串口缺省封装的是ppp协议,互通两端需要一致,某些牌子路由器缺省串口配置的是hdlc,我们推荐ppp9debug开关是否已经关闭,可以运行Routerundo debug all或者ctrl+d10sysname是否可以明显区别出并定位到路由器11请检查console配置线缆和aux备份线缆是否放在不易丢失,不会遗忘的地方12如果aux口不做业务,建议配置asy mode flow/undo modem两条命令,做为console口的备份13【线缆上是否有标签,线缆标签上应注明足够的信息,以便排除线路故障时,可以从容不迫】14模块是否拧紧15路由器是否固定良好,是否有足够的支撑16路由器是否接地,多雷电地区,或者路由器线路有室外走线的,一定要良好接地,接地电阻不大于5欧姆17是否配置命令的接口和线缆所插接口一致18版本信息和路由器配置是否已经备份到pc机:display version/display cur/display base19路由器是上是否已经运行Routersave以确保当前的正确配置保存到路由器上说明:因路由器型号和配置模块差别,以及阅读方便,以下所有配置中仅给出相关配置;配置分三列,最左是视图模式,表示当前命令的可执行视图模式,中间一列是disp cur所显示的配置命令,也是我们需要输入的,最右是相应解释1.3 远程登陆telnet1.3.1 缺省情况:无需用户名和密码,均可telnet组网:图1-3 pc telnet到路由器配置:version 1.74适用版本vrp1.7 !Router interface Ethernet0Router-Ethernet0 ip address !Router interface Serial0Router-Serial0 link-protocol ppp !Router interface Bri0Router-Bri0 link-protocol ppp ! quit注意:中端路由器的缺省配置下,pc可以直接登陆到路由器上,无须用户名和密码1.3.2 允许telnet: 只有正确的用户名和密码才可以telnet配置:version 1.74适用版本vrp1.7Routerlocal-user b service-type exec-administrator password simple b !Router interface Ethernet0Router-Ethernet0 ip address !Router interface Serial0Router-Serial0 link-protocol ppp !Router interface Bri0Router-Bri0 link-protocol ppp ! quit现象:pc从远程telnet或者是console口登陆路由器时出现输入用户名和密码提示,输入用户名:b,密码:b,登陆成功注意:错误的用户名和密码是无法进行配置的1.3.3 禁止telnet:只允许特定IP地址设备telnet到路由器 version 1.74适用版本vrp1.7Routerlocal-user a service-type exec-adminastrator password simple atelnet的用户名是a 密码是aRouter !Routeracl 101Router-acl-101rule permit tcp source destination eq telnet允许主机telnet到Router-acl-101rule deny tcp source any destination eq telnet禁止所有telnet到的报文 !Router interface Ethernet0Router-Ethernet0 ip address Router-Ethernet0firewall packet-filter 101 inbound 接口引用acl101 !Router interface Serial0Router-Serial0 link-protocol ppp !Router interface Bri0Router-Bri0link-protocol ppp! quit现象:仅ip为的设备才能登陆到这台路由器上1.4 ftp在线升级vrp组网:图1-4 pc ftp到路由器配置: !Router version 1.74适用版本vrp1.7Router local-user ftp service-type ftp password simple ftpftp的用户名ftp,密码ftpRouter ftp-server enable打开ftp-server开关 !Router interface Ethernet0Router-Ethernet0 ip address !Router interface Serial0Router-Serial0 link-protocol ppp !Router interface Bri0Router-Bri0 link-protocol ppp ! quit 过程:1.windows开始-运行中输入:ftp 2.输入用户名:ftp;输入密码:ftp3.pwd/显示路由器当前路径4.lcd/显示pc机路径,将vrp版本文件重命名为system后放入此目录,system无任何后缀5.bin/更改为二进制传输方式6.hash/显示传输进度7.get config/下载配置文件,备份之用8.put system/从pc机往路由器上传版本文件,本地版本文件必须更名为system其他命令:get system/从路由器向pc机下载版本文件,存放路径就是lcd所显示目录put config/上传配置文件9.若在传输过程中出现意外中断,此时请不要重启路由器;正确的做法是添加新的ftp用户local-user a1 service-type exec-adminastrator password simple a1, 并从1.操作开始重新进行10.当显示”file transmit success”字样时,请重启路由器:reboot11.当路由器重启正常后,确认配置无误,关闭ftp服务功能:undo ftp enable图1-5 ftp升级过程图示图1-6 ftp升级完毕图示注意:1.版本配套关系,带E和不带E路由器的版本文件是不同的具体设备的bootrom和vrp配套版本请到的软件中心查询下载2.重启前,请在pc机上备份配置3.升级过程若中断,请重新升级正确版本,升级过程中请勿重启路由器,否则路由器无法正常启动4.升级时,system文件上传过程中,路由器业务不会中断5.pc机与需升级路由器之间线路不限,但其速率最好不要低于56K1.5 tftp升级vrp过程:首先启动tftp软件,并设置好目录 Quidway start booting (M)odify any of Quidway router configuration or (C)ontinue? M MFor each of the following questions, you can press to select thevalue shown in braces, or you can enter a new value.NETWORK INTERFACE PARAMETERS:Do you want a LAN interface? N yThis boards LAN IP address? 0 Subnet mask for LAN (0 for none)? TFTP SERVER PARAMETERS: IP address of the TFTP server? 66 54What is the name of the file to be loaded and started? m8240ram.arj Q263XE-36XXE-V1.63-002.BINHow long (in seconds) should CPU delay before starting up? 5 -NETWORK INTERFACE PARAMETERS: IP address on LAN is LAN interfaces subnet mask is 0xfffff800HARDWARE PARAMETERS: Processor type is MPC8240 Internal Clock Rate 250 Mhz External Clock Rate 100 Mhz LAN Controller is Intel 82559 Serial channels will use a baud rate of 9600TFTP SERVER PARAMETERS: IP address of the TFTP host is 1 The file to download and start is a After board is reset, start-up code will wait 5 seconds- (M)odify any of Quidway router configuration or (C)ontinue? M c * * * * Quidway Series Router Bootrom, V4.32 * * * * Copyright(C) 1999-2001 by HUAWEI TECH CO., LTD. Compiled at 17:47:11 , Mar 21 2002. Now testing memory.OK! 128M bytes SDRAM 8192k bytes flash memory Press Ctrl-B to enter Boot Menu Please input Bootrom password: Boot Menu: 1: Download application program with XMODEM 2: Download application program with TFTP 3: Clear application password 4: Clear configuration 5: Quit and reboot Enter your choice(1-5): 2Please start TFTP server then press ENTER key to get start Starting the TFTP download.read len = 05802263Writing program code to FLASH. Please waiting,it needs a long time (about 1 min)WriteFlash Success.Press ENTER key to reboot the system .适用版本vrp1.5/1.6/1.7quidway start booting出现时迅速按n,多按不限选择M选择Y路由器的ip地址掩码pc的ip地址网站下载的升级软件的名字回车键入C按ctrl+b选择2将版本文件写入flash回车重启注意:1.tftp升级必须在近端进行,远程无法操作2.tftp软件下载链接http:/perso.wanadoo.fr/philippe.jounin/default.html1.6 打开debug开关过程: Routerinfo-center enable配置口情况时:Routerinfo-center consoleRouterinfo-center console debug远程telnet情况时:Routerinfo-center monitorRouterinfo-center monitor debug然后,此处以调试链路层协议ppp数据包为例Routerdebugging ppp packet注意:1.特权模式下debug;可以从display debug看出现在有哪些调试开关是打开的2.调试开关打开,对路由器性能会有相应程度的影响,所以用后请及时关闭调试信息:Routerundo debug all,或者ctrl+d亦可1.7 Snmp配置! version 1.74适用版本vrp1.7Router !Router interface Ethernet0Router-Ethernet0 ip address !Router interface Serial0Router-Serial0 link-protocol ppp !Router interface Bri0Router-Bri0 link-protocol pppRouter-Bri0 dialer in-band ! quitRoutersnmp-agent使能snmp服务Routersnmp-agent local-engineid 800007DB0300E0FC0F6256全网唯一设备引擎IDRouter snmp-agent community read isPublic设置读团体名:isPublicRoutersnmp-agent community write isPrivate设置写团体名:isPrivateRoutersnmp-agent sys-info version all选择网管snmpv1/v2/v3Routersnmp-agent sys-info contact系电话outer snmp-agent target-host trap address 0 port 69 parameters v1 securityname aaa设置trap接收主机0Router snmp-agent sys-info location Huawei Tech. Beijing, China路由器位置Router snmp-agent trap enable standard authentication coldstart linkdown linkup warmstartTrap的内容standard authentication coldstart linkdown linkup warmstartRoutersnmp-agent trap enable systemTrap的内容system !注意:1.网管的community name应该与路由器上配置一致2.缺省配置下community read name为public, community write name为private1.8 终端接入服务器(哑终端)1.8.1 不同的终端使用不同的unix主机上的不同业务组网:图1-7 终端接入服务器之不同的终端使用不同unix主机上的不同业务需求:终端0/1/2应用对公业务;终端3/4/5/6/7应用储蓄业务配置:! version 1.74适用版本vrp1.7Router tty enable使能终端接入服务功能Router tty-app sender connect 0-2 9001 1 duigong0-2对公业务Router tty-app sender connect 3-7 9000 1 chuxu3-7储蓄业务 !Router interface Serial0Router-Serial0 clock DTECLK1Router-Serial0 link-protocol pppRouter-Serial0 ip address !Router interface Async0Router-Async0 undo modemRouter-Async0 async mode tty 0 0 0 16000请注意数字颜色Router-Async0 link-protocol ppp与上下文的对应关系 !Router interface Async1Router-Async1 undo modemRouter-Async1 async mode tty 1 0 1 16000Router-Async1 link-protocol ppp !Router interface Async2Router-Async2 undo modemRouter-Async2 async mode tty 2 0 2 16000Router-Async2 link-protocol ppp !Router interface Async3Router-Async3 undo modemRouter-Async3 async mode tty 3 0 3 16000Router-Async3 link-protocol ppp !Router interface Async4Router-Async4 undo modemRouter-Async4 async mode tty 4 0 4 16000Router-Async4 link-protocol ppp !Router interface Async5Router-Async5 undo modemRouter-Async5 async mode tty 5 0 5 16000 link-protocol ppp !Router interface Async6Router-Async6 undo modemRouter-Async6 async mode tty 6 0 6 16000Router-Async6 link-protocol ppp !Router interface Async7Router-Async7 undo modemRouter-Async7 async mode tty 7 0 7 16000Router-Async7 link-protocol ppp ! quit Router ip route-static preference 60 ! quit储蓄unix主机的ttyd.conf内容:severport 9000mode 1squitsize 512readsize 300interval 200nodelay 1debug 0ttyp50 3ttyp51 4ttyp52 5ttyp53 6ttyp54 7对公unix主机的ttyd.conf内容:severport 9001mode 1squitsize 512readsize 300interval 200nodelay 1debug 0ttyp50 0ttyp51 1ttyp52 21.8.2 不同终端使用同一unix主机上的不同业务组网: 图1-8 不同终端使用同一unix主机上的不同业务需求:对公储蓄业务均在一台unix主机上运行;终端0/1/2应用对公业务,终端3/4/5/6/7应用储蓄业务配置:! version 1.74适用版本vrp1.7Router Tty enable使能终端接入服务功能Router tty-app sender connect 0-2 9001 1 duigong0-2对公Router tty-app sender connect 3-7 9000 1 chuxu3-7储蓄 !Router interface Serial0Router-Serial0 clock DTECLK1Router-Serial0 link-protocol pppRouter-Serial0 ip address !Router interface Async0Router-Async0 undo modemRouter-Async0 async mode tty 0 0 0 16000请注意数字颜色Router-Async0 link-protocol ppp与上下文对应关系 !Router interface Async1Router-Async1 undo modemRouter-Async1 async mode tty 1 0 1 16000Router-Async1 link-protocol ppp !Router interface Async2Router-Async2 undo modemRouter-Async2 async mode tty 2 0 2 16000Router-Async2 link-protocol ppp !Router interface Async3Router-Async3 undo modemRouter-Async3 async mode tty 3 0 3 16000Router-Async3 link-protocol ppp !Router interface Async4Router-Async4 undo modemRouter-Async4 async mode tty 4 0 4 16000Router-Async4 link-protocol ppp !Router interface Async5Router-Async5 undo modemRouter-Async5 async mode tty 5 0 5 16000Router-Async5 link-protocol ppp !Router interface Async6Router-Async6 undo modemRouter-Async6 async mode tty 6 0 6 16000Router-Async6 link-protocol ppp ! interface Async7Router undo modemRouter-Async7 async mode tty 7 0 7 16000Router-Async7 link-protocol ppp ! quit Router ip route-static preference 60 ! returnunix主机储蓄的ttyd1.conf内容:severport 9000mode 1squitsize 512readsize 300interval 200nodelay 1debug 0ttyp50 3ttyp51 4ttyp52 5ttyp53 6ttyp54 7unix主机对公的ttyd2.conf内容:severport 9001mode 1squitsize 512readsize 300interval 200nodelay 1debug 0ttyp60 0ttyp61 1ttyp62 21.8.3 同一终端同时使用多种业务组网:图1-9 同一终端同时使用多种业务需求:终端0/1可以处理储蓄,对公,记账,外汇四项业务终端2/3可以处理储蓄,对公,记账三项业务终端4/5可以处理储蓄,记账两项业务终端6/7可以处理储蓄业务切换按键为ctrl6,对应的anscii值为30表1-3 同一终端使用不同业务 业务 虚终端终端chuxuduigongjizhangwaihui0012310123201230124015016070配置:! version 1.74适用版本vrp1.7Router tty enable使能终端接入服务功能Router tty-app sender connection 0 9000 1 chuxuRouter tty-app sender connection 1 9001 1 duigongRouter tty-app sender connection 2 9002 1 jizhangRoutertty-app sender connection 3 9003 1 waihuiRouter tty-app sender connection 4 9000 1 chuxuRouter tty-app sender connection 5 9001 1 duigongRouter tty-app sender connection 6 9002 1 jizhangRoutertty-app sender connection 7 9003 1 waihuiRouter tty-app sender connection 8 9000 1 chuxuRouter tty-app sender connection 9 9001 1 duigongRoutertty-app sender connection 10 9002 1 jizhangRouter tty-app sender connection 11 9000 1 chuxuRouter tty-app sender connection 12 9001 1 duigongRoutertty-app sender connection 13 9002 1 jizhangRouter tty-app sender connection 14 9000 1 chuxuRouter tty-app sender connection 15 9002 1 jizhangRouter tty-app sender connection 16 9000 1 chuxuRoutertty-app sender connection 17 9002 1 jizhangRouter tty-app sender connection 18 9000 1 chuxuRouter tty-app sender connection 19 9000 1 chuxu!Router interface Serial0Router-Serial0 clock DTECLK1Router-Serial0 link-protocol pppRouter-Serial0 ip address !Router interface Async0Router-Async0 undo modemRouter-Async0async mode tty 0 0 0Router-Async0async mode tty 0 1 1Router-Async0async mode tty 0 2 2Router-Async0async mode tty 0 3 3Router-Async0tty menu-key 30Router-Async0 link-protocol ppp !Router interface Async1Router-Async1 undo modemRouter-Async1 async mode tty 1 0 4Router-Async1 async mode tty 1 1 5Router-Async1 async mode tty 1 2 6Router-Async1async mode tty 1 3 7Router-Async1tty menu-key 30Router-Async1 link-protocol ppp !Router interface Async2Router-Async2 undo modemRouter-Async2async mode tty 2 0 8Router-Async2async mode tty 2 1 9Router-Async2async mode tty 2 2 10Router-Async2tty menu-key 30Router-Async2link-protocol ppp !Router interface Async3Router-Async3 undo modemRouter-Async3 async mode tty 3 0 11Router-Async3async mode tty 3 1 12Router-Async3async mode tty 3 2 13Router-Async3tty menu-key 30 Router-Async3link-protocol ppp !Router interface Async4Router-Async4 undo modemRouter-Async4 async mode tty 4 0 14Router-Async4 async mode tty 4 1 15Router-Async4tty menu-key 30Router-Async4 link-protocol ppp !Router interface Async5Router-Async5 undo modemRouter-Async5async mode tty 5 0 16Router-Async5async mode tty 5 1 17Router-Async5tty menu-key 30Router-Async5 link-protocol ppp !Router interface Async6Router-Async6undo modemRouter-Async6async mode tty 6 0 18Router-Async6 link-protocol pp

温馨提示

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

评论

0/150

提交评论