Technical Documentation

Propagating Static Routes into Routing Protocols

A common way to propagate static routes into the various routing protocols is to configure the routes so that the next-hop routing device is the loopback address (commonly, 127.0.0.1). However, configuring static routes in this way with the Junos OS (by including a statement such as route address/mask-length next-hopĀ 127.0.0.1) does not propagate the static routes, because the forwarding table ignores static routes whose next-hop routing device is the loopback address. To propagate IPv4 static routes into the routing protocols, include the discard statement:

rib inet.0 static (defaults | route) {discard;}

To propagate IPv6 static routes into the routing protocols, include the discard statement:

rib inet6.0 static (defaults | route) {discard;}

For a list of hierarchy levels at which you can include these statements, see the statement summary sections for these statements.

In this configuration, you use the discard option instead of reject because discard does not send an ICMP (or ICMPv6) unreachable message for each packet that it drops.

Related Topics


Published: 2010-07-02

Help
|
My Account
|
Log Out