Hi!
Unfortunately, I have little experience with Juniper.
I have a question:
I cannot configure policy to advertise a network for ISP.
I have multiple connections eBGP, and I need to advertise part of my networks.
protocols {
bgp {
group ISP {
type external;
peer-as XXXX;
neighbor YY.YY.YY.YY {
import ISP-IN;
export ISP-OUT;
}
policy-statement ISP-OUT {
term 1 {
from {
prefix-list-filter deny_gt_24 orlonger;
prefix-list-filter gray_networks orlonger;
}
then reject;
}
term 2 {
from community EXPORT-DENY;
then reject;
}
term 3 {
from community EXPORT-ALLOW;
then {
as-path-prepend "ZZZZ ZZZZ";
accept;
}
}
then reject;
community EXPORT-DENY members [ ZZZZ:205 ZZZZ:210 ZZZZ:220 ];
community EXPORT-ALLOW members [ ZZZZ:100 ZZZZ:110 ]
I see term 1 working - "gray networks" are blocked.
But, term 2 and 3 don't work.
If I configuring the last "then accept", then all networks are advertised except term 1.
Community are working:
run show route community ZZZ:205
inet.0: 826821 destinations, 1578859 routes (826820 active, 0 holddown, 1 hidden)
+ = Active Route, - = Last Active, * = Both
1.0.4.0/22 *[BGP/170] 00:05:49, MED 1739, localpref 50
AS path: 6939 4826 38803 56203 I, validation-state: unverified
> to AA.AA.AA.AA via xe-0/1/0.2
1.0.4.0/24 *[BGP/170] 00:05:49, MED 1739, localpref 50
AS path: 6939 4826 38803 56203 I, validation-state: unverified
> to AA.AA.AA.AA via xe-0/1/0.2
......
What am I doing wrong?
Thanks