08-20-2020 10:52 AM
I thought this would work to prepend only the default route 0.0.0.0/0 but it ended up prepending everything. On an IOS XR platform
conf t
!
prefix-set PREPEND_CUST
0.0.0.0/0
end-set
!
route-policy CUST_PREPEND_AS
if destination in PREPEND_CUST then
prepend as-path most-recent 4
else
pass
endif
end-policy
!
Set this on the bgp route-policy outbound
Any help is appreciated, thanks
08-20-2020 01:23 PM
Hello,
I somewhere recall the the below syntax is possible as well, can you give that a try ?
route-policy CUST_PREPEND_AS
if destination in (0.0.0.0/0) then
prepend as-path most-recent 4
else
pass
endif
end-policy
08-21-2020 01:42 AM
Hello
May i ask why is there a requirement to prepend a default route, can you elaborate on your topology a little bit more if applicable.
08-21-2020 06:42 AM
Customer would like to prefer a default route from another network they have. Use this one as secondary for internet traffic.
08-21-2020 08:02 AM
I opened a Cisco TAC case on this and this is what they provided as a solution. He showed me it working in the LAB environment. Just an FYI
prefix-set XXXX
0.0.0.0/0
end-set
route-policy PASS
if destination in XXXX then
prepend as-path 12345 4
else
pass
endif
end-policy
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