Hello,
I have 3 peers that I BGP with. I am needing to remove advertising for certain networks to one BGP peer. I have created some policy options that I think may work but just want some clarity on them. ISP's 1 and 2 get full networks advertised from BGP, while ISP 3 will only be getting certain networks advertised.
protocols {
bgp {
group internet-peers {
type external;
family inet {
unicast;
multicast;
}
peer-as 5XXX4;
multipath;
neighbor 4.XXX.XXX.173 {
description "ISP 1"
export adv-supernets;
peer-as 3XX6;
}
neighbor 64.XXX.XXX.197 {
description "ISP 2"
export adv-supernets;
peer-as 2XXX2;
}
neighbor 206.XXX.XXX.253 {
description "ISP 3"
export adv-supernets-ISP-3;
peer-as 1XXX1;
}
policy-options {
prefix-list all-supernets {
137.XXX.XX4.0/24;
137.XXX.XX5.0/24;
137.XXX.X8.0/22;
192.XXX.X2.0/20;
208.XXX.40.0/24;
208.XXX.41.0/24;
208.XXX.42.0/24;
208.XXX.43.0/24;
208.XXX.44.0/24;
208.XXX.45.0/24;
prefix-list external-supernets {
23.XXX.XX.0/24;
137.XXX.XX6.0/24;
137.XXX.XX7.0/24;
192.XXX.X8.120/30;
192.XXX.X10.0/24;
198.XXX.XX3.0/24;
198.XXX.XX1.0/24;
198.XXX.XX4.0/24;
208.XXX.46.0/24;
208.XXX.47.0/24;
prefix-list external-supernets-ISP-3 {
137.XXX.XX6.0/24;
137.XXX.XX7.0/24;
208.XXX.46.0/24;
208.XXX.47.0/24;
policy-statement adv-supernets {
term 10 {
from {
protocol static;
prefix-list-filter all-supernets exact;
}
then accept;
}
term 15 {
from {
protocol bgp;
prefix-list-filter external-supernets exact;
}
then accept;
}
term 20 {
then reject;
}
}
policy-statement adv-supernets-ISP-3 {
term 10 {
from {
protocol static;
prefix-list-filter all-supernets exact;
}
then accept;
}
term 15 {
from {
protocol bgp;
prefix-list-filter external-supernets-ISP-3 exact;
}
then accept;
}
term 20 {
then reject;
Thank you
------------------------------
Jack Gonzales
------------------------------