<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear Juliusz,</div><div dir="ltr"><br></div><div>I remove "option 'proto' '3'" from redistribution rule and it is not working. </div><div>Here is routing tables on Box1 after changes:</div><div>root@OpenWrt:/# route<br>Kernel IP routing table<br>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface<br>default         192.168.2.1     0.0.0.0         UG    0      0        0 eth0.2<br>8.0.0.0         192.168.2.1     255.0.0.0       UG    0      0        0 eth0.2<br>192.168.1.0     *               255.255.255.0   U     0      0        0 br-lan<br>192.168.1.2     192.168.4.2     255.255.255.255 UGH   0      0        0 wlan0<br>192.168.2.0     *               255.255.255.0   U     0      0        0 eth0.2<br>192.168.4.0     *               255.255.255.0   U     0      0        0 wlan0<br>192.168.4.2     192.168.4.2     255.255.255.255 UGH   0      0        0 wlan0<br></div><div><br></div><div>root@OpenWrt:/# ip route show all<br>default via 192.168.2.1 dev eth0.2 proto static<br><a href="http://8.0.0.0/8">8.0.0.0/8</a> via 192.168.2.1 dev eth0.2 proto static<br><a href="http://192.168.1.0/24">192.168.1.0/24</a> dev br-lan proto kernel scope link src 192.168.1.1<br>192.168.1.2 via 192.168.4.2 dev wlan0 proto babel onlink<br><a href="http://192.168.2.0/24">192.168.2.0/24</a> dev eth0.2 proto kernel scope link src 192.168.2.2<br><a href="http://192.168.4.0/24">192.168.4.0/24</a> dev wlan0 proto kernel scope link src 192.168.4.1<br>192.168.4.2 via 192.168.4.2 dev wlan0 proto babel onlink<br></div><div><br></div><div>root@OpenWrt:/# ip route show proto babel<br>192.168.1.2 via 192.168.4.2 dev wlan0 onlink<br>192.168.4.2 via 192.168.4.2 dev wlan0 onlink<br></div><div><br></div><div><br></div><div><br></div><div>Best regards,</div><div>Volodymyr<br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">чт, 1 лист. 2018 о 18:56 Juliusz Chroboczek <<a href="mailto:jch@irif.fr">jch@irif.fr</a>> пише:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Volodymyr,<br>
<br>
> default via 192.168.2.1 dev eth0.2 proto static<br>
<br>
If you look at /etc/iproute2/rt_protos, you will see that "proto static"<br>
is a protocol number of 4.  Now your redistribution rule says:<br>
<br>
    option 'proto' '3'<br>
<br>
This says that only routes with "proto boot" are redistributed.  The rule is:<br>
<br>
  - if proto is specified, then only routes with the given proto are<br>
    redistributed;<br>
  - if proto is not specified, then all routes *except* the ones with<br>
    proto 3 (boot) are redistributed.<br>
<br>
All of this is documented in the babeld manual page.<br>
<br>
In your case, it should be enough to remove the line that specifies<br>
"proto", and your static routes should get redistributed.<br>
<br>
Please let us know (on list) whether it works for you.<br>
<br>
Regards,<br>
<br>
-- Juliusz<br>
</blockquote></div>