Have BGP Advertise Inactive Routes
By default, BGP stores the route information it receives from update messages in the JUNOS routing table, and the routing table exports only active routes into BGP, which BGP then advertises to its peers. To have the routing table export to BGP the best route learned by BGP even if the JUNOS software did not select it to be an active route, include the
advertise-inactivestatement:advertise-inactive;You can advertise inactive routes for all BGP groups (at the
[edit protocols bgp]hierarchy level), for all peers in a group (at the[edit protocols bgp groupgroup-name]level), or for an individual peer (at the[edit protocols bgp groupgroup-nameneighboraddress]level). For routing instances, include the statement at the[edit routing-instancesrouting-instance-nameprotocols bgp]hierarchy level [edit routing-instancesrouting-instance-nameprotocols bgp groupgroup-name]hierarchy level andthe[edit routing-instancesrouting-instance-nameprotocols bgp groupgroup-nameneighboraddress]hierarchy level.