首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OSPF路由没有广告。

OSPF路由没有广告。
EN

Network Engineering用户
提问于 2022-06-23 06:06:49
回答 1查看 232关注 0票数 2

路由器与ASBR2连接到区域0和10,ASBR1连接到区域0和20,R1's路由表中没有路由入口,帮助我走出

代码语言:javascript
复制
R1#sh run
Building configuration...

Current configuration : 1080 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
!
! 
!
!
ip cef
no ipv6 cef 
! 
!
! 
! 
license udi pid CISCO2911/K9 sn FTX1524NHN4-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback1
ip address 172.16.10.1 255.255.255.255  
! 
interface Loopback2
ip address 172.31.10.1 255.255.255.255
!
interface Loopback100
no ip address 
!
interface GigabitEthernet0/0
ip address 11.10.10.1 255.255.255.252
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 12.10.10.1 255.255.255.252
duplex auto
speed auto 
!
interface GigabitEthernet0/2
no ip address
duplex auto
speed auto
shutdown 
!
interface Vlan1
no ip address
shutdown
!
router ospf 100
router-id 1.1.1.1
log-adjacency-changes
network 172.16.10.0 0.0.0.0 area 0
network 172.31.10.0 0.0.0.0 area 0
network 11.10.10.0 0.0.0.3 area 0
network 12.10.10.0 0.0.0.3 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end



ASBR1#sh run
Building configuration...

Current configuration : 1080 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
!
! 
!
!
ip cef
no ipv6 cef 
! 
!
! 
! 
license udi pid CISCO2911/K9 sn FTX1524NHN4-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 12.10.10.2 255.255.255.252
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 192.168.20.1 255.255.255.0
duplex auto
speed auto 
!
interface GigabitEthernet0/2
no ip address
duplex auto
speed auto
shutdown 
!
interface Vlan1
no ip address
shutdown
!
router ospf 100
router-id 2.2.2.2
log-adjacency-changes
network 192.168.20.0 0.0.0.255 area 20
network 12.10.10.0 0.0.0.3 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end

R1#sh run
Building configuration...

Current configuration : 1080 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
!
! 
!
!
ip cef
no ipv6 cef 
! 
!
! 
! 
license udi pid CISCO2911/K9 sn FTX1524NHN4-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback1
ip address 172.16.10.1 255.255.255.255  
! 
interface Loopback2
ip address 172.31.10.1 255.255.255.255
!
interface Loopback100
no ip address 
!
interface GigabitEthernet0/0
ip address 11.10.10.2 255.255.255.252
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 192.168.10.1 255.255.255.0
duplex auto
speed auto 
!
interface GigabitEthernet0/2
no ip address
duplex auto
speed auto
shutdown 
!
interface Vlan1
no ip address
shutdown
!
router ospf 100
router-id 3.3.3.3
log-adjacency-changes
network 11.10.10.0 0.0.0.3 area 0
network 192.168.10.0 0.0.0.255 area 10
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
EN

回答 1

Network Engineering用户

发布于 2022-06-23 12:48:44

OSPF将不构成地址,因此两个网络语句:

代码语言:javascript
复制
network 172.16.10.0 0.0.0.0 area 0
network 172.31.10.0 0.0.0.0 area 0

正在尝试使用路由器上不存在的接口(172.16.10.0172.31.10.0)。您的回环是172.16.10.1172.31.10.1

请记住,OSPF网络语句用于告诉OSPF哪些接口正在参与OSPF过程,而不是广告哪些网络。

您可以采取多种方法,例如:

代码语言:javascript
复制
network 172.16.10.1 0.0.0.0 area 0
network 172.31.10.1 0.0.0.0 area 0
network 11.10.10.0 0.0.0.3 area 0
network 12.10.10.0 0.0.0.3 area 0

-或者-

代码语言:javascript
复制
network 172.0.0.0 0.255.255.255 area 0
network 11.10.10.0 0.0.0.3 area 0
network 12.10.10.0 0.0.0.3 area 0

-or甚至类似于-

代码语言:javascript
复制
network 0.0.0.0 255.255.255.255 area 0

这将匹配所有的接口。

由于您没有在任何路由器上将路由重新分配到OSPF,所以您实际上没有ASBR,这是一个将外部路由重新分配到OSPF的OSPF路由器。ABR将不同区域连接到区域0,而ASBR将外部路由重新分配到OSPF (E1或E2路由)。

票数 2
EN
页面原文内容由Network Engineering提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://networkengineering.stackexchange.com/questions/79218

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档