Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

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
New Member

Re: BGP route maps for setting local pref

That will work fine

Rgds

E.

Re: BGP route maps for setting local pref

Hello,

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

Hope this helps! Please rate all posts.

Regards, Martin

New Member

Re: BGP route maps for setting local pref

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

115
Views
0
Helpful
3
Replies
CreatePlease to create content