bird display 'unreachable' on all bgp routers

孔 晖 konghui at live.cn
Mon Sep 7 14:00:35 CEST 2020


Hi:
   I have a network 10.8.192.0/24, I have a client(gobgp 10.8.192.[15-21] as 65000) report static route to the reflector(10.8.192.159 as 65000). It always return unrechable on reflector(10.8.192.159) like this:



BIRD 2.0.7 ready.
bird>  show route
Table master4:
10.254.0.192/26      unreachable [r4 11:36:47.139 from 10.8.192.18] * (100) [i]
10.254.165.123/32    unreachable [r1 11:36:48.747 from 10.8.192.15] * (100) [i]
                     unreachable [r3 11:37:05.421 from 10.8.192.17] (100) [i]
                     unreachable [r2 11:37:04.970 from 10.8.192.16] (100) [i]
                     unreachable [r6 11:36:48.774 from 10.8.192.20] (100) [i]
                     unreachable [r4 11:36:47.139 from 10.8.192.18] (100) [i]
                     unreachable [r5 11:36:45.972 from 10.8.192.19] (100) [i]
10.254.0.128/26      unreachable [r3 11:37:05.421 from 10.8.192.17] * (100) [i]
10.254.180.155/32    unreachable [r1 11:36:48.747 from 10.8.192.15] * (100) [i]
                     unreachable [r3 11:37:05.421 from 10.8.192.17] (100) [i]
                     unreachable [r2 11:37:04.970 from 10.8.192.16] (100) [i]
                     unreachable [r6 11:36:48.774 from 10.8.192.20] (100) [i]
                     unreachable [r4 11:36:47.139 from 10.8.192.18] (100) [i]
                     unreachable [r5 11:36:45.972 from 10.8.192.19] (100) [i]
10.254.172.95/32     unreachable [r1 11:36:48.747 from 10.8.192.15] * (100) [i]
                     unreachable [r3 11:37:05.421 from 10.8.192.17] (100) [i]
                     unreachable [r2 11:37:04.970 from 10.8.192.16] (100) [i]
                     unreachable [r6 11:36:48.774 from 10.8.192.20] (100) [i]
                     unreachable [r4 11:36:47.139 from 10.8.192.18] (100) [i]
                     unreachable [r5 11:36:45.972 from 10.8.192.19] (100) [i]
10.254.0.64/26       unreachable [r1 11:36:48.747 from 10.8.192.15] * (100) [i]
10.254.186.204/32    unreachable [r1 11:36:48.747 from 10.8.192.15] * (100) [i]
                     unreachable [r3 11:37:05.421 from 10.8.192.17] (100) [i]
                     unreachable [r2 11:37:04.970 from 10.8.192.16] (100) [i]
                     unreachable [r6 11:36:48.774 from 10.8.192.20] (100) [i]
                     unreachable [r4 11:36:47.139 from 10.8.192.18] (100) [i]
                     unreachable [r5 11:36:45.972 from 10.8.192.19] (100) [i]
10.254.1.64/26       unreachable [r6 11:36:48.774 from 10.8.192.20] * (100) [i]
10.254.128.1/32      unreachable [r1 11:36:48.747 from 10.8.192.15] * (100) [i]
                     unreachable [r3 11:37:05.421 from 10.8.192.17] (100) [i]
                     unreachable [r2 11:37:04.970 from 10.8.192.16] (100) [i]
                     unreachable [r6 11:36:48.774 from 10.8.192.20] (100) [i]
                     unreachable [r4 11:36:47.139 from 10.8.192.18] (100) [i]
                     unreachable [r5 11:36:45.972 from 10.8.192.19] (100) [i]
