« Route Reflector » permet de répondre à une topologie du type « hub and spoke » ou non « flull-mesh » au sien du même AS
Configuration initiale
R1 est voisin de de R2 et R3
Serial0/0.102 10.1.12.1 YES manual up up Serial0/0.103 10.1.13.1 YES manual up up Loopback0 1.1.1.1 YES manual up up router rip version 2 network 10.0.0.0 no auto-summary ! router bgp 100 no synchronization bgp log-neighbor-changes network 1.0.0.0 neighbor 10.1.12.2 remote-as 100 neighbor 10.1.13.3 remote-as 100 no auto-summary
R2 est le voisin de R1
Serial0/0.201 10.1.12.2 YES manual up up Loopback0 2.2.2.2 YES manual up up router rip version 2 network 10.0.0.0 no auto-summary ! router bgp 100 no synchronization bgp log-neighbor-changes network 2.0.0.0 neighbor 10.1.12.1 remote-as 100 no auto-summary
R3 est le voisin de R1
Serial1/0.301 10.1.13.3 YES manual up up
Loopback0 3.3.3.3 YES manual up up
router rip
version 2
network 10.0.0.0
no auto-summary
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network 3.0.0.0
neighbor 10.1.13.1 remote-as 100
no auto-summary
Vérifications
R2 et R3 n’ont pas l’ensemble des prefix de l’AS
R1#show ip bgp Network Next Hop Metric LocPrf Weight Path *> 1.0.0.0 0.0.0.0 0 32768 i *>i2.0.0.0 10.1.12.2 0 100 0 i *>i3.0.0.0 10.1.13.3 0 100 0 i R2#show ip bgp Network Next Hop Metric LocPrf Weight Path *>i1.0.0.0 10.1.12.1 0 100 0 i *> 2.0.0.0 0.0.0.0 0 32768 i R3#show ip bgp Network Next Hop Metric LocPrf Weight Path *>i1.0.0.0 10.1.13.1 0 100 0 i *> 3.0.0.0 0.0.0.0 0 32768 i
Configuration « Route-Reflector »
R1#conf t R1(config)#router bgp 100 R1(config-router)#neighbor 10.1.12.2 route-reflector-client R1(config-router)#neighbor 10.1.12.2 route-reflector-client
R2#show ip bgp Network Next Hop Metric LocPrf Weight Path *>i1.0.0.0 10.1.12.1 0 100 0 i *> 2.0.0.0 0.0.0.0 0 32768 i *>i3.0.0.0 10.1.13.3 0 100 0 i R3#show ip bgp Network Next Hop Metric LocPrf Weight Path *>i1.0.0.0 10.1.13.1 0 100 0 i *>i2.0.0.0 10.1.12.2 0 100 0 i *> 3.0.0.0 0.0.0.0 0 32768 i
Configuration « Double Route-Reflector »
Dans une configuration simple (comme plus haut),
R2 et R3 sont les « clients » de R1 qui devient donc critique.
Pour éviter ce SPOF , il est possible de faire un « double reflector »
- R2 et R3 sont les clients de R1
- R2 et R3 sont aussi les clients de R4
Configuration à 6 routeurs
R2 et R3 sont « route-reflector-client » de R1
R1
router bgp 100
no synchronization
bgp log-neighbor-changes
network 1.0.0.0
neighbor 10.1.12.2 remote-as 100
neighbor 10.1.12.2 route-reflector-client
neighbor 10.1.13.3 remote-as 100
neighbor 10.1.13.3 route-reflector-client
neighbor 10.1.14.4 remote-as 100
no auto-summary
R5 et R6 sont « route-reflector-client » de R4
R4
router bgp 100
no synchronization
bgp log-neighbor-changes
network 4.0.0.0
neighbor 10.1.14.1 remote-as 100
neighbor 10.1.45.5 remote-as 100
neighbor 10.1.45.5 route-reflector-client
neighbor 10.1.46.6 remote-as 100
neighbor 10.1.46.6 route-reflector-client
no auto-summary
Vérifications
« cluster list » indique le « serveur » des route-reflector-client
R1#sh ip bgp BGP table version is 19, 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.0.0.0 0.0.0.0 0 32768 i *>i2.0.0.0 10.1.12.2 0 100 0 i *>i3.0.0.0 10.1.13.3 0 100 0 i *>i4.0.0.0 10.1.14.4 0 100 0 i *>i5.0.0.0 10.1.45.5 0 100 0 i *>i6.0.0.0 10.1.46.6 0 100 0 i
R1#sh ip bgp 6.0.0.0 BGP routing table entry for 6.0.0.0/8, version 18 Paths: (1 available, best #1, table Default-IP-Routing-Table) Advertised to update-groups: 2 Local 10.1.46.6 (metric 1) from 10.1.14.4 (4.4.4.4) Origin IGP, metric 0, localpref 100, valid, internal, best Originator: 6.6.6.6, Cluster list: 4.4.4.4
R3#show ip bgp BGP table version is 19, local router ID is 3.3.3.3 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.0.0.0 10.1.13.1 0 100 0 i *>i2.0.0.0 10.1.12.2 0 100 0 i *> 3.0.0.0 0.0.0.0 0 32768 i *>i4.0.0.0 10.1.14.4 0 100 0 i *>i5.0.0.0 10.1.45.5 0 100 0 i *>i6.0.0.0 10.1.46.6 0 100 0 i
R3#show ip bgp 1.0.0.0 BGP routing table entry for 1.0.0.0/8, version 16 Paths: (1 available, best #1, table Default-IP-Routing-Table) Not advertised to any peer Local 10.1.13.1 from 10.1.13.1 (1.1.1.1) Origin IGP, metric 0, localpref 100, valid, internal, best R3#show ip bgp 3.0.0.0 BGP routing table entry for 3.0.0.0/8, version 2 Paths: (1 available, best #1, table Default-IP-Routing-Table) Advertised to update-groups: 1 Local 0.0.0.0 from 0.0.0.0 (3.3.3.3) Origin IGP, metric 0, localpref 100, weight 32768, valid, sourced, local, best R3#show ip bgp 6.0.0.0 BGP routing table entry for 6.0.0.0/8, version 18 Paths: (1 available, best #1, table Default-IP-Routing-Table) Not advertised to any peer Local 10.1.46.6 (metric 2) from 10.1.13.1 (1.1.1.1) Origin IGP, metric 0, localpref 100, valid, internal, best Originator: 6.6.6.6, Cluster list: 1.1.1.1, 4.4.4.4