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

    Publish 2 Identical Routes with Different Metric

    Scheduled Pinned Locked Moved FRR
    4 Posts 4 Posters 502 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.
    • J
      JamieGB
      last edited by

      Hi,

      I have 2 BGP neighbors configured. They have different route maps associated. They're only different in the Weight, Local Pref, and Metric which is set on them.

      I use the main BGP settings page to specify the routes I want to publish. I've tried using route map none on the two routes and when I check the status page, the metric sent is picked randomly from one of the neighbor associated route maps.

      I've tried adding the routes in twice to BGP settings with different route maps assigned but still only one route with one metric is published to my BGP peers.

      How do I publish the same route twice but with a different metric so my peer will prefer one route over the other?

      Z bingo600B M 3 Replies Last reply Reply Quote 0
      • Z
        Zawi @JamieGB
        last edited by

        @jamiegb
        try BGP AS Paths

        1 Reply Last reply Reply Quote 0
        • bingo600B
          bingo600 @JamieGB
          last edited by

          @jamiegb
          I'm not using FRR, and am a bit rusty in BGP nowadays.
          But have done similar things on a Cisco.

          You could make the backup connection "one hop longer", by prepending your own AS number, before announcing.
          https://www.noction.com/blog/as-path-and-as-path-prepending

          This might be a tip (I think ...)
          https://forum.netgate.com/post/744191

          Remember BGP is like "The Highlander" ... There can be ONLY ONE (active)
          So you might have to dig a bit deeper to see the "Inactive",

          /Bingo

          If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

          pfSense+ 23.05.1 (ZFS)

          QOTOM-Q355G4 Quad Lan.
          CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
          LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

          1 Reply Last reply Reply Quote 0
          • M
            michmoor LAYER 8 Rebel Alliance @JamieGB
            last edited by

            @jamiegb said in Publish 2 Identical Routes with Different Metric:

            te twice but with a different metric so my peer will pre

            Its common to adjust either local-pref or as-path prepend attributes. In your case, if you want your peer to use one path for a destination vs another then as-path prepend that route out a few times[using your local-as of course].

            Firewall: NetGate,Palo Alto-VM,Juniper SRX
            Routing: Juniper, Arista, Cisco
            Switching: Juniper, Arista, Cisco
            Wireless: Unifi, Aruba IAP
            JNCIP,CCNP Enterprise

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