10.254.128.10/32     unreachable [r1 11:36:48.747 from 10.8.192.15] * (100) [i]
                     unreachable [r3 11:37:05.421 from 10.8.192.17] (100) [i]
                     unreachable [r2 11:37:04.970 from 10.8.192.16] (100) [i]
                     unreachable [r6 11:36:48.774 from 10.8.192.20] (100) [i]
                     unreachable [r4 11:36:47.139 from 10.8.192.18] (100) [i]
                     unreachable [r5 11:36:45.972 from 10.8.192.19] (100) [i]
10.254.163.78/32     unreachable [r1 11:36:48.747 from 10.8.192.15] * (100) [i]
                     unreachable [r3 11:37:05.421 from 10.8.192.17] (100) [i]
                     unreachable [r2 11:37:04.970 from 10.8.192.16] (100) [i]
                     unreachable [r6 11:36:48.774 from 10.8.192.20] (100) [i]
                     unreachable [r4 11:36:47.139 from 10.8.192.18] (100) [i]10.8.192.0/24
                     unreachable [r5 11:36:45.972 from 10.8.192.19] (100) [i]
10.254.0.0/26        unreachable [r2 11:37:04.970 from 10.8.192.16] * (100) [i]
10.254.1.0/26        unreachable [r5 11:36:45.972 from 10.8.192.19] * (100) [i]
10.254.152.194/32    unreachable [r1 11:36:48.747 from 10.8.192.15] * (100) [i]
                     unreachable [r3 11:37:05.421 from 10.8.192.17] (100) [i]
                     unreachable [r2 11:37:04.970 from 10.8.192.16] (100) [i]
                     unreachable [r6 11:36:48.774 from 10.8.192.20] (100) [i]
                     unreachable [r4 11:36:47.139 from 10.8.192.18] (100) [i]
                     unreachable [r5 11:36:45.972 from 10.8.192.19] (100) [i]
10.254.138.100/32    unreachable [r1 11:36:48.747 from 10.8.192.15] * (100) [i]
                     unreachable [r3 11:37:05.421 from 10.8.192.17] (100) [i]
                     unreachable [r2 11:37:04.970 from 10.8.192.16] (100) [i]
                     unreachable [r6 11:36:48.774 from 10.8.192.20] (100) [i]
                     unreachable [r4 11:36:47.139 from 10.8.192.18] (100) [i]
                     unreachable [r5 11:36:45.972 from 10.8.192.19] (100) [i]
10.254.166.10/32     unreachable [r1 11:36:48.747 from 10.8.192.15] * (100) [i]
                     unreachable [r3 11:37:05.421 from 10.8.192.17] (100) [i]
                     unreachable [r2 11:37:04.970 from 10.8.192.16] (100) [i]
                     unreachable [r6 11:36:48.774 from 10.8.192.20] (100) [i]
                     unreachable [r4 11:36:47.139 from 10.8.192.18] (100) [i]
                     unreachable [r5 11:36:45.972 from 10.8.192.19] (100) [i]
10.254.171.1/32      unreachable [r1 11:36:48.747 from 10.8.192.15] * (100) [i]
                     unreachable [r3 11:37:05.421 from 10.8.192.17] (100) [i]
                     unreachable [r2 11:37:04.970 from 10.8.192.16] (100) [i]
                     unreachable [r6 11:36:48.774 from 10.8.192.20] (100) [i]
                     unreachable [r4 11:36:47.139 from 10.8.192.18] (100) [i]
                     unreachable [r5 11:36:45.972 from 10.8.192.19] (100) [i]

I can visit all of this destination from the advise node (10.8.192.[15-21]) correctly. And all node in the one network (10.8.192.0/24), The destination is the POD and Service IP on the Kubernetes.


Here is the reflector(10.8.192.159) show protocols  output

bird> show protocols all
Name       Proto      Table      State  Since         Info
device1    Device     ---        up     11:31:03.028

kernel1    Kernel     master4    up     11:31:03.028
  Channel ipv4
    State:          UP
    Table:          master4
    Preference:     10
    Input filter:   ACCEPT
    Output filter:  (unnamed)
    Routes:         0 imported, 17 exported, 0 preferred
    Route change stats:     received   rejected   filtered    ignored   accepted
      Import updates:              0          0          0          0          0
      Import withdraws:            0          0        ---          0          0
      Export updates:             39          0          0        ---         39
      Export withdraws:            0        ---        ---        ---          0

