OSPF 聚合和通告

网络工程 思科 路由器 思科-ios ospf
2022-03-05 08:33:26

在我的 Cisco 路由器中,我配置了以下 OSPF 接口:

   interface eth1/0
      description link to net0 10.19.0.0/24 area 0 
      ip address 10.19.0.1 255.255.255.0
      ip ospf authentication message-digest
      ip ospf message-digest-key 1 md5 appropriate-password
      ip ospf cost 5000

interface eth1/1
      description link to p2p2 10.19.1.192/30 area 1 
      ip address 10.19.1.193 255.255.255.252
      ip ospf authentication message-digest
      ip ospf message-digest-key 1 md5 appropriate-password
      ip ospf cost 5000

    interface eth1/2
      description link to net3 10.19.2.0/24 area 0 
      ip address 10.19.2.1 255.255.255.0
      ip helper-address 10.19.0.20
      ip ospf authentication message-digest
      ip ospf message-digest-key 1 md5 appropriate-password
      ip ospf cost 5000

然后我添加了以下接口

interface eth1/3
  description link to newnet4 10.19.16.0/23 area 2
  ip address 10.19.16.1 255.255.254.0
      ip helper-address 10.19.0.20
  ip ospf authentication message-digest
      ip ospf message-digest-key 1 md5 appropriate-password
  ip ospf cost 5000

interface eth1/4
  description link to newnet5 10.19.18.0/23 area 2
  ip address 10.19.18.1 255.255.254.0
      ip helper-address 10.19.0.20
  ip ospf authentication message-digest
      ip ospf message-digest-key 1 md5 appropriate-password
  ip ospf cost 5000

我想将 eth1/3 和 eth1/4 放入区域 2 并将区域 2 的公告汇总到核心,只为这两个接口宣传适当的 /22。

我已将其配置如下,但我无法获得预期的行为:

router ospf 1
    router-id 10.19.1.193
    log-adjacency-changes 

    network 10.19.1.0  0.0.0.255 area 0
    network 10.19.1.192  0.0.0.3  area 1
    network 10.19.2.0  0.0.0.255  area 0

    network 10.19.16.0  0.0.1.255 area 2
    network 10.19.18.0  0.0.1.255 area 2

    area 2   range 10.19.16.0  0.0.3.255

谁能告诉我我的配置有什么问题?

1个回答

谁能告诉我我的配置有什么问题

简单的。您使用了通配符而不是网络掩码此外,您没有在路由过程中启用身份验证。

[思科参考:OSPF 设计指南]