思科路由器路由协议设置.docx

上传人:b****2 文档编号:13974563 上传时间:2023-06-19 格式:DOCX 页数:13 大小:17.99KB
下载 相关 举报
思科路由器路由协议设置.docx_第1页
第1页 / 共13页
思科路由器路由协议设置.docx_第2页
第2页 / 共13页
思科路由器路由协议设置.docx_第3页
第3页 / 共13页
思科路由器路由协议设置.docx_第4页
第4页 / 共13页
思科路由器路由协议设置.docx_第5页
第5页 / 共13页
思科路由器路由协议设置.docx_第6页
第6页 / 共13页
思科路由器路由协议设置.docx_第7页
第7页 / 共13页
思科路由器路由协议设置.docx_第8页
第8页 / 共13页
思科路由器路由协议设置.docx_第9页
第9页 / 共13页
思科路由器路由协议设置.docx_第10页
第10页 / 共13页
思科路由器路由协议设置.docx_第11页
第11页 / 共13页
思科路由器路由协议设置.docx_第12页
第12页 / 共13页
思科路由器路由协议设置.docx_第13页
第13页 / 共13页
亲,该文档总共13页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

思科路由器路由协议设置.docx

《思科路由器路由协议设置.docx》由会员分享,可在线阅读,更多相关《思科路由器路由协议设置.docx(13页珍藏版)》请在冰点文库上搜索。

思科路由器路由协议设置.docx

思科路由器路由协议设置

思科路由器路由协议设置

  一、RIP协议

  RIP(RoutinginformationProtocol)是应用较早、使用较普遍的内部网关协议(InteriorGatewayProtocol,简称IGP),适用于小型同类网络,是典型的距离向量(distance-vector)协议。

文档见RFC1058、RFC1723。

  RIP通过广播UDP报文来交换路由信息,每30秒发送一次路由信息更新。

RIP提供跳跃计数(hopcount)作为尺度来衡量路由距离,跳跃计数是一个包到达目标所必须经过的路由器的数目。

如果到相同目标有二个不等速或不同带宽的路由器,但跳跃计数相同,则RIP认为两个路由是等距离的。

RIP最多支持的跳数为15,即在源和目的网间所要经过的最多路由器的数目为15,跳数16表示不可达。

  1.有关命令

任务

命令

指定使用RIP协议

routerrip

指定RIP版本

version{1|2}1

指定与该路由器相连的网络

network network

  注:

1.Cisco的RIP版本2支持验证、密钥管理、路由汇总、无类域间路由(CIDR)和变长子网掩码(VLSMs)

  2.举例

  Router1:

  routerrip

  version2

  network192.200.10.0

  network192.20.10.0

  !

  相关调试命令:

  showipprotocol

  showiproute

  二、IGRP协议

  IGRP(InteriorGatewayRoutingProtocol)是一种动态距离向量路由协议,它由Cisco公司八十年代中期设计。

使用组合用户配置尺度,包括延迟、带宽、可靠性和负载。

  缺省情况下,IGRP每90秒发送一次路由更新广播,在3个更新周期内(即270秒),没有从路由中的第一个路由器接收到更新,则宣布路由不可访问。

在7个更新周期即630秒后,CiscoIOS软件从路由表中清除路由。

  1.有关命令

任务

命令

指定使用RIP协议

routerigrp autonomous-system1

指定与该路由器相连的网络

network network

指定与该路由器相邻的节点地址

neighbor ip-address

  注:

1、autonomous-system可以随意建立,并非实际意义上的autonomous-system,但运行IGRP的路由器要想交换路由更新信息其autonomous-system需相同。

  2.举例

  Router1:

  routerigrp200

  network192.200.10.0

  network192.20.10.0

  !

  三、OSPF协议

  OSPF(OpenShortestPathFirst)是一个内部网关协议(InteriorGatewayProtocol,简称IGP),用于在单一自治系统(autonomoussystem,AS)内决策路由。

与RIP相对,OSPF是链路状态路有协议,而RIP是距离向量路由协议。

  链路是路由器接口的另一种说法,因此OSPF也称为接口状态路由协议。

OSPF通过路由器之间通告网络接口的状态来建立链路状态数据库,生成最短路径树,每个OSPF路由器使用这些最短路径构造路由表。

  文档见RFC2178。

  1.有关命令

  全局设置

任务

命令

指定使用OSPF协议

routerospf process-id1

指定与该路由器相连的网络

network address wildcard-mask areaarea-id2

指定与该路由器相邻的节点地址

