I am having a problem figuring out as-path prepending using the 3.22 routing test now that it’s in there.
I actually made a filter that worked with the local-pref option, and added the set bgp prepend path, and as soon as I did that, both bgp peers went down, even though the filter is only applied to one peer. They then stayed in idle state. When I disabled the filter in filters, they both stayed idle. I then rebooted and the two peers were able to be reestablished. Just disabling/enabling them didn’t do the trick.
The as path prepending feature is something I’ve used for years with cisco for basic BGP routing manipulation. Perhaps I need a little education or documentation on how to implement this new feature on MT. I would like to be able to use it to add an AS hop to advertisements sent via one peer.
/routing bgp network
add disabled=no network=10.2.19.0/24 synchronize=no
add disabled=no network=10.2.20.0/24 synchronize=no
add disabled=no network=69.39.116.64/27 synchronize=no
/routing bgp peer
add address-families=ip comment="" default-originate=never disabled=no \
hold-time=1m in-filter="" instance=default multihop=no name=hatchet \
nexthop-choice=default out-filter="" remote-address=69.39.98.97 \
remote-as=65525 route-reflect=no tcp-md5-key="" ttl=255
add address-families=ip comment="" default-originate=never disabled=yes \
hold-time=3m in-filter="" instance=default multihop=no name=longpond \
nexthop-choice=default out-filter="" remote-address=69.39.116.73 \
remote-as=65532 route-reflect=no tcp-md5-key="" ttl=255
add address-families=ip comment="" default-originate=never disabled=no \
hold-time=1m in-filter="" instance=default multihop=no name=crummet \
nexthop-choice=default out-filter=bgp-out remote-address=69.39.118.105 \
remote-as=65531 route-reflect=no tcp-md5-key="" ttl=255
/routing filter
add action=passthrough chain=bgp-out comment="" disabled=yes invert-match=no \
set-bgp-local-pref=122 set-bgp-prepend-path=1
/routing bgp instance
set default as=65524 client-to-client-reflection=yes comment="" disabled=no \
ignore-as-path-len=no name=default out-filter="" redistribute-connected=\
no redistribute-ospf=no redistribute-other-bgp=no redistribute-rip=no \
redistribute-static=no router-id=0.0.0.0