cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3604
Views
0
Helpful
3
Replies

BGP route maps for setting local pref

pbrown
Level 1
Level 1

I want to set a local pref to 90 in one of my links. If I just want to match everything do I really need a match clause?

Will this work?

router bgp 65000

neighbor 10.10.10.10 remote-as 65001

neighbor 10.10.10.10 route-map SET-LOCAL-PREF in

route-map SET-LOCAL-PREF permit 10

set local-preference 90

Thanks,

Patrick

3 Replies 3

ekiriakos
Level 1
Level 1

That will work fine

Rgds

E.

mheusinger
Level 10
Level 10

Hello,

this will work, because a route-map statement without match condition will match everything.

Hope this helps! Please rate all posts.

Regards, Martin

fabricio.monte
Level 1
Level 1

Hello Patrick,

Your config will work.

If you want to match everything, you don't need to use the "match" statement, just use the "set" statement.

You will need to use the "match" only if you want to select something.

Fabricio

Network Analyst

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card