Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Hllrdm
Contributor

Routemap in OSPF and BGP

I have two dynamic routing protocols configured: OSPF and BGP.
Protocol Rank is lower for OSPF than BGP, so the priority of OSPF routes is higher than BGP.
I have several of the same OSPF and BGP routes coming in, the OSPF routes have priority. I need a certain BGP route to have a higher priority than OSPF. I understand Routemap solves this problem, but I have no experience with this task. Can you please tell me how to correctly write a routemap to prioritize a route 10.11.2.0/24 from BGP over OSPF?

0 Kudos
2 Replies
HeikoAnkenbrand
Champion Champion
Champion

Here you will find examples of route maps:

Route Maps - Examples 

You could use the following:

set routemap BGP-to-OSPF id <xxxx> match network 10.11.2.0/24 all

➜ CCSM Elite, CCME, CCTE
0 Kudos
the_rock
Legend
Legend

What Heiko gave you is good example. If you need more help, message me offline, as my colleague and I worked with TAC over 3-4 months on ospf/bgp config for a large customer, so I have LOTS of examples : - )

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events