URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID6
Нить номер: 23378
[ Назад ]

Исходное сообщение
"Cisco3550 не передает по iBGP маршруты полученные по eBGP"

Отправлено Garik83 , 15-Дек-11 06:47 
Имеем два L3 коммутатора cisco3550 и edge-core-4626-sfp. Оба связаны маежду собой по iBGP.
Необходимо принять по eBGP на cisco3550 маршруты от местного городского IX и отдать их по iBGP на edge-core. Edge-core маршрутизирует пользователей локалки + на него построены eBGP сессии с пиринг-партнерами.

В итоге edge-core без проблем реанонсит по iBGP на циску все маршруты полученные по eBGP, а циска делать тоже самое с маршрутами полученными по eBGP из городского-IX отказывается.

ip cisco3550 123.5.99.229
ip edge-core 123.5.99.230

т.е. на эджкоре:

ES4626-SFP#show ip bgp neighbors 123.5.99.229 advertised-routes
BGP table version is 1530, local router ID is 123.5.99.230
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
.....
*>i91.194.56.0/24   123.5.99.230                  95      0 43110 i
*>i91.194.57.0/24   123.5.99.230                  95      0 43110 i
*>i91.204.132.0/22  123.5.99.230                  95      0 47513 i
*>i91.212.214.0/24  123.5.99.230            0     95      0 49359 i
*>i91.214.248.0/22  123.5.99.230            0     95      0 48915 i
*>i91.214.248.0/23  123.5.99.230            0     95      0 48915 i
*>i91.222.180.0/22  123.5.99.230            1     95      0 49359 i
.......
Total number of prefixes 63

ES4626-SFP#show ip bgp neighbors 123.5.99.229 received-routes
BGP table version is 1533, local router ID is 123.5.99.230
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*>i93.10.56.2/30
                    123.5.99.229            0    100      0 ?
*>i123.5.99.224/27 123.5.99.229            0    100      0 ?

Total number of prefixes 2

Получены только маршруты "connected" c cisco3550. Маршрутов городского IX'а нет.

На cisco3550:
kh-ix#show ip bgp neighbors 123.5.99.230 received-routes
BGP table version is 68, local router ID is 123.5.99.229
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
.......
*>i46.164.142.152/29
                    123.5.99.230           20    100      0 ?
*>i46.172.64.0/19   123.5.99.230                  95      0 43110 i
*>i80.73.0.0/20     123.5.99.230            0     95      0 13177 i
*>i80.77.40.0/22    123.5.99.230            0     95      0 48915 i
*>i80.77.40.0/21    123.5.99.230            0     95      0 48915 i
*>i91.193.172.0/23  123.5.99.230            0     95      0 13177 i
*>i91.193.172.0/22  123.5.99.230            0     95      0 13177 i
*>i91.193.175.0/24  123.5.99.230            0     95      0 13177 i
*>i91.194.56.0/24   123.5.99.230                  95      0 43110 i
.........
Total number of prefixes 63

kh-ix#show ip bgp neighbors 123.5.99.230 advertised-routes
BGP table version is 68, local router ID is 123.5.99.229
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 93.10.56.2/30
                    0.0.0.0                  0         32768 ?
*> 123.5.99.224/27 0.0.0.0                  0         32768 ?

Total number of prefixes 2

Снова таки, циска почему-то анонсит по iBGP только маршруты "connected".

Вот данные c cisco3550 по анонсам префиксов eBGP сессии с городским IX. Тут все ок.

kh-ix#show ip bgp neighbors 93.10.56.3 advertised-routes
BGP table version is 68, local router ID is 123.5.99.229
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*>i10.36.0.0/16     123.5.99.230                 100      0 i
*>i10.55.0.0/22     123.5.99.230                  95      0 65505 i
*>i31.129.224.0/19  123.5.99.230                 100      0 i
*>i213.5.192.0/21   123.5.99.230                 100      0 i

Total number of prefixes 4

kh-ix#show ip bgp neighbors 93.10.56.3 received-routes
BGP table version is 68, local router ID is 123.5.99.229
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
.......
*  82.118.16.0/21   93.10.56.3                         0 12388 15626 i
*  85.90.192.0/19   93.10.56.3                         0 12388 34248 i
*  89.22.6.0/24     93.10.56.3                         0 12388 12530 57031 i
*  89.162.136.0/21  93.10.56.3                         0 12388 12530 i
*  91.194.56.0/24   93.10.56.3                         0 12388 43110 i
*  91.194.57.0/24   93.10.56.3                         0 12388 43110 i
*  91.196.96.0/22   93.10.56.3                         0 12388 43109 i
*  91.198.140.0/24  93.10.56.3                         0 12388 12530 43742 43742 43742 43742 i
*  91.199.182.0/24  93.10.56.3                         0 12388 21437 44596 i
*  91.201.180.0/22  93.10.56.3                         0 12388 31072 44383 i
......
Total number of prefixes 135

