首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Quagga eBGP路由广告不会传播到iBGP会话中。

Quagga eBGP路由广告不会传播到iBGP会话中。
EN

Network Engineering用户
提问于 2015-11-26 21:13:25
回答 2查看 2.2K关注 0票数 3

我正在尝试这样做:通过多个本地路由器双归属于一个ISP的负载分担。唯一的区别是ISP发送的是一个完整的BGP表,而不是默认的网关。我有一个问题,R101不会为R102的外部路由做广告,这会导致R 102‘S上游节点断开时出现问题,而R102失去了所有的路由。

My配置:

R101运行配置:

代码语言:javascript
复制
router bgp 6001
 no synchronization
 bgp router-id 1.1.2.253
 bgp log-neighbor-changes
 network 1.1.1.0
 network 1.1.2.0
 neighbor 2.1.1.249 remote-as 6000
 neighbor 2.1.1.249 soft-reconfiguration inbound
 neighbor 2.1.1.249 prefix-list 3 in
 neighbor 2.1.1.249 route-map R1-DC-MAP out
 neighbor 1.1.2.254 remote-as 6001
 neighbor 1.1.2.254 next-hop-self
 neighbor 1.1.2.254 soft-reconfiguration inbound
 maximum-paths 2
 no auto-summary
!
ip prefix-list 1 seq 5 permit 1.1.1.0/24
ip prefix-list 2 seq 5 permit 1.1.2.0/24
ip prefix-list 3 seq 5 deny 1.1.1.0/23
ip prefix-list 3 seq 10 permit any
!
route-map R1-DC-MAP permit 10
 match ip address prefix-list 1
 set as-path prepend 6001 6001 6001
!
route-map R1-DC-MAP permit 20
 match ip address prefix-list 2
!
route-map R1-DC-MAP deny 200

R102运行配置:

代码语言:javascript
复制
router bgp 6001
 no synchronization
 bgp router-id 1.1.2.254
 bgp log-neighbor-changes
 network 1.1.1.0
 network 1.1.2.0
 neighbor 3.1.1.25 remote-as 6000
 neighbor 3.1.1.25 soft-reconfiguration inbound
 neighbor 3.1.1.25 prefix-list 3 in
 neighbor 3.1.1.25 route-map R2-SIX-MAP out
 neighbor 1.1.2.253 remote-as 6001
 neighbor 1.1.2.253 next-hop-self
 neighbor 1.1.2.253 soft-reconfiguration inbound
 maximum-paths 2
 no auto-summary
!
ip prefix-list 1 seq 5 permit 1.1.2.0/24
ip prefix-list 2 seq 5 permit 1.1.1.0/24
ip prefix-list 3 seq 5 deny 1.1.1.0/23
ip prefix-list 3 seq 10 permit any
!
route-map R2-SIX-MAP permit 10
 match ip address prefix-list 1
 set as-path prepend 6001 6001 6001
!
route-map R2-SIX-MAP permit 20
 match ip address prefix-list 2
!
route-map R2-SIX-MAP deny 30
 match ip address 1.1.1.0/23
!
route-map R2-SIX-MAP deny 200
!
ip forwarding
!
line vty
!
end

R101接口列表:

代码语言:javascript
复制
Interface vlan3 is up, line protocol detection is disabled
  inet 1.1.1.253/30 broadcast 1.1.1.255

Interface vlan4 is up, line protocol detection is disabled
  inet 2.1.1.253/29 broadcast 2.1.1.255

Interface vlan101 is up, line protocol detection is disabled
  inet 1.1.1.61/26 broadcast 1.1.1.63
  inet 1.1.1.1/32 broadcast 1.1.1.1

Interface vlan106 is up, line protocol detection is disabled
  inet 1.1.1.125/27 broadcast 1.1.1.127
  inet 1.1.1.97/32 broadcast 1.1.1.97

Interface vlan107 is up, line protocol detection is disabled
  inet 1.1.1.141/28 broadcast 1.1.1.143
  inet 1.1.1.129/28 broadcast 1.1.1.143 secondary

Interface vlan109 is up, line protocol detection is disabled
  inet 1.1.1.93/27 broadcast 1.1.1.95
  inet 1.1.1.65/32 broadcast 1.1.1.65

R102接口配置:

代码语言:javascript
复制
Interface vlan3 is up, line protocol detection is disabled
  inet 1.1.2.254/30 broadcast 1.1.2.255

Interface vlan4 is up, line protocol detection is disabled
  inet 3.1.1.29/29 broadcast 3.1.1.31

Interface vlan101 is up, line protocol detection is disabled
  inet 1.1.2.62/26 broadcast 1.1.2.63
  inet 1.1.2.1/32 broadcast 1.1.2.1

Interface vlan106 is up, line protocol detection is disabled
  inet 1.1.2.126/27 broadcast 1.1.2.127
  inet 1.1.2.97/32 broadcast 1.1.2.97

Interface vlan107 is up, line protocol detection is disabled
  inet 1.1.2.142/28 broadcast 1.1.2.143
  inet 1.1.2.129/28 broadcast 1.1.2.143 secondary

Interface vlan109 is up, line protocol detection is disabled
  inet 1.1.2.94/27 broadcast 1.1.2.95
  inet 1.1.2.65/32 broadcast 1.1.2.65

广告在R101上根本不起作用,但我可以看到来自R102的广告。与上游ISP BGP同行的通信如预期的那样工作,我正在从他们那里获得完整的BGP。

R101广告:

代码语言:javascript
复制
BGP table version is 0, local router ID is 1.1.2.253
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
              i internal, r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path

接收

R101 -路由:

代码语言:javascript
复制
BGP table version is 0, local router ID is 1.1.2.253
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
              i internal, r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 1.1.1.0     1.1.2.254           0    100      0 i
*> 1.1.2.0     1.1.2.254           0    100      0 i

Total number of prefixes 2

有没有人有什么想法可能出了什么问题?

EN

回答 2

Network Engineering用户

发布于 2017-02-19 07:40:47

BGP路由器配置中的网络语句:

代码语言:javascript
复制
network 1.1.1.0
network 1.1.2.0

不匹配实际的网络地址,其范围从/26/32。除非您使用aggregate-address命令,否则BGP不会为与路由表中的内容不完全匹配的网络做广告。BGP中的网络语句将不会构成不存在的路由。

票数 1
EN

Network Engineering用户

发布于 2015-11-27 00:05:55

我猜问题在于1.1.1.0/24和1.1.2.0/24的支持路线。

要宣布一个前缀,你需要一个肋骨的辅助路线。所以,你应该有1.1.1.0/24和1.1.2.0/24的肋骨,才能宣布它们。

我假设您不能更改SVI的IP地址,因此您可能可以在网络的南部或Null0上输入两条Null0路由。然后BGP网络命令将生效。

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

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

复制
相关文章

相似问题

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