Hi everyone,
I’m having some issues getting as-path-prepend working with a default route. Specifically, I’m looking to advertise two default routes and have one as a backup for a private peer but while my prepend works for “normal” ipv4 networks, the default route resolutely advertises with a single AS hop, even when the route-map makes no distinction between them.
I’ve seen some suggestions on similar CLI’s that you have to treat the default route differently, such as using a prefix-list, which I have done and it filters 172.31 but there is no prepending.
My config as it stands:
set policy prefix-list default rule 10 action ‘permit’
set policy prefix-list default rule 10 prefix ‘0.0.0.0/0’
set policy route-map Prepend rule 2 action ‘permit’
set policy route-map Prepend rule 2 match ip address prefix-list ‘default’
set policy route-map Prepend rule 2 set as-path-prepend '64500 64500 64500 ’
set protocols bgp 64500 address-family ipv4-unicast network 0.0.0.0/0
set protocols bgp 64500 neighbor 169.254.1.1 address-family ipv4-unicast default-originate
set protocols bgp 64500 neighbor 169.254.1.1 address-family ipv4-unicast route-map export ‘Prepend’
set protocols bgp 64500 neighbor 169.254.1.1 address-family ipv4-unicast soft-reconfiguration inbound
set protocols bgp 64500 neighbor 169.254.1.1 remote-as ‘65101’
set protocols bgp 64500 neighbor 169.254.1. update-source ‘169.254.1.2’
Any thoughts?
Cheers,
Kev