Hello,
I am not a very experinced BGP in Junos system and would require some help.
In my case, I need to export some usally IP prefixes to my provider and also need to export some /32 IPs to get the provider to blackhole them. As the provider only provide one Peer IP to accept both the IP prefixes and the /32 IPs, so that I will need to export 2 policies to them, one is for the IP prefixes, and another for the /32 IPs.
Then the problem is once I add both the policies in the export term, I found that only the policy in the first place will aonnonce to the provider.
Here is the config from my MX router,
MX80# show protocols bgp group uplink_1
type external;
neighbor 64.x.x.1 {
description "[peer-as: 111 cust: 64.x.x.x/30 peer: 64.x.x.x/30 key: ]";
local-address 64.x.x.2;
import [ no-default no-rfc1918-dsua bgp-in ];
export [ no-rfc1918-dsua bgp-out provider_blackhole ];
peer-as 111;
}
[edit]
You see above, that bgp-out will export the IP such as many /24 prefixes from my AS, and the provider_blackhole will export /32 IPs for blackhole. If I get the export term order as bgp-out before provider_blackhole,the IP prefixes such as /24 will annonce to the provider, if I get the export term order as provider_blackhole before bgp-out ,the /32 IPs will annonce to the provider for blackhole.
Which I will need both the IP prefixes and the /32 IPs annonce to the provider. But seems now only the export will work only with the first policy in the export policies order.
Anybody know how to get them both work at the same time?
Thank you very much.