cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
543
Views
0
Helpful
3
Replies

Does route-map is not support by bgp distribution-list

B@B@r
Level 1
Level 1

Capture.PNG

 Cisco IOS Software, 7200 Software (C7200-ADVIPSERVICESK9-M), Version 15.2(4)S5, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Thu 20-Feb-14 06:51 by prod_rel_team

 

 

 

 

 

Why it is not present route-map? on the other hand it is in eigrp and ospf .

 

3 Replies 3

Hello,

 

with distribute lists, only standard/extended/ expanded and prefix lists are allowed in BGP.

 

What are you trying to accomplish ?

i have R1 which have two paths one from R2 and one from R3 to reaching the destination ip 6.6.6.6/24, so by default bgp selet R2 because its router id has lowest. i want to change the path to R3 by using
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
route-map change_nexthop 10
match ip address prefix-list 1
set ip next-hop 3.3.3.3
router bgp 1
distribute-list route-map chang_nexhop out

ip prefix-list permit 6.6.6.0/24
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

but there was no option of route-map in distribution list in bgp.



i know there are other ways by using bgp other attributes like weight , local preference to change it but i want to apply route-map/

can you tell me why bgp dont support it?

Hi

The following configuration is applied to Interfaces 

route-map change_nexthop 10
match ip address prefix-list 1
set ip next-hop 3.3.3.3

 

So I suggest use BGP attributes like weight or local preference. Example:

 

ip prefix-list TEST seq 5 permit 6.6.6.0/24

 

route-map FROM-R2 permit 5

match ip address prefix TEST

set local-preference 500

 

route-map FROM-R2 permit 100

 

 

route-map FROM-R3 permit 5
match ip address prefix TEST
set local-preference 1000

 

route-map FROM-R3 permit 100

 

 

 

router bgp 100

neighbor 2.2.2.2 remote 200

neighbor 2.2.2.2 route-map FROM-R2 in

neighbor 3.3.3.3 remote 300
neighbor 3.3.3.3 route-map FROM-R3 in

 

clear ip bgp * soft 

 

It will prefer the local preference with high value, also you can use as-path prepend for outboud traffic so you can have symmetric traffic. The empty sequence 100 is used to keep the normal flow for the rest prefixes learned from other routers. 

 

Hope it is useful

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<
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