direct1    Direct     ---        up     11:31:03.028

r1         BGP        ---        up     11:31:07.217  Established
  Description:    bgp reflector
  BGP state:          Established
    Neighbor address: 10.8.192.15
    Neighbor AS:      65000
    Local AS:         65000
    Neighbor ID:      10.8.192.15
    Local capabilities
      Multiprotocol
        AF announced: ipv4
      Route refresh
      Graceful restart
      4-octet AS numbers
      Enhanced refresh
      Long-lived graceful restart
    Neighbor capabilities
      Multiprotocol
        AF announced: ipv4 ipv6
      Route refresh
      Graceful restart
        Restart time: 90
        Restart recovery
        AF supported: ipv4 ipv6
        AF preserved: ipv4 ipv6
      4-octet AS numbers
    Session:          internal multihop route-reflector AS4
    Source address:   10.8.192.159
    Hold timer:       60.231/90
    Keepalive timer:  21.313/30
  Channel ipv4
    State:          UP
    Table:          master4
    Preference:     100
    Input filter:   ACCEPT
    Output filter:  ACCEPT
    Routes:         12 imported, 5 exported, 12 preferred
    Route change stats:     received   rejected   filtered    ignored   accepted
      Import updates:             30          0          0         18         12
      Import withdraws:            0          0        ---          0          0
      Export updates:             39         12          0        ---         27
      Export withdraws:            0        ---        ---        ---         11
    BGP Next hop:   10.8.192.159
    IGP IPv4 table: master4

r2         BGP        ---        up     11:31:04.090  Established
  Description:    bgp reflector
  BGP state:          Established
    Neighbor address: 10.8.192.16
    Neighbor AS:      65000
    Local AS:         65000
    Neighbor ID:      10.8.192.16
    Local capabilities
      Multiprotocol
        AF announced: ipv4
      Route refresh
      Graceful restart
      4-octet AS numbers
      Enhanced refresh
      Long-lived graceful restart
    Neighbor capabilities
      Multiprotocol
        AF announced: ipv4 ipv6
      Route refresh
      Graceful restart
        Restart time: 90
        Restart recovery
        AF supported: ipv4 ipv6
        AF preserved: ipv4 ipv6
      4-octet AS numbers
    Session:          internal multihop route-reflector AS4
    Source address:   10.8.192.159
    Hold timer:       82.204/90
    Keepalive timer:  8.541/30
  Channel ipv4
    State:          UP
    Table:          master4
    Preference:     100
    Input filter:   ACCEPT
    Output filter:  ACCEPT
    Routes:         12 imported, 16 exported, 1 preferred
    Route change stats:     received   rejected   filtered    ignored   accepted
      Import updates:             30          0          0         18         12
      Import withdraws:            0          0        ---          0          0
      Export updates:             39          1          0        ---         38
      Export withdraws:            0        ---        ---        ---          0
    BGP Next hop:   10.8.192.159
    IGP IPv4 table: master4

r3         BGP        ---        up     11:31:04.541  Established
  Description:    bgp reflector
  BGP state:          Established
    Neighbor address: 10.8.192.17
    Neighbor AS:      65000
    Local AS:         65000
    Neighbor ID:      10.8.192.17
    Local capabilities
      Multiprotocol
        AF announced: ipv4
      Route refresh
      Graceful restart
      4-octet AS numbers
      Enhanced refresh
      Long-lived graceful restart
    Neighbor capabilities
      Multiprotocol
        AF announced: ipv4 ipv6
      Route refresh
      Graceful restart
        Restart time: 90
        Restart recovery
        AF supported: ipv4 ipv6
        AF preserved: ipv4 ipv6
      4-octet AS numbers
    Session:          internal multihop route-reflector AS4
    Source address:   10.8.192.159
    Hold timer:       72.931/90
    Keepalive timer:  2.506/30
  Channel ipv4
    State:          UP
    Table:          master4
    Preference:     100
    Input filter:   ACCEPT
    Output filter:  ACCEPT
    Routes:         12 imported, 16 exported, 1 preferred
    Route change stats:     received   rejected   filtered    ignored   accepted
      Import updates:             30          0          0         18         12
      Import withdraws:            0          0        ---          0          0
      Export updates:             39          1          0        ---         38
      Export withdraws:            0        ---        ---        ---          0
    BGP Next hop:   10.8.192.159
    IGP IPv4 table: master4

