Static Route Configuration Examples in Juniper for BGP Aggregated Prefix

Static Route Configuration Examples in Juniper for BGP aggregated prefix advertisements
In order to advertise the aggregated routes (and default routes) via BGP, it should exists in the routing table, that’s the #1 rule.

If these summarized routes (/16) are not existing and only smaller subnets are learned via the IGP(e.g. OSPF,IS-IS), then configure static route and next hop e.g. Null0.

Configuration:

routing-options {
graceful-restart;
rib inet6.0 {
static {
route fd41:c8be:2153:f400::/64 discard;
route ::0/0 {
discard;
no-install;
static {
route 172.16.0.0/16 discard;
route 0.0.0.0/0 {
discard;
no-install;

In display set format:

set routing-options graceful-restart
set routing-options rib inet6.0 static route fd41:c8be:2153:f400::/64 discard
set routing-options rib inet6.0 static route ::0/0 discard
set routing-options rib inet6.0 static route ::0/0 no-install

set routing-options static route 172.16.0.0/16 discard
set routing-options static route 0.0.0.0/0 discard
set routing-options static route 0.0.0.0/0 no-install

For Cisco configuration, please refer to this link –>¬†Static Route Configuration Examples in Cisco IOS-XR for BGP Aggregated Prefix

One Comment

Leave a Reply