华为系列中端路由器典型配置手册.doc

上传人:本田雅阁 文档编号:2057186 上传时间:2019-02-09 格式:DOC 页数:93 大小:2.18MB
返回 下载 相关 举报
华为系列中端路由器典型配置手册.doc_第1页
第1页 / 共93页
华为系列中端路由器典型配置手册.doc_第2页
第2页 / 共93页
华为系列中端路由器典型配置手册.doc_第3页
第3页 / 共93页
亲,该文档总共93页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《华为系列中端路由器典型配置手册.doc》由会员分享,可在线阅读,更多相关《华为系列中端路由器典型配置手册.doc(93页珍藏版)》请在三一文库上搜索。

1、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 riprip

2、ctrl+pctrl+erouter ospfospfno debug allctrl+drouter bgpbgphostnamesysnameaccess-listaclwritesaveerasedelete0simple7cipherhostip hostlogginginfo-centerencaplink-pro注意:disp cur显示路由器当前生效的配置参数,同时也是可以输入的命令disp是display的缩写,在没有歧义时路由器会自动识别不完整词disp和ping命令在任何视图下都可执行,不必切换到系统视图删除某条命令,一般的命令是undo xxx,另一种情况是用其他的参数代

3、替现在的参数,如有时虽然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接口下是否配置了de

4、scription以确保配置的易读性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两条命令,做为con

5、sole口的备份13【线缆上是否有标签,线缆标签上应注明足够的信息,以便排除线路故障时,可以从容不迫】14模块是否拧紧15路由器是否固定良好,是否有足够的支撑16路由器是否接地,多雷电地区,或者路由器线路有室外走线的,一定要良好接地,接地电阻不大于5欧姆17是否配置命令的接口和线缆所插接口一致18版本信息和路由器配置是否已经备份到pc机:display version/display cur/display base19路由器是上是否已经运行Routersave以确保当前的正确配置保存到路由器上说明:因路由器型号和配置模块差别,以及阅读方便,以下所有配置中仅给出相关配置;配置分三列,最左是视图

6、模式,表示当前命令的可执行视图模式,中间一列是disp cur所显示的配置命令,也是我们需要输入的,最右是相应解释1.3 远程登陆telnet1.3.1 缺省情况:无需用户名和密码,均可telnet组网:图1-3 pc telnet到路由器配置:version 1.74适用版本vrp1.7 !Router interface Ethernet0Router-Ethernet0 ip address 10.0.0.1 255.255.255.0 !Router interface Serial0Router-Serial0 link-protocol ppp !Router interface

7、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 10.0.0.1 255.255.255.0 !Router interfa

8、ce 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

9、 simple atelnet的用户名是a 密码是aRouter !Routeracl 101Router-acl-101rule permit tcp source 10.0.0.2 0.0.0.0 destination 10.0.0.1 0.0.0.0 eq telnet允许10.0.0.2主机telnet到10.0.0.1Router-acl-101rule deny tcp source any destination 10.0.0.1 0.0.0.0 eq telnet禁止所有telnet到10.0.0.1的报文 !Router interface Ethernet0Router-

10、Ethernet0 ip address 10.0.0.1 255.255.255.0Router-Ethernet0firewall packet-filter 101 inbound 接口引用acl101 !Router interface Serial0Router-Serial0 link-protocol ppp !Router interface Bri0Router-Bri0link-protocol ppp! quit现象:仅ip为10.0.0.2的设备才能登陆到10.0.0.1这台路由器上1.4 ftp在线升级vrp组网:图1-4 pc ftp到路由器配置: !Router

11、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 10.0.0.1 255.255.255.0 !Router interface Serial0Router-Serial0 link-protocol ppp !Router interface Bri0Router-

12、Bri0 link-protocol ppp ! quit 过程:1.windows开始-运行中输入:ftp 10.0.0.12.输入用户名: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 confi

13、g/上传配置文件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配套版本请到的

14、软件中心查询下载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 t

15、o 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? 169.254.10.10 10.0.0.1Subnet mask for LAN (0 for none)? 255.255.0.0 255.255.255.0TFTP SERVER PARAMETERS: IP address of the TFTP server? 169.254.75.