r4         BGP        ---        up     11:31:07.232  Established
  Description:    bgp reflector
  BGP state:          Established
    Neighbor address: 10.8.192.18
    Neighbor AS:      65000
    Local AS:         65000
    Neighbor ID:      10.8.192.18
    Local capabilities
      Multiprotocol
        AF announced: ipv4
      Route refresh
      Graceful restart
      4-octet AS numbers
      Enhanced refresh
      Long-lived graceful restart
    Neighbor capabilities
      Multiprotocol
        AF announced: ipv4 ipv6
      Route refresh
      Graceful restart
        Restart time: 90
        Restart recovery
        AF supported: ipv4 ipv6
        AF preserved: ipv4 ipv6
      4-octet AS numbers
    Session:          internal multihop route-reflector AS4
    Source address:   10.8.192.159
    Hold timer:       43.757/90
    Keepalive timer:  22.803/30
  Channel ipv4
    State:          UP
    Table:          master4
    Preference:     100
    Input filter:   ACCEPT
    Output filter:  ACCEPT
    Routes:         12 imported, 16 exported, 1 preferred
    Route change stats:     received   rejected   filtered    ignored   accepted
      Import updates:             30          0          0         18         12
      Import withdraws:            0          0        ---          0          0
      Export updates:             39         12          0        ---         27
      Export withdraws:            0        ---        ---        ---         11
    BGP Next hop:   10.8.192.159
    IGP IPv4 table: master4

r5         BGP        ---        up     11:31:03.996  Established
  Description:    bgp reflector
  BGP state:          Established
    Neighbor address: 10.8.192.19
    Neighbor AS:      65000
    Local AS:         65000
    Neighbor ID:      10.8.192.19
    Local capabilities
      Multiprotocol
        AF announced: ipv4
      Route refresh
      Graceful restart
      4-octet AS numbers
      Enhanced refresh
      Long-lived graceful restart
    Neighbor capabilities
      Multiprotocol
        AF announced: ipv4 ipv6
      Route refresh
      Graceful restart
        Restart time: 90
        Restart recovery
        AF supported: ipv4 ipv6
        AF preserved: ipv4 ipv6
      4-octet AS numbers
    Session:          internal multihop route-reflector AS4
    Source address:   10.8.192.159
    Hold timer:       76.457/90
    Keepalive timer:  17.788/30
  Channel ipv4
    State:          UP
    Table:          master4
    Preference:     100
    Input filter:   ACCEPT
    Output filter:  ACCEPT
    Routes:         12 imported, 16 exported, 1 preferred
    Route change stats:     received   rejected   filtered    ignored   accepted
      Import updates:             30          0          0         18         12
      Import withdraws:            0          0        ---          0          0
      Export updates:             39         12          0        ---         27
      Export withdraws:            0        ---        ---        ---          0
    BGP Next hop:   10.8.192.159
    IGP IPv4 table: master4

