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