Hello all,
Couple of questions. We currently have a /26 with our ISP that connects to them via BGP with the ISP's provided ASN. We received a /24 from the same ISP with our own ASN and we will eventually remove the /26. For now the /26 needs to remain in service.
I know you cannot advertise both the /24 and /26 via BGP to the same ISP peer using different AS numbers. What the ISP told us is that we can advertise the /24 via BGP and statically route the /26 through them. Do I only need to define the static /26 through policy-options, export it through BGP and define it on an interface?
Also, do I need the term 1 statement? Our current edge router was programmed before I arrived and has always had that line (when it was only the /26).
policy-options {
policy-statement bgp-export {
term 1 {
from {
protocol direct;
route-filter 2.2.2.0/24 exact;
}
then accept;
}
term 2 {
from {
protocol static;
route-filter 3.3.3.64/26 exact;
}
then accept;
}
}
}
protocols {
bgp {
group isp {
type external;
local-address 4.4.4.246;
export bgp-export;
peer-as 8888;
local-as 99999;
neighbor 4.4.4.245;
}
}
}
interfaces {
reth0 {
per-unit-scheduler;
mtu 1514;
redundant-ether-options {
redundancy-group 1;
}
unit 0 {
family inet {
address 4.4.4.246/30;
}
}
}
reth1 {
redundant-ether-options {
redundancy-group 1;
}
unit 0 {
family inet {
address 2.2.2.1/24 {
primary;
}
address 3.3.3.65/26;
}
}
}
}