r6         BGP        ---        up     11:31:07.795  Established
  Description:    bgp reflector
  BGP state:          Established
    Neighbor address: 10.8.192.20
    Neighbor AS:      65000
    Local AS:         65000
    Neighbor ID:      10.8.192.20
    Local capabilities
      Multiprotocol
        AF announced: ipv4
      Route refresh
      Graceful restart
      4-octet AS numbers
      Enhanced refresh
      Long-lived graceful restart
    Neighbor capabilities
      Multiprotocol
        AF announced: ipv4 ipv6
      Route refresh
      Graceful restart
        Restart time: 90
        Restart recovery
        AF supported: ipv4 ipv6
        AF preserved: ipv4 ipv6
      4-octet AS numbers
    Session:          internal multihop route-reflector AS4
    Source address:   10.8.192.159
    Hold timer:       53.441/90
    Keepalive timer:  17.733/30
  Channel ipv4
    State:          UP
    Table:          master4
    Preference:     100
    Input filter:   ACCEPT
    Output filter:  ACCEPT
    Routes:         12 imported, 16 exported, 1 preferred
    Route change stats:     received   rejected   filtered    ignored   accepted
      Import updates:             30          0          0         18         12
      Import withdraws:            0          0        ---          0          0
      Export updates:             39          1          0        ---         38
      Export withdraws:            0        ---        ---        ---          0
    BGP Next hop:   10.8.192.159
    IGP IPv4 table: master4

r7         BGP        ---        up     11:31:06.968  Established
  Description:    bgp reflector
  BGP state:          Established
    Neighbor address: 10.8.192.21
    Neighbor AS:      65000
    Local AS:         65000
    Neighbor ID:      10.8.192.21
    Local capabilities
      Multiprotocolrouter id 10.8.192.159;
        AF announced: ipv4
      Route refresh
      Graceful restart
      4-octet AS numbers
      Enhanced refresh
      Long-lived graceful restart
    Neighbor capabilities
      Multiprotocol
        AF announced: ipv4
      Route refresh
      Graceful restart
      4-octet AS numbers
      Enhanced refresh
      Long-lived graceful restart
    Session:          internal multihop route-reflector AS4
    Source address:   10.8.192.159
    Hold timer:       135.252/240
    Keepalive timer:  65.646/80
  Channel ipv4
    State:          UP
    Table:          master4
    Preference:     100
    Input filter:   ACCEPT
    Output filter:  ACCEPT
    Routes:         0 imported, 17 exported, 0 preferred
    Route change stats:     received   rejected   filtered    ignored   accepted
      Import updates:              0          0          0          0          0
      Import withdraws:            0          0        ---          0          0
      Export updates:             39          0          0        ---         39
      Export withdraws:            0        ---        ---        ---          0
    BGP Next hop:   10.8.192.159
    IGP IPv4 table: master4

Here is my reflector configuration(bird.conf):


router id 10.8.192.159;

protocol device {
    scan time 10;
};
protocol kernel {
ipv4 {
export filter {
    if source = RTS_STATIC then reject;
    accept;
  };
};
}
protocol direct {
        interface "*";
}

template bgp rr_client {
description "bgp reflector";
local 10.8.192.159 as 65000;
rr client;
rr cluster id 10.8.192.159;
        ipv4 {
export all;
import all;
};
}

protocol bgp r1 from rr_client {
neighbor 10.8.192.15 as 65000;
}
protocol bgp r2 from rr_client {
neighbor 10.8.192.16 as 65000;
}
protocol bgp r3 from rr_client {
neighbor 10.8.192.17 as 65000;
}
protocol bgp r4 from rr_client {
neighbor 10.8.192.18 as 65000;
}
protocol bgp r5 from rr_client {
neighbor 10.8.192.19 as 65000;
}
protocol bgp r6 from rr_client {
neighbor 10.8.192.20 as 65000;
}
protocol bgp r7 from rr_client {
neighbor 10.8.192.21 as 65000;
}


I sure client(gobgp) didn't send any withdrawn route to the reflector(by package capture). And I use bird as client. Send static network also mark as unreachable by the reflector.


Is there any thing I misconfigured? Thank you very much.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20200907/1e509eda/attachment.htm>


More information about the Bird-users mailing list