neighbor ip-address

  注:

1、OSPF路由进程process-id必须指定范围在1-65535,多个OSPF进程可以在同一个路由器上配置,但最好不这样做。

多个OSPF进程需要多个OSPF数据库的副本,必须运行多个最短路径算法的副本。

process-id只在路由器内部起作用,不同路由器的process-id可以不同。

  2、wildcard-mask是子网掩码的反码,网络区域IDarea-id在0-4294967295内的十进制数,也可以是带有IP地址格式的.x.x.x.x。

当网络区域ID为0或0.0.0.0时为主干域。

不同网络区域的路由器通过主干域学习路由信息。

  2.基本配置举例:

  Router1:

  interfaceethernet0

  ipaddress192.1.0.129255.255.255.192

  !

  interfaceserial0

  ipaddress192.200.10.5255.255.255.252

  !

  routerospf100

  network192.200.10.40.0.0.3area0

  network192.1.0.1280.0.0.63area1

  !

  Router2:

  interfaceethernet0

  ipaddress192.1.0.65255.255.255.192

  !

  interfaceserial0

  ipaddress192.200.10.6255.255.255.252

  !

  routerospf200

  network192.200.10.40.0.0.3area0

  network192.1.0.640.0.0.63area2

  !

  Router3:

  interfaceethernet0

  ipaddress192.1.0.130255.255.255.192

  !

  routerospf300

  network192.1.0.1280.0.0.63area1

  !

  Router4:

  interfaceethernet0

  ipaddress192.1.0.66255.255.255.192

  !

  routerospf400

  network192.1.0.640.0.0.63area1

  !

  相关调试命令:

  debugipospfevents

  debugipospfpacket

  showipospf

  showipospfdatabase

  showipospfinterface

  showipospfneighbor

  showiproute

  3.使用身份验证

  为了安全的原因,我们可以在相同OSPF区域的路由器上启用身份验证的功能,只有经过身份验证的同一区域的路由器才能互相通告路由信息。

  在默认情况下OSPF不使用区域验证。

通过两种方法可启用身份验证功能,纯文本身份验证和消息摘要(md5)身份验证。

纯文本身份验证传送的身份验证口令为纯文本,它会被网络探测器确定,所以不安全,不建议使用。

而消息摘要(md5)身份验证在传输身份验证口令前,要对口令进行加密,所以一般建议使用此种方法进行身份验证。

  使用身份验证时,区域内所有的路由器接口必须使用相同的身份验证方法。

为起用身份验证,必须在路由器接口配置模式下,为区域的每个路由器接口配置口令。

任务

命令

指定身份验证

area area-id authentication[message-digest]

使用纯文本身份验证

ipospfauthentication-key password

使用消息摘要(md5)身份验证

ipospfmessage-digest-key keyid md5key

  以下列举两种验证设置的示例,示例的网络分布及地址分配环境与以上基本配置举例相同,只是在Router1和Router2的区域0上使用了身份验证的功能。

:

  例1.使用纯文本身份验证

  Router1:

  interfaceethernet0

  ipaddress192.1.0.129255.255.255.192

  !

  interfaceserial0

  ipaddress192.200.10.5255.255.255.252

  ipospfauthentication-keycisco

  !

  routerospf100

  network192.200.10.40.0.0.3area0

  network192.1.0.1280.0.0.63area1

  area0authentication

  !

  Router2:

  interfaceethernet0

  ipaddress192.1.0.65255.255.255.192

  !

  interfaceserial0

  ipaddress192.200.10.6255.255.255.252

  ipospfauthentication-keycisco

  !

  routerospf200

  network192.200.10.40.0.0.3area0

  network192.1.0.640.0.0.63area2

  area0authentication

  !

  例2.消息摘要(md5)身份验证:

  Router1:

  interfaceethernet0

  ipaddress192.1.0.129255.255.255.192

  !

  interfaceserial0

  ipaddress192.200.10.5255.255.255.252

  ipospfmessage-digest-key1md5cisco

  !

  routerospf100

  network192.200.10.40.0.0.3area0

  network192.1.0.1280.0.0.63area1

  area0authenticationmessage-digest

  !

  Router2:

  interfaceethernet0

  ipaddress192.1.0.65255.255.255.192

  !

  interfaceserial0

  ipaddress192.200.10.6255.255.255.252

  ipospfmessage-digest-key1md5cisco

  !

  routerospf200

  network192.200.10.40.0.0.3area0

  network192.1.0.640.0.0.63area2

  area0authenticationmessage-digest

  !

  相关调试命令:

  debugipospfadj

  debugipospfevents

  四、重新分配路由

  在实际工作中,我们会遇到使用多个IP路由协议的网络。

