Маршруты BGP EdgeOS получены, но не внедряются

Я пытаюсь настроить BGP через IPSEC с помощью Google Cloud Platform. Туннель IPSEC успешно установлен, и GCP сообщает, что сеанс BGP установлен. Маршрутизатор EdgeMax получает маршруты, но не вводит их в RIB.

dan@router:~$ show ip bgp neighbors 169.254.0.1 received-routes
BGP table version is 7, local router ID is 169.254.0.2
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
*>  10.142.0.0/20    169.254.0.1          100                   0       65000 ?

Total number of prefixes 1

dan@router:~$ show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
       O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       > - selected route, * - FIB route, p - stale info
IP Route Table for VRF "default"
S    *> 0.0.0.0/0 [210/0] via 71.186.153.1, eth0
C    *> <external address> is directly connected, eth0
C    *> 127.0.0.0/8 is directly connected, lo
C    *> 169.254.0.0/30 is directly connected, vti0
S    *> 169.254.0.1/32 [1/0] is directly connected, vti0
C    *> 192.168.0.0/24 is directly connected, eth1
S    *> 192.168.42.0/24 [1/0] via 192.168.0.29, eth1

Первоначально идентификатор локального маршрутизатора был адресом интерфейса, который я удалил, поэтому я обновил его до 169.254.0.2, но это не так. не помогло.

Мой журнал выглядит так, повторяется каждые несколько секунд:

Feb 20 16:01:30 router BGP[1679]:  BGP-6: [RIB] Scanning BGP Network Routes...
Feb 20 16:01:38 router BGP[1679]:  BGP-6: 169.254.0.1-Outgoing [FSM] Keep-alive-Timer Expiry
Feb 20 16:01:38 router BGP[1679]:  BGP-6: 169.254.0.1-Outgoing [FSM] State: Established Event: 11
Feb 20 16:01:38 router BGP[1679]:  BGP-6: 169.254.0.1-Outgoing [ENCODE] Msg-Hdr: Type 4
Feb 20 16:01:38 router BGP[1679]:  BGP-6: 169.254.0.1-Outgoing [ENCODE] Keepalive: 806 KAlive msg(s) sent
Feb 20 16:01:41 router BGP[1679]:  BGP-6: 169.254.0.1-Outgoing [FSM] AS-Origination Timer Expiry
Feb 20 16:01:41 router BGP[1679]:  BGP-6: 169.254.0.1-Outgoing [FSM] State: Established Event: 33
Feb 20 16:01:41 router BGP[1679]:  BGP-6: 169.254.0.1-Outgoing [DECODE] Msg-Hdr: type 4, length 19
Feb 20 16:01:41 router BGP[1679]:  BGP-6: 169.254.0.1-Outgoing [DECODE] Msg-Hdr: Requesting immediate Read (0)
Feb 20 16:01:41 router BGP[1679]:  BGP-6: 169.254.0.1-Outgoing [DECODE] KAlive: Received!
Feb 20 16:01:41 router BGP[1679]:  BGP-6: 169.254.0.1-Outgoing [FSM] State: Established Event: 26

Полная конфигурация находится здесь: https://gist.github.com/danellis/82b471665cbe3fb7e8d788e03b8ab257

Надеюсь, есть только один мелочь я скучаю. Кто-нибудь может увидеть, что это?

0
задан 21 February 2018 в 18:50
1 ответ

Думаю, вам нужно включить значение 4 для многопутевого протокола ebgp

Здесь я прилагаю конфигурацию, которая может вам помочь:

$ show protocols bgp
 bgp 65501 {
     neighbor 10.1.255.254 {
         ebgp-multihop 4
         remote-as 65515
         soft-reconfiguration {
             inbound
         }
         update-source 10.0.1.1
     }
     parameters {
         no-fast-external-failover
         router-id 10.0.1.1
     }
     redistribute {
         connected {
         }
     }
     timers {
         holdtime 180
         keepalive 60
     }
 }
2
ответ дан 4 December 2019 в 13:27

Теги

Похожие вопросы