Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Блок кода
ESR2# sh bgp summary 
2025-11-26 06:37:55
  BGP router identifier 198.51.100.2, local AS number 64497, AS confederation identifier 69   <----
  BGP activity 1/0 prefixes
  Neighbor                 AS              MsgRcvd      MsgSent      Up/Down      St/PfxRcd
                                                                     (d,h:m:s)                
  ----------------------   -------------   ----------   ----------   ----------   ------------
  203.0.113.2              64496           9            10           00,00:03:07   1        

ESR3# sh bgp summary 
2025-11-26 06:38:52
  BGP router identifier 192.0.2.2, local AS number 64496, AS confederation identifier 69      <---
  BGP activity 0/1 prefixes
  Neighbor                 AS              MsgRcvd      MsgSent      Up/Down      St/PfxRcd
                                                                     (d,h:m:s)                
  ----------------------   -------------   ----------   ----------   ----------   ------------
  203.0.113.1              64497           7            10           00,00:04:03   0  

Scroll Pagebreak

BGP-сессия перешла в состояние "Established". Необходимо убедиться, что тип сессии соответствует "confed-external". Для eBGP-cессии автоматически увеличится multi-hop до 255:

Блок кода
ESR3# sh bgp neighbors 
BGP neighbor is 203.0.113.1
    BGP state:                          Established
    Type:                               Static neighbor
    Neighbor address:                   203.0.113.1
    Neighbor AS:                        64497
    Neighbor ID:                        198.51.100.2
    Neighbor caps:                      refresh enhanced-refresh restart-aware AS4
    Session:                            confed-external multihop AS4           <-----
    Source address:                     203.0.113.2
    Weight:                             0
    Hold timer:                         120/180
    Keepalive timer:                    18/60
    EBGP multi-hop:                     255   <-----
    RR client:                          No
    Address family ipv4 unicast:       
      Send-label:                       No
      Default originate:                No
      Default information originate:    No
      Preference:                       170
      Remove private AS:                No
      Next-hop self:                    No
      Next-hop unchanged:               No
    Uptime (d,h:m:s):                   00,00:02:09

ESR2# sh bgp neighbors 
BGP neighbor is 203.0.113.2
    BGP state:                          Established
    Type:                               Static neighbor
    Neighbor address:                   203.0.113.2
    Neighbor AS:                        64496
    Neighbor ID:                        192.0.2.2
    Neighbor caps:                      refresh enhanced-refresh restart-aware AS4
    Session:                            confed-external multihop AS4           <-----
    Source address:                     203.0.113.1
    Weight:                             0
    Hold timer:                         140/180
    Keepalive timer:                    38/60
    EBGP multi-hop:                     255   <----
    RR client:                          No
    Address family ipv4 unicast:       
      Send-label:                       No
      Default originate:                No
      Default information originate:    No
      Preference:                       170
      Remove private AS:                No
      Next-hop self:                    No
      Next-hop unchanged:               No
    Uptime (d,h:m:s):                   00,00:08:05


Scroll Pagebreak

Проверим, что ESR2 принимает анонсируемый ESR3 маршрут 192.0.2.2/32:

...

Блок кода
titleESR2
ESR2(config)#  route-map OUT
ESR2(config-route-map)#   rule 1
ESR2(config-route-map-rule)#     match ip address 192.0.2.2/32
ESR2(config-route-map-rule)#   exit
ESR2(config-route-map)#   rule 2
ESR2(config-route-map-rule)#     action deny
ESR2(config-route-map-rule)#   exit
ESR2(config-route-map)# exit
ESR2(config)# 
ESR2(config)#  router bgp 64497
ESR2(config-bgp)#    neighbor 198.51.100.1
ESR2(config-bgp-neighbor)#     remote-as 64498
ESR2(config-bgp-neighbor)#     address-family ipv4 unicast
ESR2(config-bgp-neighbor-af)#       route-map OUT out
ESR2(config-bgp-neighbor-af)#       enable
ESR2(config-bgp-neighbor-af)#     exit
ESR2(config-bgp-neighbor)#     enable
ESR2(config-bgp-neighbor)#   exit
ESR2(config-bgp)# neighbor 203.0.113.2 
ESR2(config-bgp-neighbor)# address-family ipv4 unicast 
ESR2(config-bgp-neighbor-af)# next-hop-self 
ESR2(config-bgp-neighbor-af)# exit
ESR2(config-bgp-neighbor)# do com
ESR2(config-bgp)# do com
ESR2(config-bgp)# do conf

Scroll Pagebreak

Проверяем, что пиринг поднялся:

Блок кода
ESR2# sh bgp neighbors 198.51.100.1 
BGP neighbor is 198.51.100.1
    BGP state:                          Established
    Type:                               Static neighbor
    Neighbor address:                   198.51.100.1
    Neighbor AS:                        64498
    Neighbor ID:                        192.0.2.1
    Neighbor caps:                      refresh enhanced-refresh restart-aware AS4
    Session:                            external AS4
    Source address:                     198.51.100.2
    Weight:                             0
    Hold timer:                         136/180
    Keepalive timer:                    36/60
    RR client:                          No
    Address family ipv4 unicast:       
      Send-label:                       No
      Default originate:                No
      Default information originate:    No
      Outgoing route-map:               OUT
      Preference:                       170
      Remove private AS:                No
      Next-hop self:                    No
      Next-hop unchanged:               No
    Uptime (d,h:m:s):                   00,00:16:04

ESR1# sh bgp neighbors 198.51.100.2 
BGP neighbor is 198.51.100.2
    BGP state:                          Established
    Type:                               Static neighbor
    Neighbor address:                   198.51.100.2
    Neighbor AS:                        69
    Neighbor ID:                        198.51.100.2
    Neighbor caps:                      refresh enhanced-refresh restart-aware AS4
    Session:                            external AS4
    Source address:                     198.51.100.1
    Weight:                             0
    Hold timer:                         135/180
    Keepalive timer:                    39/60
    RR client:                          No
    Address family ipv4 unicast:       
      Send-label:                       No
      Default originate:                No
      Default information originate:    No
      Outgoing route-map:               OUT
      Preference:                       170
      Remove private AS:                No
      Next-hop self:                    No
      Next-hop unchanged:               No
    Uptime (d,h:m:s):                   00,00:34:20

Scroll Pagebreak

Проверяем корректность анонсируемой информации:

...