首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >已收到但未被注入的EdgeOS BGP路由

已收到但未被注入的EdgeOS BGP路由
EN

Server Fault用户
提问于 2018-02-20 22:04:01
回答 1查看 1.7K关注 0票数 0

我正在尝试用Google平台在IPSEC上建立BGP。IPSEC隧道已成功建立,GCP将BGP会话报告为up。EdgeMax路由器正在接收这些路由,但没有将它们注入肋骨。

代码语言:javascript
运行
复制
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    *>  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

最初,本地路由器ID是我删除的接口的地址,所以我将其更新为169.254.0.2,但这并没有帮助。

我的日志看起来像这样,每隔几秒钟重复一次:

代码语言:javascript
运行
复制
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

希望我错过了一件小事情。有人能看到它是什么吗?

EN

回答 1

Server Fault用户

回答已采纳

发布于 2018-02-21 10:47:24

我认为您需要启用ebgp多路值为4。

在这里,我给您附加一个可以帮助您的配置:

代码语言:javascript
运行
复制
$ 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
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/898110

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档