BGP Route Reflector. Практика.
2021.07.05. Kurapov Alexey.
BGP Route
Reflector
Route reflectors (RR) позволяет:
·
избежать необходимости создания полно-связной топологии между всеми iBGP-соседями,
·
всем iBGP-соседям выучить все iBGP-маршруты в AS,
· предотвратить образование петель.
Рассмотрим топологию:
1. Первоначально, без Route Reflector-а
Router_1#sh
ip bgp
BGP table version is 8, local router ID is 1.1.1.1
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
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*>i2.2.2.2/32 12.12.12.2 0 100 0 i
*>i3.3.3.3/32 13.13.13.3 0 100 0 i
*> 4.4.4.4/32 14.14.14.4 0 0 123 i
*>i5.5.5.5/32 15.15.15.5 0 100 0 i
б. R1
рассказывает iBGP соседям
только о своих сетях и сетях, полученных от eBGP соседей:
BGP table version is 8, local router ID is 1.1.1.1
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
*>
1.1.1.1/32 0.0.0.0 0 32768 i
*> 4.4.4.4/32 14.14.14.4 0 0 123 i
в. без Route Reflector R2, R3, R5 знают только про сети R1 и R4, но не знают про сети друг друга, т.к. топология не Full-Mesh.
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
15.15.15.1 4 65100 19 18 3 0 0 00:13:28 2
BGP table version is 3, local router ID is 5.5.5.5
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
*>i1.1.1.1/32 15.15.15.1 0 100 0 i
* i4.4.4.4/32 14.14.14.4 0 100 0 123 i
*> 5.5.5.5/32 0.0.0.0 0 32768 i
Router_1#sh run | s bgp
neighbor 12.12.12.2
route-reflector-client
neighbor 13.13.13.3 route-reflector-client
neighbor 15.15.15.5 route-reflector-client
а. Теперь R1 как Route Reflector рассказывает iBGP соседям
о всех сетях, полученных от iBGP соседей:
Но если RR Client-ам R1 рассказывает обо всех сетях, то не RR Client-ам, только о сетях полученных от RR Client-ов и eBGP соседей.
Про сети узнанные RR от не RR Client-ов он не рассказывает не RR Client-ам.
В нашем случае R5 не является RR Client-ом и RR R1 не рассказывает ему о сети 5.5.5.5:
Список RR
Client-ов:
б. Также R1
указывает, что получил данные о подсети от RR-client:
в. R2, R3, R5 знают
про сети друг друга, без топологии Full-Mesh.
Update-groups на R1:
Конфигурация:
RR.
!
interface Loopback0
ip
address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip
address 12.12.12.1 255.255.255.240
duplex auto
speed auto
!
interface FastEthernet0/1
ip
address 13.13.13.1 255.255.255.240
duplex auto
speed auto
!
interface FastEthernet1/0
ip
address 14.14.14.1 255.255.255.240
duplex auto
speed auto
!
interface FastEthernet2/0
ip
address 15.15.15.1 255.255.255.240
duplex auto
speed auto
!
router bgp 65100
no
synchronization
bgp
log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
neighbor 12.12.12.2 remote-as 65100
neighbor 12.12.12.2 route-reflector-client
neighbor 13.13.13.3 remote-as 65100
neighbor 13.13.13.3 route-reflector-client
neighbor 14.14.14.4 remote-as 123
neighbor 15.15.15.5 remote-as 65100
no
auto-summary
!
Комментарии
Отправить комментарий