I have a simple sim. Router A and Router B.
Router A receives tagged OSPF routes and sets Local-Pref values via route-map based on those tags.
These Local-Pref values show up in the show ip bgp nei 10.3.1.78 advertised-routes command:
DRDC-WANRTR...
Great tip! This fixed it. Here's what I went with:
route-map BGP-OUT-RM, permit, sequence 10
Match clauses:
community (community-list filter): 100
Set clauses:
as-path prepend 65218 65218 65218 65218
Policy routing matches: 0 packets, 0 bytes
route...
Thanks, I had completely forgotten that local-pref needs to stay w/i the ASN.
Here's a followup question: Say I redistribute OSPF routes into BGP and tag them with a Community variable, like this:
route-map OSPF-to-BGP-RM permit 10
description ...