为了使整个网络正常地工作,必须在多个路由协议之间进行成功的路由再分配。

  以下列举了OSPF与RIP之间重新分配路由的设置范例:

  Router1的Serial0端口和Router2的Serial0端口运行OSPF,在Router1的Ethernet0端口运行RIP2,Router3运行RIP2,Router2有指向Router4的192.168.2.0/24网的静态路由,Router4使用默认静态路由。

需要在Router1和Router3之间重新分配OSPF和RIP路由,在Router2上重新分配静态路由和直连的路由。

  范例所涉及的命令

任务

命令

重新分配直连的路由

redistributeconnected

重新分配静态路由

redistributestatic

重新分配ospf路由

redistributeospf process-id metricmetric-value

重新分配rip路由

redistributeripmetric metric-value

  Router1:

  interfaceethernet0

  ipaddress192.168.1.1255.255.255.0

  !

  interfaceserial0

  ipaddress192.200.10.5255.255.255.252

  !

  routerospf100

  redistributeripmetric10

  network192.200.10.40.0.0.3area0

  !

  routerrip

  version2

  redistributeospf100metric1

  network192.168.1.0

  !

  Router2:

  interfaceloopback1

  ipaddress192.168.3.2255.255.255.0

  !

  interfaceethernet0

  ipaddress192.168.0.2255.255.255.0

  !

  interfaceserial0

  ipaddress192.200.10.6255.255.255.252

  !

  routerospf200

  redistributeconnectedsubnet

  redistributestaticsubnet

  network192.200.10.40.0.0.3area0

  !

  iproute192.168.2.0255.255.255.0192.168.0.1

  !

  Router3:

  interfaceethernet0

  ipaddress192.168.1.2255.255.255.0

  !

  routerrip

  version2

  network192.168.1.0

  !

  Router4:

  interfaceethernet0

  ipaddress192.168.0.1255.255.255.0

  !

  interfaceethernet1

  ipaddress192.168.2.1255.255.255.0

  !

  iproute0.0.0.00.0.0.0192.168.0.2

  !

  五、IPX协议设置

  IPX协议与IP协议是两种不同的网络层协议,它们的路由协议也不一样,IPX的路由协议不象IP的路由协议那样丰富,所以设置起来比较简单。

但IPX协议在以太网上运行时必须指定封装形式。

  1.有关命令

启动IPX路由

ipxrouting

设置IPX网络及以太网封装形式

ipxnetwork network[encapsulationencapsulation-type]1

指定路由协议,默认为RIP

ipxrouter{eigrpautonomous-system-number|nlsp[tag]|rip}

 

  注:

work范围是1到FFFFFFFD.

  IPX封装类型列表

接口类型

封装类型

IPX帧类型

Ethernet

novell-ether(默认)

arpa

sap

snap 

Ethernet_802.3

Ethernet_II

Ethernet_802.2

Ethernet_Snap

TokenRing

sap(默认)

snap

Token-Ring

Token-Ring_Snap

FDDI

snap(默认)

sap

novell-fddi

Fddi_Snap

Fddi_802.2

Fddi_Raw

  举例:

  在此例中,WAN的IPX网络为3a00,Router1所连接的局域网IPX网络号为2a00,在此局域网有一台Novell服务器,IPX网络号也是2a00,路由器接口的IPX网络号必须与在同一网络的Novell服务器上设置的IPX网络号相同。

路由器通过监听SAP来建立已知的服务及自己的网络地址表,并每60秒发送一次自己的SAP表。

  Router1:

  ipxrouting

  interfaceethernet0

  ipxnetwork2a00encapsulationsap

  !

  interfaceserial0

  ipxnetwork3a00

  !

  ipxroutereigrp10

  network3a00

  network2a00

  !

  Router2:

  ipxrouting

  interfaceethernet0

  ipxnetwork2b00encapsulationsap

  !

  interfaceserial0

  ipxnetwork3a00

  !

  ipxroutereigrp10

  network2b00

  network3a00

  !

  相关调试命令:

  debugipxpacket

  debugipxrouting

  debugipxsap

  debugipxspoof

  debugipxspx

  showipxeigrpinterfaces

  showipxeigrpneighbors

  showipxeigrptopology

  showipxinterface

  showipxroute

  showipxservers

  showipxspx-spoof

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

当前位置:首页 > 小学教育 > 语文

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2