[Babel-users] Fwd: Babeld redistribution problem

Volodymyr Balaban vbalaban1979 at gmail.com
Thu Nov 1 20:08:04 GMT 2018


Dear Juliusz,

I remove "option 'proto' '3'" from redistribution rule and it is not
working.
Here is routing tables on Box1 after changes:
root at 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 at 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 at 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 <jch at irif.fr> пише:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/babel-users/attachments/20181101/cef76f8c/attachment.html>


More information about the Babel-users mailing list