12-02-2017 05:37 AM - edited 03-08-2019 12:58 PM
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 .
12-02-2017 07:03 AM
Hello,
with distribute lists, only standard/extended/ expanded and prefix lists are allowed in BGP.
What are you trying to accomplish ?
12-02-2017 12:18 PM
12-02-2017 12:37 PM - edited 12-02-2017 12:51 PM
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
:-)
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: