Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

bgp route-map syntax

What would be the proper syntax for a route-map to do the following for routes received from a specific bgp peer:

1. accept all routes *except* default

2. set the local-preference to a non-standard value.

1 REPLY
Hall of Fame Super Silver

Re: bgp route-map syntax

Hello James,

I would use a first deny block with a prefix-list that matches only the default

then a second permit block with no match statement and a set local-preference

ip prefix-list only-default permit 5 0.0.0.0/0

route-map all_but_no_def deny 10

match ip address prefix only-default

route-map all_but_no_def permit 20

set local-preference 200

router bgp yourAS

neigh xxx route-map all_but_no_def in

Hope to help

Giuseppe

156
Views
0
Helpful
1
Replies