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

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

减小字体 增大字体 作者:未知  来源:supcode.com收集整理  发布时间:2005-7-1 14:59:06
address 16.3.1.1 255.255.255.0 encapsulation ppp ! interface Async1 ip address 16.3.2.1 255.255.255.0 encapsulation ppp keepalive 9 async default routing async dynamic address async dynamic routing async mode dedicated dialer in-band dialer string 8292 dialer-group 1 ! dialer-list 1 protocol ip permit ! line aux 0 script dialer MYDIAL modem InOut transport output none stopbits 1 flowcontrol hardware speed 9600   Subinterface Example(Frame Relay)     Configuration for RouterA:   interface serial 0 encapsulation frame-relay interface s 0.1 multipoint ip address 11.10.11.1 255.255.255.0 frame-relay interface-dlci 41 frame-relay interface-dlci 42   Configuration for RouterC:   interface serial 0 encapsulation frame-relay interface s 0.1 point-to-point ip address 11.10.16.2 255.255.255.0 frame-relay interface-dlci 46   Configuration for RouterB:   interface serial 0 encapsulation frame-relay interface s 0.1 multipoint ip address 11.10.11.3 255.255.255.0 frame-relay interface-dlci 43 frame-relay interface-dlci 44 ! interface s 0.2 point-to-point ip address 11.10.13.1 255.255.255.0 frame-relay interface-dlci 48   Frame Relay Switching Example     Configuration for RouterA:   frame-relay switching ! int s 0 no ip address frame-relay encapsulation frame-relay route 167 tun0 43 frame-relay intf-type dce ! int s 1 ip address 131.108.100.1 255.255.255.0 ! int tu 0 tunnel source serial 1 tunnel destination 131.108.13.2   Configuration for RouterB:   frame-relay switching ! int s 0 no ip address frame-relay encapsulation frame-relay route 9 tun0 43 frame-relay intf-type dce ! int s 1 ip address 131.108.13.2 255.255.255.0 ! int tu 0 tunnel source serial 1 tunnel destination 131.108.100.1   Channelized E1 Interface Example   假设是7500系列路由器,E1接口(MIP板)在插槽4上面.一个channel-group可对应多个时间槽,本例中serial4/0:1有5*64Kbps的数率.  Configuration for Router:   controller E1 0 framing NO-CRC4 channel-group 0 timeslots 1 channel-group 1 timeslots 2,7-9,20 speed 64 ! interface Serial4/0:0 ip address 16.217.30.2 255.255.255.252 encapsulation ppp ! interface Serial4/0:1 ip address 16.205.30.5 255.255.255.252   X.25 Example   在配置X.25时,为减少路由交换引起的呼叫,通常用静态路由.而当一对多情况下, 不在一个子网中用subinterface配置.   Configuration for Router:   interface serial 0 ip address 131.108.100.1 255.255.255.0 encapsulation x25 x25 address 041673226839 x25 htc 16 x25 map ip 131.108.100.2 041675222222 int s 0.1 ip address 131.108.101.1 255.255.255.0 x25 map ip 131.108.101.2 041674222222 ! ip route 131.108.100.0 255.255.255.0 131.108.100.2 ip route 131.108.101.0 255.255.255.0 131.108.101.2 路由协议设置 一、RIP协议 RIP(Routing information Protocol)是应用较早、使用较普遍的内部网关协议(Interior Gateway Protocol,简称IGP),适用于小型同类网络,是典型的距离向量(distance-vector)协议。文档见RFC1058、RFC1723。 RIP通过广播UDP报文来交换路由信息,每30秒发送一次路由信息更新。RIP提供跳跃计数(hop count)作为尺度来衡量路由距离,跳跃计数是一个包到达目标所必须经过的路由器的数目。如果到相同目标有二个不等速或不同带宽的路由器,但跳跃计数相同,则RIP认为两个路由是等距离的。RIP最多支持的跳数为15,即在源和目的网间所要经过的最多路由器的数目为15,跳数16表示不可达。 1. 有关命令 任务 命令 指定使用RIP协议 router rip 指定RIP版本 version {1|2}1 指定与该路由器相连的网络 network network 注:1.Cisco的RIP版本2支持验证、密钥管理、路由汇总、无类域间路由(CIDR)和变长子网掩码(VLSMs) 2. 举例 Router1: router rip version 2 network 192.200.10.0 network 192.20.10.0 ! 相关调试命令: show ip protocol show ip route 二、IGRP协议 IGRP (Interior Gateway Routing Protocol)是一种动态距离向量路由协议,它由Cisco公司八十年代中期设计。使用组合用户配置尺度,包括延迟、带宽、可靠性和负载。 缺省情况下,IGRP每90秒发送一次路由更新广播,在3个更新周期内(即270秒),没有从路由中的第一个路由器接收到更新,则宣布路由不可访问。在7个更新周期即630秒后,Cisco IOS 软件从路由表中清除路由。 1. 有关命令 任务 命令 指定使用RIP协议 router igrp autonomous-system1 指定与该路由器相连的网络 network network 指定与该路由器相邻的节点地址 neighbor ip-address 注:1、autonomous-system可以随意建立,并非实际意义上的autonomous-system,但运行IGRP的路由器要想交换路由更新信息其autonomous-system需相同。 2.举例 Router1: router igrp 200 network 192.200.10.0 network 192.20.10.0 ! 三、OSPF协议 OSPF(Open Shortest Path First)是一个内部网关协议(Interior Gateway Protocol,简称IGP),用于在单一自治系统(autonomous system,AS)内决策路由。与RIP相对,OSPF是链路状态路由协议,

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


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