Hello,
Currently I'm running a multihome BGP setup with a stacked EX4200 chassi.
The BGP sessions and such are working fine and I'm able to send null-route advertisements to one of the peers already. This peer used a basic EBGP session and is working fine. However the other peer is requesting an AS-SET for automatic filtering which then can be use to null by tagging with the community value xxx:yyy.
However I'm at a loss seen to finding documentation and configuration examples in the available juniper resource.
From reading on the cisco counterparts I'm under the impression to aggregate the advertised networks should be sufficient?
The below networks are being advertised:
policy-options {
prefix-list export-prefixes {
a.a.a.a/24;
b.b.b.b/24;
}
routing-options {
static {
route a.a.a.a/24 discard;
route b.b.b.b/24 discard;
}
aggregate {
route a.a.a.a/24;
route b.b.b.b/24;
}
The current BGP group:
protocols {
bgp {
local-as MyAS;
group Provider-Black {
type external;
local-address x.x.x.x;
import import_policy;
authentication-key ## SECRET-DATA
export export_policy;
peer-as remoteAS;
local-as MyAS;
neighbor y.y.y.y;
}}}
Policy statements:
policy-statement export_policy {
term BGP-ANNOUNCE {
from {
prefix-list export-prefixes;
}
then accept;
}
term default_block {
then reject;
}
}
policy-statement import_policy {
term ACCEPT {
then accept;
}
}
Changes:
So I'm guessing that I need to create a policy-statement as per below:
set policy-options policy-statement aggregate-route from protocol direct
set policy-options policy-statement aggregate-route from route-filter a.a.a.a/23 exact
set policy-options policy-statement aggregate-route then accept
Then I'll have to change the aggregated route from the split /24 to /23
Then I'll have to update my export rules for this session:
set policy-options policy-statement export-route from protocol aggregate
set policy-options policy-statement export-route from route-filter a.a.a.a/23 exact
set policy-options policy-statement export-route then accept
Finally update the BGP session details:
set group Provider-Black export export-route
Can anyone please confirm the above and state what information I need to relay to the provider?
They are asking for the "AS-SET" which I believe should be simply the aggregated route a.a.a.a/23?
I would appreciate any help you could provide as I'm somewhat lost at this point seen to the above.