cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
353
Views
0
Helpful
1
Replies

bgp route-map syntax

lowen
Level 1
Level 1

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 1

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

Review Cisco Networking products for a $25 gift card