Propagate Static Routes into Routing Protocols

From: hawling (ojhomy@singnet.com.sg)
Date: Mon Feb 04 2002 - 07:11:55 EST


Can someone please shed some light on why "discard" is used to inject a
static route? I thought it meant: "ignore this static route".

Thanks.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Propagate 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 router is the
loopback address (commonly, 127.0.0.1). Doing this with the JUNOS
software (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 router is the
loopback address. To propagate static routes into the routing protocols,
configure them as follows:

[edit]
user@host# set routing-options static route destination-prefix discard
[edit]
  user@host# show routing-options {
     static {
         route destination-prefix {
             discard;
         }
     }
}



This archive was generated by hypermail 2b29 : Mon Aug 05 2002 - 10:42:39 EDT