第二章广域网协议设置要点

上传人:m**** 文档编号:562047737 上传时间:2022-10-30 格式:DOC 页数:51 大小:554KB
返回 下载 相关 举报
第二章广域网协议设置要点_第1页
第1页 / 共51页
第二章广域网协议设置要点_第2页
第2页 / 共51页
第二章广域网协议设置要点_第3页
第3页 / 共51页
第二章广域网协议设置要点_第4页
第4页 / 共51页
第二章广域网协议设置要点_第5页
第5页 / 共51页
点击查看更多>>
资源描述

《第二章广域网协议设置要点》由会员分享,可在线阅读,更多相关《第二章广域网协议设置要点(51页珍藏版)》请在金锄头文库上搜索。

1、HDLCHDLC是 CISCO路由器使用的缺省协议,一台新路由器在未指 定封装协议时默认使用 HDLC封装。1. 有关命令端口设置任务命令设置HDLC封装en capsulatio n hdlc设置DCE端线路速度clockrate speed复位一个硬件接口clear in terfaceserialunit显示接口状态show in terfaces serialunit 1注:1.以下给出一个显示 Cisco同步串口状态的例子Router#show in terface serial 0Serial 0 is up, li ne protocol is upHardware is MCI

2、 SerialInternet address is 150.136.190.203, subnet mask is 255.255.255.0MTU1500 bytes, BW1544 Kbit, DLY20000 usec, rely 255/255, load 1/255Encapsulation HDLC, loopback not set, keepalive set (10 sec)Last input 0:00:07, output 0:00:00, output hang neverOutput queue 0/40, 0 drops; input queue 0/75, 0

3、dropsFive minute input rate 0 bits/sec, 0 packets/secFive minute output rate 0 bits/sec, 0 packets/sec16263 packets input, 1347238 bytes, 0 no bufferReceived 13983 broadcasts, 0 runts, 0 giants2 input errors, 0 CRC,0 frame, 0 overrun, 0 ignored, 2 abort22146 packets output, 2383680 bytes, 0 underrun

4、s0 output errors, 0 collisions, 2 interface resets, 0 restarts1 carrier tran siti ons2.132 JOO. 10 1SO(DCE)192,200,10.2(DTE)帥举例设置如下:Routerl:in terface SerialOip address 192.200.10.1 255.255.255.0clockrate 1000000Router2:in terface Serial0ip address 192.200.10.2 255.255.255.03.举例使用E1线路实现多个64K专线连接.相关命

5、令:任务命令进入controller酉己con troller t1 | e1置模式number选择帧类型framing crc4 | no-crc4选择line-code 类lin ecode ami | b8zs |型hdb3建立逻辑通道组与cha nn el-groupnumber时隙的映射1timeslots range显示 controllersshow con trollers e1接口状态slot/port 2注:1.当链路为 T1 时,channel-group编号为 0-23, Timeslot范围1-24;当链路为E1时,channel-group编号为0-30,Times

6、lot 范围 1-31.2.使用 show controllers e1 观察 controller 状态,以下为 帧类型为crc4时controllers正常的状态.Router# show controllers e1e1 0/0 is up.Applique type is Channelized E1 - unbalancedFraming is CRC4, Line Code is HDB3 No alarms detected.Data in current interval (725 seconds elapsed):0 Line Code Violations, 0 Path

7、Code Violations0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs,0 Unavail SecsTotal Data (last 24 hours) 0 Line Code Violations,0 Path Code Violations,0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins,0 Errored Secs, 0 Bu

8、rsty Err Secs, 0 Severely Err Secs, 0 Unavail Secs以下例子为E1连接3条64K专线,帧类型为N0-CRC4非平衡链路 , 路由器具体设置如下 :shanxi#wri tBuilding configuration.Current configuration:version 11.2no service udp-small-serversno service tcp-small-servershostname shanxienable secret 5 $1$XN08$Ttr8nfLoP9.2RgZhcBzkk/enable password s

9、hanxiip sub net-zerocon troller E1 0frami ng NO-CRC4cha nn el-group 0 timeslots 1cha nn el-group 1 timeslots 2cha nn el-group 2 timeslots 3!in terface Ethernet0ip address 133.118.40.1 255.255.0.0media-type 10BaseT!in terface Ethernet1no ip addressshutdow nin teface Serial0:0ip address 202.119.96.1 2

10、55.255.255.252no ip mroute-cache!in teface Serial0:1ip address 202.119.96.5 255.255.255.252no ip mroute-cache!in teface Serial0:2ip address 202.119.96.9 255.255.255.252no ip mroute-cacheno ip classlessip route 133.210.40.0 255.255.255.0 Serial0:0ip route 133.210.41.0 255.255.255.0 Serial0:1ip route

11、133.210.42.0 255.255.255.0 Serial0:2!line con 0line aux 0line vty 0 4password shanxi login!end、PPPPPP(Point-to-Point Protocol)是 SLIP(Serial Line IPprotocol) 的继承者,它提供了跨过同步和异步电路实现路由器到路由器(router-to-router)和主机到网络(host-to-network)的连接。CHAP(Challe nge Ha ndshake Authe ntication Protocol) 和 PAP(Password Aut

12、hentication Protocol) (PAP) 通常被 用于在PPP封装的串行线路上提供安全性认证。使用CHAP和PAP认证,每个路由器通过名字来识别,可以防止未经授 权的访问。CHAF和PAP在 RFC 1334上有详细的说明1. 有关命令端口设置任务命令设置PPP封装en capsulatio n ppp 1设置认证方法ppp authe nticati on chap | chap pap | pap chap | pap if-n eededlist- name | defaultcal lin指定口令user name name password secret设置 DCE端线

13、路速clockrate speed度注:1、要使用CHAP/PAf必须使用PPP封装。在与非Cisco路由 器连接时,一般采用PPP封装,其它厂家路由器一般不支持 Cisco 的HDLC封装协议。2. 举例路由器Router1和Router2的SO 口均封装PPP协议,采用CHAP做认证,在Router1中应建立一个用户,以对端路由器主 机名作为用户名,即用户名应为 router2。同时在Router2中 应建立一个用户,以对端路由器主机名作为用户名,即用户名 应为router1。所建的这两用户的 password必须相同。Routerl1叹2叩0SO(DCE)1922 叩(L2(DTE)S0

14、Router?设置如下:Router1:host name router1user name router2 password xxxin terface Serial。ip address 192.200.10.1 255.255.255.0clockrate 1000000ppp authentication chap!Router2:hostname router2username router1 password xxxinterface Serial0ip address 192.200.10.2 255.255.255.0ppp authentication chap三、x.251

15、. X25 技术X.25规范对应OSI三层,X.25的第三层描述了分组的格式及分组交换的过程。 X.25 的第二层由 LAP(B Link Access Procedure,Bala need )实现,它定义了用于 DTE/DCB连接的帧格式。X.25 的第一层定义了电气和物理端口特性。X.25网络设备分为数据终端设备(DTE、数据电路终端设备(DCE及分组交换设备(PSE。DTE是 X.25的末端系统,如终端、计算机或网络主机,一般位于用户端,Cisco路由器就是DTE设备。DCE设备是专用通信设备,如调制解调器和分组交换 机。PSE是公共网络的主干交换机。X.25定义了数据通讯的电话网络,每个分配给用户的x.25端 口都具有一个x.121地址,当用户申请到的是 SVCX交换虚电路) 时,x.25 一端的用户在访问另一端的用

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 解决方案

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