cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
2544
Views
0
Helpful
3
Replies
pbrown
Beginner

BGP route maps for setting local pref

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
Beginner

That will work fine

Rgds

E.

mheusinger
Advocate

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
Beginner

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