configure
set policy prefix-list FILTER-OUT description "Prefixo de saida - ABC Telecom"
set policy prefix-list FILTER-OUT rule 10 action permit
set policy prefix-list FILTER-OUT rule 10 prefix SEU_BLOCO
set policy prefix-list FILTER-OUT rule 20 action deny
set policy prefix-list FILTER-OUT rule 20 prefix 0.0.0.0/0
set policy prefix-list FILTER-OUT rule 20 le 32
set policy prefix-list FILTER-IN description "Prefixo de entrada - ABC Telecom"
set policy prefix-list FILTER-IN rule 10 action permit
set policy prefix-list FILTER-IN rule 10 prefix 0.0.0.0/0
set policy prefix-list FILTER-IN rule 20 action deny
set policy prefix-list FILTER-IN rule 20 prefix 0.0.0.0/0
set policy prefix-list FILTER-IN rule 20 le 32
commit
set protocols bgp SEU_ASN neighbor GATEWAY_OPERADORA description ABC
set protocols bgp SEU_ASN neighbor GATEWAY_OPERADORA prefix-list export FILTER-OUT
set protocols bgp SEU_ASN neighbor GATEWAY_OPERADORA prefix-list import FILTER-IN
set protocols bgp SEU_ASN neighbor GATEWAY_OPERADORA remote-as 'ASN_OPERADORA'
set protocols bgp SEU_ASN network 'SEU_BLOCO'
set protocols bgp SEU_ASN redistribute connected
set protocols static route SEU_BLOCO blackhole distance '254'
commit
save