kh-ix#show ip bgp su
BGP router identifier 123.5.99.229, local AS number 10230
BGP table version is 68, main routing table version 68
181 network entries using 21177 bytes of memory
200 path entries using 10400 bytes of memory
91/19 BGP path/bestpath attribute entries using 12740 bytes of memory
73 BGP AS-PATH entries using 1800 bytes of memory
2 BGP community entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 46165 total bytes of memory
135 received paths for inbound soft reconfiguration
BGP activity 522/341 prefixes, 1083/883 paths, scan interval 60 secs

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
93.10.56.3  4 12388     329     167       68    0    0 00:37:23        0
123.5.99.230   4 10230    1032     632       68    0    0 00:37:20       63


конфиг router bgp с cisco3550:
!
router bgp 10230
no synchronization
bgp log-neighbor-changes
redistribute connected
neighbor 93.10.56.3 remote-as 12388
neighbor 93.10.56.3 description CITY-IX
neighbor 93.10.56.3 soft-reconfiguration inbound
neighbor 93.10.56.3 route-map eBGP-IMPORT-CITY-IX in
neighbor 93.10.56.3 route-map eBGP-EXPORT-CITY-IX out
neighbor 93.10.56.3 maximum-prefix 200
neighbor 123.5.99.230 remote-as 10230
neighbor 123.5.99.230 description edge-core-4626-sfp
neighbor 123.5.99.230 next-hop-self
neighbor 123.5.99.230 soft-reconfiguration inbound
neighbor 123.5.99.230 maximum-prefix 300
no auto-summary
!

конфиг edge-core:
!
router bgp 10230
network 10.36.0.0/16
network 31.129.224.0/19
network 213.5.192.0/21
redistribute ospf
neighbor 77.150.0.1 remote-as 13177
neighbor 77.150.0.1 description Piring-partner X
neighbor 77.150.0.1 soft-reconfiguration inbound
neighbor 77.150.0.1 maximum-prefix 200
neighbor 77.150.0.1 route-map eBGP-IMPORT-PARTNER-X in
neighbor 77.150.0.1 route-map eBGP-EXPORT-PARTNER-X out
........
neighbor 123.5.99.229 remote-as 10230
neighbor 123.5.99.229 description cisco-3550
neighbor 123.5.99.229 next-hop-self
neighbor 123.5.99.229 soft-reconfiguration inbound
neighbor 123.5.99.229 maximum-prefix 200
........

Подскажите куда копать?
Как заставить циску отдать префиксы через iBGP полученные по eBGP?
Спасибо.


Содержание

Сообщения в этом обсуждении
"Cisco3550 не передает по iBGP маршруты полученные по eBGP"
Отправлено Helper , 15-Дек-11 10:06 
! добавить на 3550
!
router bgp 10230
  neighbor 123.5.99.230 route-reflector-client
!

"Cisco3550 не передает по iBGP маршруты полученные по eBGP"
Отправлено Helper , 15-Дек-11 10:11 
> Подскажите куда копать?
> Как заставить циску отдать префиксы через iBGP полученные по eBGP?

разберитесь еще, почему внешние маршруты на 3550 в таблицу роутинга не попадают

>[оверквотинг удален]
>*  82.118.16.0/21   93.10.56.3                         0 12388 15626 i
>*  85.90.192.0/19   93.10.56.3                         0 12388 34248 i
>*  89.22.6.0/24     93.10.56.3                         0 12388 12530 57031 i
>*  89.162.136.0/21  93.10.56.3                         0 12388 12530 i
>*  91.194.56.0/24   93.10.56.3                         0 12388 43110 i
>*  91.194.57.0/24   93.10.56.3                         0 12388 43110 i
>*  91.196.96.0/22   93.10.56.3                         0 12388 43109 i
>*  91.198.140.0/24  93.10.56.3                         0 12388 12530 43742 43742 43742 43742 i
>*  91.199.182.0/24  93.10.56.3                         0 12388 21437 44596 i
>*  91.201.180.0/22  93.10.56.3                         0 12388 31072 44383 i


"Cisco3550 не передает по iBGP маршруты полученные по eBGP"
Отправлено Garik83 , 15-Дек-11 22:13 
>[оверквотинг удален]
>>*  82.118.16.0/21   93.10.56.3                         0 12388 15626 i
>>*  85.90.192.0/19   93.10.56.3                         0 12388 34248 i
>>*  89.22.6.0/24     93.10.56.3                         0 12388 12530 57031 i
>>*  89.162.136.0/21  93.10.56.3                         0 12388 12530 i
>>*  91.194.56.0/24   93.10.56.3                         0 12388 43110 i
>>*  91.194.57.0/24   93.10.56.3                         0 12388 43110 i
>>*  91.196.96.0/22   93.10.56.3                         0 12388 43109 i
>>*  91.198.140.0/24  93.10.56.3                         0 12388 12530 43742 43742 43742 43742 i
>>*  91.199.182.0/24  93.10.56.3                         0 12388 21437 44596 i
>>*  91.201.180.0/22  93.10.56.3                         0 12388 31072 44383 i

спасибо! ключевой момент.
Была ошибка в роутмапе eBGP-IMPORT-CITY-IX из-за чего префиксы не попадали в таблицу маршрутизации и соответственно не анонсились дальше.

P.S. Все работает без использования опции route-reflector-client.