Menu

Region US

Grandmetric LLC
Lewes DE 19958
16192 Coastal Hwy USA
EIN: 98-1615498
+1 302 691 94 10
info@grandmetric.com

Region EMEA

GRANDMETRIC Sp. z o.o.
ul. Metalowa 5, 60-118 Poznań, Poland
NIP 7792433527
+48 61 271 04 43
info@grandmetric.com

UK

Grandmetric LTD
Office 584b
182-184 High Street North
London
E6 2JA
+44 20 3321 5276
info@grandmetric.com

  • en
  • pl
  • BGP: Route reflector

    Projektowanie i konfigurowanie

    BGP: Route reflector

    Technologia: Routing

    Obszar: IGP/EGP

    Dostawca: Cisco

    Tytuł: Reflektor trasy BGP

    Oprogramowanie: 12.X, 15.X, usługi IP

    Platforma: Catalyst 3560, 3750, 3850, 4500, 6500, routery ISR/ASR

     

    Funkcjonalność route reflector została zaprojektowana tak, aby uniknąć konieczności konfigurowania w pełni meshowego peeringu iBGP w całym systemie autonomicznym. Router pełniący tę rolę odzwierciedla wszystkie prefiksy otrzymane od każdego sąsiada iBGP bez modyfikacji atrybutów. W ten sposób route reflector mógłby znajdować się poza ruchem tranzytowym i stanowić punkt centralny jedynie dla pakietów kontrolnych sieci. Warto wspomnieć, że generalnie uwzględniana jest tylko najlepsza trasa, co ma negatywny wpływ na scenariusze równoważenia obciążenia na wielu ścieżkach.

    Aby zapobiec zapętleniom tras, route reflector ma obowiązek dołączyć poniższe atrybuty do każdego prefiksu:

    1. ORGINATOR – BGP router-id sąsiada, od którego nauczył się prefiksu, prefiksu jest odrzucany, gdy pole ORGINATOR pasuje do BGP_ROUTER_ID,
    2. CLUSTER_LIST – albo identyfikator routera BGP reflektora trasy, albo parametr określony ręcznie, prefiks jest odrzucany, gdy CLUSTER_LIST zawiera już jedną z powyższych wartości.

     

    Aby skonfigurować router R1 jako reflektor trasy dla sąsiadów iBGP R2 i R3:

    R1# configure terminal
    R1 (config)# router bgp 100
    R1 (config-router)# bgp router-id 1.1.1.1
    R1 (config-router)# neighbor 10.10.12.2 remote-as 100
    R1 (config-router)# neighbor 10.10.12.2 route-reflector-client
    R1 (config-router)# neighbor 10.10.12.2 description R2
    R1 (config-router)# neighbor 10.10.13.2 remote-as 100
    R1 (config-router)# neighbor 10.10.13.2 route-reflector-client
    R1 (config-router)# neighbor 10.10.13.2 description R3
    R1 (config-router)# exit

     

    R2# configure terminal
    R2 (config)# router bgp 100
    R2 (config-router)# bgp router-id 2.2.2.2
    R2 (config-router)# neighbor 10.10.12.1 remote-as 100
    R2 (config-router)# redistribute connected route-map LOOPBACK_PREFIXES
     


    R3# configure terminal
    R3 (config)# router bgp 100
    R3 (config-router)# bgp router-id 3.3.3.3
    R3 (config-router)# neighbor 10.10.13.1 remote-as 100

     

    Polecenia weryfikacyjne:

    R1# show bgp ipv4 unicast summary
    Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
    10.10.12.2      4     100      40      64        5    0    0 00:07:53        2
    10.10.13.2       4     100     48      47        5    0    0 00:07:53        0

     

    R1# show bgp ipv4 unicast
    Network          Next Hop            Metric LocPrf Weight Path
    *>i192.168.0.0      10.10.12.2                0    100      0 ?
    *>i192.168.1.0      10.10.12.2                0    100      0 ?

     

    R1# show bgp ipv4 unicast 192.168.0.0
    BGP routing table entry for 192.168.0.0/24, version 31
    Paths: (1 available, best #1, table Default-IP-Routing-Table)
    Flag: 0x820
    Advertised to update-groups:
    1
    Local, (Received from a RR-client)
    10.10.12.2 from 10.10.12.2 (2.2.2.2)
    Origin incomplete, metric 0, localpref 100, valid, internal, best
    R1# show bgp ipv4 unicast update-group 1
    BGP version 4 update-group 1, internal, Address Family: IPv4 Unicast
    Route-Reflector Client
    Has 2 members (* indicates the members currently being sent updates):
    10.10.12.2        10.10.13.2

    R3# show bgp ipv4 unicast neighbors 10.10.13.1 routes
    Network          Next Hop            Metric LocPrf Weight Path
    *>i192.168.0.0      10.10.12.2                0    100      0 ?
    *>i192.168.1.0      10.10.12.2                0    100      0 ?
    R3# show bgp ipv4 unicast 192.168.0.0
    BGP routing table entry for 192.168.0.0/24, version 48
    Paths: (1 available, best #1, table Default-IP-Routing-Table)
    Flag: 0x820
    Not advertised to any peer
    Local
    10.10.12.2 from 10.10.13.1 (1.1.1.1)
    Origin incomplete, metric 0, localpref 100, valid, internal, best
    Originator: 2.2.2.2, Cluster list: 1.1.1.1
     

    Bez skonfigurowanej funkcjonalności reflektora trasy, R1 nie będzie odzwierciedlał prefiksu od R2 do R3:

     

    R1# show bgp ipv4 unicast 192.168.0.0
    BGP routing table entry for 192.168.0.0/24, version 10
    Paths: (1 available, best #1, table Default-IP-Routing-Table)
    Flag: 0x820
    Not advertised to any peer
    Local
    10.10.12.2 from 10.10.12.2 (2.2.2.2)
    Origin incomplete, metric 0, localpref 100, valid, internal, best

    Autor: Marcin Bialy
     
    Poprzedni Następny

    Cisco ISR Routers Offer

    Up to 60% discount for Cisco ISR routers portfolio. Get quote for ISR4300 | ISR4400 C1000 | C800

    Get a Quote
    Grandmetric: Network & Security