网络技术培训资料路由器配置.ppt
技术培训深圳市河辰通讯技术有限公司技术部路由器配置 路由器的配置方法超级终端(可以用CONSOLE口/TCPIP SOCKtelnet)TELNET(可以超级终端和WINDOWS自带的及第三方软件)远程拨号(MODEM+CONSOLE口)FTP(FTP下载配置文件)SNMP(简单网络管理协议)超级终端适用于第一次对路由器进行配置配置线:RJ-45两端互为反线序,另加一个RJ-45转RS232的接头。一端接电脑串口(RS232),一端接路由器CONSOLE(RJ-45)运行超级终端程序超级终端程序的参数设定超级终端程序第一次LOGIN页面TELNET路由器路由器VRPVRP支持支持TELNETTELNETTELNETTELNET条件:在端口条件:在端口(LAN)(LAN)上配好上配好IPIP在提示符下:在提示符下:telnet telnet xxx.xxx.xxx.xxxxxx.xxx.xxx.xxx便可出现便可出现ROUTERROUTER的的LOGINLOGIN页面,如下图所示页面,如下图所示(本路由器设上(本路由器设上TELNETTELNET验证)验证)TELNETTELNET优势/劣势基于端口IP不用去机房,管理方便 可以远程登录在重启时不能对路由器进行任何操作,但某些处理必须在启动过程中进行(清除密码,参数设定)VRP版本的认识仿CISCO IOS1.4.1 1.431.56 1.63 1.65华为国际版本1.441.7VRP用户模式(IOS)普通用户模式普通用户模式QuidwayQuidway 特权用户模式特权用户模式QuidwayQuidway#全局模式全局模式Quidway(configQuidway(config)#)#接口配置模式接口配置模式Quidway(config-if-Serial0)#Quidway(config-if-Serial0)#指令系统关键字匹配 int s 0=interface serial 0指令帮助系统Show?Show i?VRP错误信息Quidway#shwo Incorrect command Incorrect commandQuidway#show Incomplete command Incomplete commandQuidway#show interface serial 0 0 Too many parameters Too many parameters历史命令Quidway#show historyenableconfigint s 0exit或 上一条历史纪录或 下一条历史纪录 显示特性Language 中英文显示方式切换暂停显示时键入Ctrl+c 停止显示和命令执行暂停显示时键入空格键 继续显示下一屏信息暂停显示时键入回车键 继续显示下一行信息常用SHOWshow versionshow running-configshow interfaceSHOW VERQuidway#show versionQuidway Series 1600 Router Software Version VRP1.2-Feb 19 2000-05:29:51Copyright(c)1997-2000 SHENZHEN HUAWEI TECH CO.,LTD.hardware version is 1.0SHOW RUN huawei-bj(config)#showhuawei-bj(config)#show running-running-configconfig Current configuration Current configuration hostname hostname huawei-bjhuawei-bj !interface Ethernet0 interface Ethernet0 ipip address 100.10.110.1 255.255.0.0 address 100.10.110.1 255.255.0.0 !interface Serial0 interface Serial0 encapsulation encapsulation pppppp ipip address 11.1.1.2 255.255.255.252 address 11.1.1.2 255.255.255.252 exit exit ipip route 10.110.0.0 255.255.0.0 11.1.1.1 preference 60 route 10.110.0.0 255.255.0.0 11.1.1.1 preference 60!end endShow int s 0 huawei-bj(config)#showhuawei-bj(config)#show interface serial 0 interface serial 0 Serial0 is up,line protocol is upSerial0 is up,line protocol is up physical layer is synchronous,physical layer is synchronous,baudratebaudrate is 64000 bps is 64000 bps interface is DCE,clock is DCECLK,cable type is RS232 interface is DCE,clock is DCECLK,cable type is RS232 Internet address is 11.1.1.2 255.255.255.252 Internet address is 11.1.1.2 255.255.255.252 Encapsulation is PPP Encapsulation is PPP LCP opened,IPCP opened,IPXCP initial LCP opened,IPCP opened,IPXCP initial 5 minutes input rate 52.63 bytes/sec,0.96 packets/sec 5 minutes input rate 52.63 bytes/sec,0.96 packets/sec 5 minutes output rate 60.00 bytes/sec,1.19 packets/sec 5 minutes output rate 60.00 bytes/sec,1.19 packets/sec Input queue is 0/75/0(current/max/drops)Input queue is 0/75/0(current/max/drops)QueueingQueueing strategy:FIFO strategy:FIFO Output Queue:(size/max/drops)Output Queue:(size/max/drops)0/75/0 0/75/0 539 packets input,24907 bytes,0 no buffers 539 packets input,24907 bytes,0 no buffers 670 packets output,29586 bytes,0 no buffers 670 packets output,29586 bytes,0 no buffers 0 input errors,0 CRC,0 frame errors 0 input errors,0 CRC,0 frame errors 0 0 overrunnersoverrunners,0 aborted sequences,0 input no buffers,0 aborted sequences,0 input no buffers DCD=UP DTR=UP DSR=UP RTS=UP CTS=UP DCD=UP DTR=UP DSR=UP RTS=UP CTS=UPPING#ping 11.1.1.1#ping 11.1.1.1 PING 11.1.1.1:56 data bytes,press CTRL_C to break PING 11.1.1.1:56 data bytes,press CTRL_C to break Reply from 11.1.1.1:bytes=56 Sequence=0 Reply from 11.1.1.1:bytes=56 Sequence=0 ttlttl=255 time=31=255 time=31 msms Reply from 11.1.1.1:bytes=56 Sequence=1 Reply from 11.1.1.1:bytes=56 Sequence=1 ttlttl=255 time=31=255 time=31 msms Reply from 11.1.1.1:bytes=56 Sequence=2 Reply from 11.1.1.1:bytes=56 Sequence=2 ttlttl=255 time=32=255 time=32 msms Reply from 11.1.1.1:bytes=56 Sequence=3 Reply from 11.1.1.1:bytes=56 Sequence=3 ttlttl=255 time=31=255 time=31 msms Reply from 11.1.1.1:bytes=56 Sequence=4 Reply from 11.1.1.1:bytes=56 Sequence=4 ttlttl=255 time=31=255 time=31 msms -11.1.1.1 ping statistics-11.1.1.1 ping statistics-5 packets transmitted 5 packets transmitted 5 packets received 5 packets received 0.00%packet loss 0.00%packet loss round-trip min/round-trip min/avgavg/max=31/31/32 ms/max=31/31/32 mshuawei-bj#tracert 10.110.201.186 traceroute to 10.110.201.186(10.110.201.186)30 hops max,40 bytes packet1 11.1.1.1 29 ms 22 ms 21 ms1 11.1.1.1 29 ms 22 ms 21 ms2 10.110.201.186 38 ms 24 ms 24 ms2 10.110.201.186 38 ms 24 ms 24 ms路由器调试任务 网络拓朴网络拓朴IPIP规划规划设备调试设备调试网络测试网络测试方便远程调试的设置方便远程调试的设置 网络拓朴了解客户组网意图画出组网图二点互联,多点互联,了解各互联点之间的线路和相关参数DDN:公网/专网,FR:DLCIPSTN/ISDN:电话号码IP规划IP规划原则:如果是DDN,FR,PSTN,ISDN路由器相邻端口的IP在同一网段,不相邻端口不在同一网段,同一路由器端口IP不能在同一网段电信没有给公网IP时:完全可以自己定义网络IP地址。如果线路由有指定公网IP,则一定要如实指定。设备调试路由器端口IP定义路由器端口(WAN)协议封装根据网络规模和应用线路应用合适的路由协议静态路由默认路由动态路由网络测试各端各端LAN PINGLAN PING通路由器通路由器路由器之间相互路由器之间相互PINGPING通通(WAN(WAN口口)Ping aPing a可以指定源地址,可以判断出在端可以指定源地址,可以判断出在端LANLAN是是否可以和对端互通否可以和对端互通PCPC机加上网关或增加路由机加上网关或增加路由各端网络相互各端网络相互PINGPING通通远程调试的设置(telnet)ENABLE PASSWORD user afd service-type exec password 0 afd Login telnetLogin con