cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
492
Views
0
Helpful
2
Replies

BGP Filtering: route-map or prefix-list

jcw009
Level 1
Level 1

I'm curious about best practices regarding the usage of route-maps or prefix-list in the bgp config.

Some examples i've seen apply a prefix-list directly to a neighbor, others use a route-map.

I can't tell if there is a benefit one way or another.

Examples:

prefix-list applied to neighbor:

http://www.cymru.com/Documents/secure-bgp-template.html

prefix-list applied to route-map applied to neighbor:

router bgp 100

network 171.60.0.0

network 172.60.0.0

neighbor 200.69.232.70 remote-as 200

neighbor 200.69.232.70 route-map set-as-path out

!

route-map set-as-path 10 permit

match address 1

set as-path prepend 100 100

!

route-map set-as-path 20 permit

match address 2

!

access-list 1 permit 171.60.0.0 0.0.255.255

access-list 1 permit 172.60.0.0 0.0.255.255

!

access-list 2 permit 0.0.0.0 255.255.255.255

from http://www.cisco.com/en/US/docs/ios/12_2/ip/configuration/guide/1cfbgp.html#wp1040707

Thanks!

-Jeff

2 Replies 2

milan.kulik
Level 10
Level 10

Hi,

IMHO, prefix-list just permits/denies prefixes while route-map can manipulate/change BGP attributes (local preference, MED, as prepend, etc.)

And to be precise, route-maps are matching as-path or ip access-lists, not prefix lists.

BR,

Milan

michaelchoo
Level 1
Level 1

Edit: duplicate post.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card