当前位置:早雪网网络学院编程文档其他语言 → 配制路由器让我来教你(经典)

配制路由器让我来教你(经典)

减小字体 增大字体 作者:未知  来源:supcode.com收集整理  发布时间:2005-7-1 14:59:06
网是56K到45M数率,帧中继是在两个节点间建立面向连接的,包交换的虚电路. 在一个物理端口上配置SVCs 在子端口上配置SVCs 在一个帧中继端口上配置SVC操作   功 能 命 令 指定物理端口 interface serial number 如果需要,配置IP地址 ip address ip-address mask 在这个端口上配置帧中继打包 encapsulation frame-relay 在这个端口上激活帧中继SVC frame-relay svc   在子端口上配置SVCs   功 能 命 令 在主端口上指定一个子端口 interface serial number.subinterface-number {multipoint | point-to-point} 如果需要,配置IP地址 ip address ip-address mask 参阅下面"Configure subinterface Example"的例子.   帧中继交换   当一个帧中继网要通过IP网与另一个帧中继网互连,就要用到帧中继交换.把IP网 看作帧中继包的隧道通过去. 实现帧中继交换,配置如下: 功 能 命 令 把路由器作为帧中继交换机 frame-relay switching 在路由器上设置静态路由 frame-relay route in-dlci out-interface out-dlci 定义网络功能 frame-relay intf-type {dte| dce| nni} 请参阅"Frame Relay Switching Example"配置实例. 监控帧中继连接 在EXEC模式下: 功 能 命 令 显示帧中继DLCI和LMI信息 show interface serial number 显示LMI状态 show frame-relay lmi [type number] 显示PVC状态 show frame-relay pvc [type number [dlci]] 显示配置静态路由 show frame-relay route 显示帧中继传输状态 show frame-relay traffic 3、配置DDN DDN(Digital Data Network)是一种点对点的同步数据通信链路.它支持PPP,SLIP,HDLC和SDLC等链路层通信协议.允许IP, Novell IPX, Bridging,CLNS,AppleTalk,DECnet等多种上层协议在上面运行.   基本配置 压缩技术 E1端口配置 基本配置   功 能 命 令 进入指定端口 interface serial number 定义该端口IP地址 ip address ip-address mask 指定该端口打包方式 encapsulation {PPP| HDLC }   压缩技术   通常在串口中传输的数据是不压缩的,它允许数据包头在每次传输时正常交换,但每次将浪费带宽.目前支持的压缩有PPP,Frame Relay, X.25, TCP等等.   Cisco的压缩是通过软件完成的,将影响系统性能.故建议路由器CPU占用超过65%,就不要使用压缩.(show process cpu EXEC命令查看当前CPU使用情况)   功 能 命 令 TCP传输头压缩 ip tcp head-compression [passive] X.25压缩 X25 compress PPP压缩 ppp compress [predictir|stac]   注: "passive"表示只有输入包是压缩时,输出包才压缩.   E1端口配置   在Cisco 4500,4700,7000和7500系列里面均支持E1(2.048Mbps)数率的接口.每一个E1端口可以按时隙分成30路64K数据线路和2路信号线路.这30个64K数据线路每一路均可以当作一条64K的专线.   功 能 命 令 在配置模式下,定义Controller E1 controller e1 slot/port 定义line code linecode {ami |hdb3} 定义字符帧 framing {crc4 |no-crc4} 定义E1组 channel-group number timeslots range [speed {48| 56| 64}] 指定串口属于那一个channel-group组 interface serial slot/port:channel-group 注:slot/port----是针对7000或7500系列的,故区分槽口号和端口号. linecode----默认是HDB3. framing----默认是crc4,要与电信局参数匹配. channel-group----每个E1可以分成30个channel-group,把channel-group和时间槽对应起来.channel-group是0-30,timeslots是1-31. interface serial----在定义完E1 channel-group后,我们把group赋予成一个虚拟串口. 具体的请参阅"Channelized E1 Interface Example"实例. 4、配置X.25   X.25配置完成如下工作: 功 能 命 令 设置X.25模式 encapsulation x25 [dte|dce] 设置最大虚电路数 x25 htc max-vc-number 设置X.121地址 x25 address x121-address 建立IP地址与X.121地址对应 x25 map ip ip-address x121-addres [broadcast] htc----htc是最大的虚电路数,因为许多X.25交换机是从高到低建立虚电路的,max-vc-number不能超过申请的最大值. 请参阅"X.25 Example"的配置实例. 5、配置HDLC: HDLC是CISCO路由器使用的缺省协议,一台新路由器在未指定封装协议时默认使用HDLC封装。 A.有关命令 端口设置: 任务 命令 设置HDLC封装 encapsulation hdlc 设置DCE端线路速度 clockrate speed 复位一个硬件接口 clear interface serial unit 显示接口状态 show interfaces serial [unit] 1 注:1.以下给出一个显示Cisco同步串口状态的例子. Router#show interface serial 0 Serial 0 is up, line protocol is up Hardware is MCI Serial Internet address is 150.136.190.203, subnet mask is 255.255.255.0 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input 0:00:07, output 0:00:00, output hang never Output queue 0/40, 0 drops; input queue 0/75, 0 drops Five minute input rate 0 bits/sec, 0 packets/sec Five minute output rate 0 bits/sec, 0 packets/sec 16263 packets input, 1347238 bytes, 0 no buffer Received 13983 broadcasts, 0 runts, 0 giants 2 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 2 abort 22146 packets output, 2383680 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets, 0 restarts 1 carrier transitions B. 举例: 设置如下: Router1: interface Serial0 ip address 192.200.10.1 255.255.255.0 clockrate 1000000 Router2: interface Serial0 ip address 192.200.10.2 255.255.255.0 ! C. 举例使用E1线路实现多个64K专线连接. 相关命令: 任务 命

上一页  [1] [2] [3] [4] [5] [6] [7]  下一页


Tags:配制,路由器,经典
[数据载入中...] [返回上一页] [打 印]