Hi,
let us assume your address is 2.2.2.2. If this address already exists in your routing table (check with show route 2.2.2.2) then you write following policy and apply it under "protocols bgp group NAME export export-nat":
xlab@mexico# show policy-options
policy-statement export-nat {
term nat {
from {
route-filter 2.2.2.2/32 exact;
}
then accept;
}
}
If this route does not exist then define a static route with next-hop reject:
xlab@mexico# set routing-options static route 2.2.2.2 reject
If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it.
Kind Regards
Michael Pergament