16、166 10.0.0.254What 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 10.110.50.1 LAN interfaces subnet mask is 0xfffff800HARDWARE PARAMETERS: Proces

17、sor 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 10.110.51.11 The file to download and start is a After board is reset, start-up code will wait

18、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 B

19、oot 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 Startin

20、g 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.tf

21、tp升级必须在近端进行,远程无法操作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

22、注意:1.特权模式下debug;可以从display debug看出现在有哪些调试开关是打开的2.调试开关打开,对路由器性能会有相应程度的影响,所以用后请及时关闭调试信息:Routerundo debug all,或者ctrl+d亦可1.7 Snmp配置! version 1.74适用版本vrp1.7Router !Router interface Ethernet0Router-Ethernet0 ip address 10.0.0.1 255.255.255.0 !Router interface Serial0Router-Serial0 link-protocol ppp !Route

23、r 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

24、-info version all选择网管snmpv1/v2/v3Routersnmp-agent sys-info contact 010-12345678联系电话:010-12345678Router snmp-agent target-host trap address 10.0.0.10 port 69 parameters v1 securityname aaa设置trap接收主机10.0.0.10Router snmp-agent sys-info location Huawei Tech. Beijing, China路由器位置Router snmp-agent trap ena

25、ble 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 不同的

26、终端使用不同的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 10.0.1.2 9001 1 duigong0-2对公业务Router tty-app sender connect 3-7 10.0.1.1 9000 1 chuxu3-7储蓄业务 !Router interface Serial0Rout

27、er-Serial0 clock DTECLK1Router-Serial0 link-protocol pppRouter-Serial0 ip address 10.0.0.1 255.255.255.0 !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-Asyn

28、c1 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

29、 !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

30、 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 0.0.0.0 0.0.0.0 10.0.0.2 preference 60 ! quit储蓄unix主机10.0.1.1的ttyd.conf内容:severport 9000mode 1squitsiz

31、e 512readsize 300interval 200nodelay 1debug 0ttyp50 10.0.0.1 3ttyp51 10.0.0.1 4ttyp52 10.0.0.1 5ttyp53 10.0.0.1 6ttyp54 10.0.0.1 7对公unix主机10.0.1.2的ttyd.conf内容:severport 9001mode 1squitsize 512readsize 300interval 200nodelay 1debug 0ttyp50 10.0.0.1 0ttyp51 10.0.0.1 1ttyp52 10.0.0.1 21.8.2 不同终端使用同一uni

32、x主机上的不同业务组网: 图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 10.0.1.1 9001 1 duigong0-2对公Router tty-app sender connect 3-7 10.0.1.1 9000 1 chuxu3-7储蓄 !Router interface Serial0Router

33、-Serial0 clock DTECLK1Router-Serial0 link-protocol pppRouter-Serial0 ip address 10.0.0.1 255.255.255.0 !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

34、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 !R

35、outer 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

36、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 0.0.0.0 0.0.0.0 10.0.0.2 preference 60 ! returnunix主机10.0.1.1储蓄的ttyd1.conf内容:severport 9000mode 1squitsiz

37、e 512readsize 300interval 200nodelay 1debug 0ttyp50 10.0.0.1 3ttyp51 10.0.0.1 4ttyp52 10.0.0.1 5ttyp53 10.0.0.1 6ttyp54 10.0.0.1 7unix主机10.0.1.1对公的ttyd2.conf内容:severport 9001mode 1squitsize 512readsize 300interval 200nodelay 1debug 0ttyp60 10.0.0.1 0ttyp61 10.0.0.1 1ttyp62 10.0.0.1 21.8.3 同一终端同时使用多种

38、业务组网:图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 10.0.1.1 9000 1 chuxuRouter tty-app sender connection 1 10.0.1.1 9001 1 duigongRouter tty-app sender connection 2 10.0.1.2 9002 1 jizhangRoutertty-app sender connection 3 10.0.1.2 9003 1 waihui

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 其他


经营许可证编号:宁ICP备18001539号-1