03-10-2020 04:29 PM - edited 03-24-2020 04:41 PM
Hello folks,
I'm wondering when do i have a route-map used at redistribution and when do I use a route-map against the neighbor.
for example, i have the following BGP peering with redistribution attached.
Router1#
router bgp 65425
address-family ipv4 unicast
neighbor 172.30.30.30 remote-as 64436
router eigrp 100
redistribute static route-map static-to-eigrp
redistrbute bgp 65425 route-map static-to-eigrp
default-information originate
route-map static-to-eigrp permit 100 (permits all routes)
so all static routes get redist into eigrp and all bgp 65425 learned routes can be freely redist into eigrp as you can see in the configs above.
Now my question is lets say we want to add a new neighbor from a different AS as I have updated the configs below to reflect that.
Router1#
Updated configs:
!
ip prefix-list blk-dflt seq 5 permit 0.0.0.0/0
!
route-map eigrp-to-bgp permit 100
!
router eigrp 100
redistribute static route-map static-to-eigrp
redistrbute bgp 65425 route-map static-to-eigrp
default-information originate
!
route-map static-to-eigrp permit 100 (permits all routes)
!
so now I don't really know what is the point of putting a neighbor outbound route-map on that bgp process as opposed to the redistriubtion as I highlighted in the configs. If I want to control what I advertise to the neighbor, isn't that redistribution good enough because I can just block what route I dont want redistributed. So I want to understand what is the benefit to having both the redistribution command and the outbound neighbor route-map. Is keeping both a good idea. I essentially want the neighbor to learn all my routes via redistribution
Solved! Go to Solution.
03-10-2020 08:39 PM
03-24-2020 08:26 PM
03-10-2020 08:39 PM
03-24-2020 07:16 PM - edited 03-24-2020 07:18 PM
Hey Francesco,
Would you by any chance be able to tell me why when the neighbor on the other side advertises a random route like 192.168.1.1 it gets dropped by my route-map?
The debug says the route-map inbound-advertise is dropping the packets.
router bgp 65426
neighbor 172.28.20.10 remote-as 65422
address-family ipv4 unicast
route-map inbound-advertise in
route-map inbound-advertise, deny, sequence 10
Match clauses:
ip address (access-lists): inboundadv
Set clauses:
route-map inbound-advertise, permit, sequence 200
Match clauses:
Set clauses:
ip prefix-list inboundadv seq 5 permit 0.0.0.0/0
03-24-2020 08:26 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide