You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

StrongSwan与Bird BGP路由传播问题求助

StrongSwan与Bird BGP路由传播问题求助

各位大佬好,想请教个BGP路由的问题:

我已经通过IPSec StrongSwan隧道把两边的网络打通了,现在可以用私有IP互相ping通:

  • VPS1: 192.168.8.44
  • VPS2: 192.168.1.21

接下来我想通过BGP在VPS1侧宣告192.168.8.0/24网段,VPS2侧宣告192.168.1.0/24网段。两边都装了Bird并做了配置,下面是VPS2的配置片段(VPS1那边除了IP不一样,其他配置完全相同):

protocol static {
    route 192.168.1.0/24 via 192.168.1.21;
}

protocol bgp {
    import all;
    export all;
    local as 65002;
    neighbor 192.168.8.44 as 64514;
    multihop 1;
}

现在问题来了:VPS1上的BGP会话明明已经正常建立了,看输出是这样的:

bird> show proto
name     proto    table    state  since       info
kernel1  Kernel   master   up     17:26:26
device1  Device   master   up     17:26:26
static1  Static   master   up     17:26:26
bgp1     BGP      master   up     17:26:30    Established

但查看路由的时候,目标网段显示不可达:

bird> show route
192.168.1.0/24     unreachable [bgp1 16:26:30 from 192.168.1.21] * (100/-) [AS65002i]

而且日志里还出现了这么一条警告:

Next hop address 192.168.1.21 resolvable through recursive route for 192.168.1.0/24

我实在搞不懂这个警告是什么意思,明明我能正常ping通192.168.1.21啊,到底哪里配置错了?求各位大佬指点!

备注:内容来源于stack exchange,提问作者oliva5

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 12:08:02