Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    OpenBGPD 0.5.6 + RIP = BGP routes disappearing

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 2 Posters 2.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      evil79genius
      last edited by

      My setup:
      pfSense 2.0.1-RELEASE (amd64)
      OpenBGPD 0.5.6
      Builtin RIP service
      2 nodes, CARP both on WAN and LAN, custom BGPD config:

      AS <our as#="">listen on 0.0.0.0
      router-id <lan ip="">network X.X.X.X/nn
      
      neighbor <peer ip="">{
          descr "Upstream provider"
          remote-as <peer as#="">depend on vip2
          local-address <wan carp="" ip="">announce self  
      }
      
      deny from any
      deny to any
      allow from <peer ip="">allow to</peer></wan></peer></peer></lan></our> 
      

      Our gateways use BGP to peer to upstream providers and RIP for internal routing.
      OpenBGPD works well on its own, and RIP too, but enabling both makes all the routes learnt through BGP disappear.

      I've traced the issue to RIP, or at least it seems so:
      keeping OpenBGPD enabled, with RIP off, output of "netstat -rn -f inet" shows BGP routes
      turning RIP on, BGP routes disappear, and even subsequent BGP announces won't update fib
      tunring RIP off again, after subsequent BGP announces are being received, fib is updated regularly.

      Increasing routed (RIP) logging, it shows messages like:
      RTM_ADD from pid <bgpd-daemon>: <subnet>–> <peer ip="">so it seems like OpenBGPD tries to insert new routes into fib, but for some reason I'm unable to trace when/why/by-who they got deleted.

      Anybody could shed some light onto this?</peer></subnet></bgpd-daemon>

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gloom
        last edited by

        Probably a silly question but you've not got them both active on the same interface have you?

        Never underestimate the power of human stupidity

        1 Reply Last reply Reply Quote 0
        • E Offline
          evil79genius
          last edited by

          @Gloom:

          Probably a silly question but you've not got them both active on the same interface have you?

          No: BGP was running on the WAN interface, RIP on the LAN one.

          I've also tried to customize the /etc/gateways file with no luck: now I'm unable to supply the ones I've tested with.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.