采用多区域邻接配置的OSPF示例-Cisco

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
! interface Ethernet0/2 ip address 192.168.24.2 255.255.255.0 ip ospf network point-to-point ip ospf 1 area 99 end
! interface Loopback0 ip address 10.2.2.2 255.255.255.255 end
! interface Loopback0 ip address 10.4.4.4 255.255.255.255 end
! router ospf 1 router-id 0.0.0.4 !
R5
! interface Ethernet0/1 ip address 192.168.45.5 255.255.255.0 ip ospf network point-to-point ip ospf 1 area 99 end
! interface Ethernet0/1 ip address 192.168.45.4 255.255.255.0 ip ospf network point-to-point ip ospf 1 area 99 end
! interface Ethernet0/2 ip address 192.168.24.4 255.255.255.0 ip ospf network point-to-point ip ospf 1 area 99 end
背景信息
OSPF 链路状态路由协议使用区域的概念,区域是 OSPF 域内的子域。区域内的路由器保留该区域 的完整拓扑信息。默认情况下,接口只能属于一个 OSPF 区域。这不仅会导致网络中的次优路由问 题,而且在网络设计不正确时还会导致其他问题。 在接口上配置多区域邻接时,OSPF 发言者会在该链路上建立多个邻接关系 (ADJ)。多区域接口是 一种用于形成 ADJ 的点对点逻辑接口。本文档描述了一个可以使用多区域 OSPF ADJ 解决问题并 满足网络要求的场景。
q OSPF
q 多区域邻接 思科还建议在尝试本文档中描述的配置之前先满足以下要求:
q 必须在网络中预先配置 OSPF 链路状态路由协议。
q 只有两个 OSPF 发言者使用在其间 OSPF 多区域功能可正常工作的接口。多区域 OSPF 仅适 用于点对点网络类型。
使用的组件
本文档中的信息基于多区域 OSPF。 本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原 始(默认)配置。如果您使用的是真实网络,请确保您已经了解所有命令的潜在影响。
初始配置
本部分介绍 R1 到 R5 的初始配置。
R1
! interface Ethernet0/0 ip address 192.168.12.1 255.255.255.0 end
! interface Loopback0 ip address 10.1.1.1 255.255.255.255 end
配置
网络图
此网络图中使用了网络/OSPF 域。系统要求从路由器 5 (R5) 到 R1 (10.1.1.1) 的流量始终通过 R3。 假设 R3 是网络中的一个防火墙,所有流量都应当通过它进行路由,或者 R3 与 R4 之间的链路带宽
高于 R2 与 R4 之间的链路带宽。在这两种情况下,系统都要求流量从 R5 传递到 R1(10.1.1.1/32 前缀)时必须流经 R3。
! ip route 0.0.0.0 0.0.0.0 192.168.12.2 !
R2
! interface Ethernet0/0 ip address 192.168.12.2 255.255.255.0 end
! interface Ethernet0/1 ip address 192.168.23.2 255.255.255.0 ip ospf network point-to-point ip ospf 1 area 0 end
! router ospf 1 router-id 0.0.0.3 !
R4
! interface Ethernet0/0 ip address 192.168.34.4 255.255.255.0 ip ospf network point-to-point ip ospf 1 area 99 end
! interface Ethernet0/1 ip address 192ຫໍສະໝຸດ Baidu168.23.3 255.255.255.0 ip ospf network point-to-point ip ospf 1 area 0 end
! interface Loopback0 ip address 10.3.3.3 255.255.255.255 end
! ip route 10.1.1.1 255.255.255.255 192.168.12.1
! router ospf 1 router-id 0.0.0.2 redistribute static metric-type 1 subnets !
R3
! interface Ethernet0/0 ip address 192.168.34.3 255.255.255.0 ip ospf network point-to-point ip ospf 1 area 99 end
采用多区域邻接配置的 OSPF 示例
目录
简介 先决条件 要求 使用的组件 背景信息 配置 网络图 初始配置 R1 R2 R3 R4 R5 默认行为 多区域邻接配置 验证 故障排除
简介
本文档介绍如何为多区域邻接配置开放最短路径优先 (OSPF) 链路状态路由协议。
先决条件
要求
Cisco 建议您了解以下主题:
! interface Loopback0 ip address 10.5.5.5 255.255.255.255 end
! router ospf 1 router-id 0.0.0.5 !
默认行为
本部分介绍在完成上文配置时路由器的默认行为。
以下是从 R5 到 10.1.1.1 的跟踪结果。请注意,流量通过 R2,而不是 R3:
相关文档
最新文档