Trying to understand a design decision in RIPD.  I originally reported this
as a bug on quagga-users
(https://lists.quagga.net/pipermail/quagga-users/2016-December/014604.html).

 

But in ripd.c, lines 1316 - 1323 I see the following:

 

      /* Default route's netmask is ignored. */

      if (packet->version == RIPv2

       && (rte->prefix.s_addr == 0)

       && (rte->mask.s_addr != 0))

     {

       if (IS_RIP_DEBUG_EVENT)

         zlog_debug ("Default route with non-zero netmask.  Set zero to
netmask");

       rte->mask.s_addr = 0;

     }

 

This code is preventing us distributing the route 0.0.0.0/1 through RIP and
retaining it's netmask. Would someone mind shedding some light on this code
& why the restriction exists?

 

FYI: Our motivation for distributing 0.0.0.0/1 is to cause LAN hosts to
prefer one ISP over another. If the preferred ISP goes down, a script we've
written will remove the static route (and remove it's companion route
128.0.0.0/1), which causes the LAN to use the backup ISP.

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Quagga-dev mailing list
Quagga-dev@lists.quagga.net
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to