重新分发路由的 OSPF 行为

网络工程 路由 ospf
2022-02-07 22:45:03

我在 PeerA 和 PeerB 之间有 2 条等价路径链路,它的所有接口都参与同一个 OSPF 区域。

当我将静态路由 (172.16.2.0/24) 从 PeerB 重新分配到 A 时,广告路由器是否仅生成 1 x 外部 LSA 并将其从 2 条链路中的 1 条链路发送到接收对等方?或者相同的外部 LSA 将通过两条链路发送到接收对等方?

问这个的原因是因为我在 PeerA 中只看到外部 LSA 的 1 个条目,即使在 RIB 中,有 2 x OE2 路由到重新分配的网络(172.16.2.0)

PeerA#show ip ospf database external adv-router 0.0.0.2

            OSPF Router with ID (0.0.0.1) (Process ID 1)

                Type-5 AS External Link States

  Routing Bit Set on this LSA in topology Base with MTID 0
  LS age: 502
  Options: (No TOS-capability, No DC)
  LS Type: AS External Link
  Link State ID: 172.16.2.0 (External Network Number )
  Advertising Router: 0.0.0.2
  LS Seq Number: 80000003
  Checksum: 0x9B6A
  Length: 36
  Network Mask: /24
        Metric Type: 2 (Larger than any link state path)
        MTID: 0
        Metric: 10
        Forward Address: 0.0.0.0
        External Route Tag: 0

如上所述,OSPF 数据库中仅显示 1 个外部 LSA,但 RIB 中显示了 2 个 OE2 路由。

RouterA#show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      172.16.0.0/24 is subnetted, 3 subnets
O E2     172.16.2.0
           [110/10] via 200.200.200.201, 00:11:04, GigabitEthernet1/0/6
           [110/10] via 100.100.100.101, 00:01:32, GigabitEthernet1/0/5
0个回答
没有发现任何回复~