bgp route-map syntax

Unanswered Question
Oct 9th, 2008

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.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Giuseppe Larosa Thu, 10/09/2008 - 08:17

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

Actions

This Discussion