设为首页收藏本站language 语言切换
查看: 2058|回复: 5
收起左侧

[求助] bgp故障求助

[复制链接]
发表于 2016-7-16 14:31:37 | 显示全部楼层 |阅读模式
10鸿鹄币
请教大家一个问题
1-R1R2ibgp关系,R3R4ibgpR2R3ebgp关系
R1R2R3R4上分别配置了环回地址1.1.1.1/32 2.2.2.2/32 3.3.3.3/32 4.4.4.4/32  
并且R1R2R3R4上将环回以及直连都宣告进了rip
R1R2R3R4Bgp进程中只network了本地的环回地址/32
现在观察到R1上的bgp路由表不停地震荡,如下
不停地震荡
开启debug之后看到
*Jul 16 14:21:11.315: BGP: Applying map to find origin for 1.1.1.1/32
请教一下大家上面这个告警是什么意思,我并没有配置什么map
还有就是R1上的bgp路由表为什么一直在震荡
还有就是经过观察R2R3R4上均有上面的告警出现并且路由表也是震荡,动不动就学不到ebgp的路由
附上配置
R1
R1#show running-config  
Building configuration...
Current configuration : 1152 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
ip audit notify log
ip audit po max-events 100
no ftp-server write-enable
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 12.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
router rip
version 2
network 1.0.0.0
network 12.0.0.0
no auto-summary
!
router bgp 64512
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 64512
neighbor 2.2.2.2 update-source Loopback0
no auto-summary
!
ip classless
no ip http server
no ip http secure-server
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
!
End
R2
R2#show running-config
Building configuration...
Current configuration : 1324 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
ip audit notify log
ip audit po max-events 100
no ftp-server write-enable
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 12.1.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/1
ip address 23.1.1.2 255.255.255.0
duplex auto
speed auto
!
router rip
version 2
network 2.0.0.0
network 12.0.0.0
network 23.0.0.0
no auto-summary
!
router bgp 64512
no synchronization
bgp router-id 2.2.2.2
bgp log-neighbor-changes
network 2.2.2.2 mask 255.255.255.255
neighbor 1.1.1.1 remote-as 64512
neighbor 1.1.1.1 update-source Loopback0
neighbor 1.1.1.1 next-hop-self
neighbor 3.3.3.3 remote-as 65535
neighbor 3.3.3.3 ebgp-multihop 255
neighbor 3.3.3.3 update-source Loopback0
no auto-summary
!
ip classless
no ip http server
no ip http secure-server
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
!
end
R2#
R3
R3#show running-config
Building configuration...
Current configuration : 1324 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
ip audit notify log
ip audit po max-events 100
no ftp-server write-enable
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 34.1.1.3 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/1
ip address 23.1.1.3 255.255.255.0
duplex auto
speed auto
!
router rip
version 2
network 3.0.0.0
network 23.0.0.0
network 34.0.0.0
no auto-summary
!
router bgp 65535
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
network 3.3.3.3 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 64512
neighbor 2.2.2.2 ebgp-multihop 255
neighbor 2.2.2.2 update-source Loopback0
neighbor 4.4.4.4 remote-as 65535
neighbor 4.4.4.4 update-source Loopback0
neighbor 4.4.4.4 next-hop-self
no auto-summary
!
ip classless
no ip http server
no ip http secure-server
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
!
end
R3#
R4
R4#show run
R4#show running-config
Building configuration...
Current configuration : 1152 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
ip audit notify log
ip audit po max-events 100
no ftp-server write-enable
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 34.1.1.4 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
router rip
version 2
network 4.0.0.0
network 34.0.0.0
no auto-summary
!
router bgp 65535
no synchronization
bgp router-id 4.4.4.4
bgp log-neighbor-changes
network 4.4.4.4 mask 255.255.255.255
neighbor 3.3.3.3 remote-as 65535
neighbor 3.3.3.3 update-source Loopback0
no auto-summary
!
ip classless
no ip http server
no ip http secure-server
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
!
end
111.png

最佳答案

查看完整内容

你不应该在bgp里面network 本地的loopback接口,这个涉及到起源属性,建议只在rip宣告loopback口用于建立bgp邻居即可,如果还想通过bgp传递路由,可以在bgp里面network其他网段的路由或者接口,比如你再r1上创建一个loop1,配置11.11.11.11 255.255.255.255,然后只在bgp里面network,即可传递给r4,并且也不会报你之前的debug错误。
发表于 2016-7-16 14:31:38 | 显示全部楼层
你不应该在bgp里面network 本地的loopback接口,这个涉及到起源属性,建议只在rip宣告loopback口用于建立bgp邻居即可,如果还想通过bgp传递路由,可以在bgp里面network其他网段的路由或者接口,比如你再r1上创建一个loop1,配置11.11.11.11 255.255.255.255,然后只在bgp里面network,即可传递给r4,并且也不会报你之前的debug错误。
沙发 2016-7-16 14:31:38 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-7-16 14:57:37 | 显示全部楼层
有大神吗?
板凳 2016-7-16 14:57:37 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-7-16 15:31:45 | 显示全部楼层
only皇孑 发表于 2016-7-16 15:27
你不应该在bgp里面network 本地的loopback接口,这个涉及到起源属性,建议只在rip宣告loopback口用于建立bg ...

“”你不应该在bgp里面network 本地的loopback接口,这个涉及到起源属性“”这个可以再解释下吗?
地板 2016-7-16 15:31:45 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-7-16 15:43:15 | 显示全部楼层
only皇孑 发表于 2016-7-16 15:27
你不应该在bgp里面network 本地的loopback接口,这个涉及到起源属性,建议只在rip宣告loopback口用于建立bg ...

没效果
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!         
interface Loopback1
ip address 11.11.11.11 255.255.255.255
!         
interface FastEthernet0/0
no ip address
shutdown
duplex half
!         
interface FastEthernet1/0
ip address 12.1.1.1 255.255.255.0
duplex auto
speed auto
!         
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!         
router rip
version 2
network 1.0.0.0
network 12.0.0.0
no auto-summary
!         
router bgp 64512
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 11.11.11.11 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 64512
neighbor 2.2.2.2 update-source Loopback0
no auto-summary
!         
ip classless
no ip http server
no ip http secure-server
!
!
!
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login   
!
!
!
end

R1#           
R1#
R1#
R1#
R1#de                    
R1#debug
R1#debug bg
R1#debug bgp
BGP debugging is on
R1#
*Jul 16 15:38:12.691: BGP: Applying map to find origin for 11.11.11.11/32
R1#
*Jul 16 15:39:12.715: BGP: Applying map to find origin for 11.11.11.11/32
R1#
*Jul 16 15:40:12.719: BGP: Applying map to find origin for 11.11.11.11/32
R1#
*Jul 16 15:41:12.739: BGP: Applying map to find origin for 11.11.11.11/32
R1#
5# 2016-7-16 15:43:15 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-7-16 18:05:01 | 显示全部楼层
only皇孑 发表于 2016-7-16 15:27
你不应该在bgp里面network 本地的loopback接口,这个涉及到起源属性,建议只在rip宣告loopback口用于建立bg ...

这个验证过了是由于BGP路由表震荡引起的,EBGP建立邻居如果要使用环回地址的话,必须要手工写到达对方环回地址的路由,否则的话由于EBGP AD20小于RIP的120,导致了BGP路由震荡的出现,已经解决
不过还是要感谢你
6# 2016-7-16 18:05:01 回复 收起回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-26 17:04 , Processed in 0.154546 second(s), 30 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表