bgp route-map syntax

Unanswered Question
Oct 9th, 2008
User Badges:

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
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Giuseppe Larosa Thu, 10/09/2008 - 08:17
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

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

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



This Discussion