My dear brothers,
Please pardon my limited knowledge as I’m new in Juniper Network. I’m building a multihomed BGP network with following diagram. Kindly note that I want to announce prefix from Router-A. Requesting my expert brothers to kindly look into my configuration and see if the configurations are okay or not.
God Bless You All
Regards,
Tanjim
AS: 100 AS100
Router-A <=======================> Router-B
| |
| |
| |
EBGP Peer-1 (AS200) EBGP Peer-2 (AS300)
I have Router-A and Router-B in my network which are IBGP peers. Both routers have in turn EBGP peers. I want to announce prefix from Router-A towards its EBGP ISP-1 peer and towards Router-B. Router-B will only advertise announced prefix learned from Router-A, and announce it to its EBGP peer (ISP-2).
Router-A Configuration
====================
routing-options {
aggregate {
route 192.168.78.0/24;
}
autonomous-system 100;
}
policy-options {
policy-statement prefix_to_announce {
term find-aggregate {
from protocol aggregate;
then accept;
}
}
policy-statement import_nothing {
term t1 {
from {
route-filter 0.0.0.0/0 exact;
}
then accept;
}
term t2 {
then reject;
}
}
}
protocols {
bgp {
group IBGP_Peer_To_Router_B {
type internal;
peer-as 100;
local-address 10.11.12.1;
neighbor 10.11.12.2;
import import_nothing;
export prefix_to_announce;
}
group EBGP_Peer_To_ISP1 {
type external;
local-address 172.16.23.2;
import import_nothing;
export prefix_to_announce;
peer-as 200;
local-as 100;
neighbor 172.16.23.1;
}
}
Router-B Configuration
====================
routing-options {
autonomous-system 100;
}
policy-options {
policy-statement prefix_to_announce {
term find-aggregate {
from protocol aggregate;
then accept;
}
}
policy-statement import_nothing {
term t1 {
from {
route-filter 0.0.0.0/0 exact;
}
then accept;
}
term t2 {
then reject;
}
}
}
protocols {
bgp {
group IBGP_Peer_To_RouterA {
type internal;
peer-as 100;
local-address 10.11.12.2;
neighbor 10.11.12.1;
import import_nothing;
export prefix_to_announce;
}
group EBGP_Peer_To_ISP2 {
type external;
local-address 172.23.23.2;
import import_nothing;
export prefix_to_announce;
peer-as 300;
local-as 100;
neighbor 172.23.23.1;
}
}
}