<div dir="ltr">Hi everyone, I volunteered to set up babeld for the Battlemesh testbed, since nobody else was going to do it. The testbed consists of some 2.4/5ghz wifi routers. The 2.4ghz radio is used for management, while the 5ghz radio runs the protocol being tested.<div><br></div><div>Each routing protocol needs to have a shell script that gets run after a reboot, and adds an IP address to the 5ghz interface, and starts the routing daemon.</div><div><br></div><div>For some reason, babeld is picking up and propagating the management IP, which is not actually set on the interface that I am running babeld on (there's some bridging going on for management though). I'm attempting to use the filter syntax to stop that, but it's not working well and I don't know enough about it.</div><div><br></div><div>Here's my script:</div><div><br></div><font face="monospace, monospace">#!sh<br><br>hostname=$(cat /etc/config/system | grep hostname)<br>num=${hostname:22:1}<br>ip="10.0.$num.1/24"<br><br>ip addr add $ip dev wlan1<br><br>command="redistribute ip $ip allow"<br><br>babeld -d 1 \<br>-C $command \<br>-C 'redistribute local deny' \<br>wlan1</font><div><br></div><div><font face="arial, helvetica, sans-serif">Here's the output of ip addr after running this:</font></div><font face="monospace, monospace"><br>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1<br><br>    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br><br>    inet <a href="http://127.0.0.1/8">127.0.0.1/8</a> scope host lo<br><br>       valid_lft forever preferred_lft forever<br><br>    inet6 ::1/128 scope host <br><br>       valid_lft forever preferred_lft forever<br><br>2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000<br><br>    link/ether c0:4a:00:fc:1c:96 brd ff:ff:ff:ff:ff:ff<br><br>    inet6 fe80::c24a:ff:fefc:1c96/64 scope link <br><br>       valid_lft forever preferred_lft forever<br><br>3: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN qlen 1<br><br>    link/tunnel6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00<br><br>6: br-mgmt: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000<br><br>    link/ether c0:4a:00:fc:1c:96 brd ff:ff:ff:ff:ff:ff<br><br>    inet <a href="http://192.168.254.2/24">192.168.254.2/24</a> brd 192.168.254.255 scope global br-mgmt<br><br>       valid_lft forever preferred_lft forever<br><br>    inet6 fe80::c24a:ff:fefc:1c96/64 scope link <br><br>       valid_lft forever preferred_lft forever<br><br>7: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-mgmt state UP qlen 1000<br><br>    link/ether c0:4a:00:fc:1c:96 brd ff:ff:ff:ff:ff:ff<br><br>8: br-testbed: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000<br><br>    link/ether c0:4a:00:fc:1c:96 brd ff:ff:ff:ff:ff:ff<br><br>    inet <a href="http://10.0.2.1/24">10.0.2.1/24</a> brd 10.0.2.255 scope global br-testbed<br><br>       valid_lft forever preferred_lft forever<br><br>    inet6 fe80::c24a:ff:fefc:1c96/64 scope link <br><br>       valid_lft forever preferred_lft forever<br><br>9: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-testbed state UP qlen 1000<br><br>    link/ether c0:4a:00:fc:1c:96 brd ff:ff:ff:ff:ff:ff<br><br>10: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000<br><br>    link/ether c0:4a:00:fc:1c:98 brd ff:ff:ff:ff:ff:ff<br><br>    inet <a href="http://10.0.2.1/24">10.0.2.1/24</a> scope global wlan1<br><br>       valid_lft forever preferred_lft forever<br><br>    inet6 fe80::c24a:ff:fefc:1c98/64 scope link <br><br>       valid_lft forever preferred_lft forever<br><br>11: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-mgmt state UP qlen 1000<br><br>    link/ether c0:4a:00:fc:1c:97 brd ff:ff:ff:ff:ff:ff<br><br>    inet6 fd70:1e56:f51e:cfc8:29cb:b8f3:94c4:61c4/16 scope global <br><br>       valid_lft forever preferred_lft forever<br><br>    inet6 fe80::c24a:ff:fefc:1c97/64 scope link <br><br>       valid_lft forever preferred_lft forever</font><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">And here's the output of the debug log:</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><font face="monospace, monospace">ip: RTNETLINK answers: File exists<br><br>Type: 2<br><br><br>My id c2:4a:00:ff:fe:fc:1c:96 seqno 55368<br><br><a href="http://192.168.254.2/32">192.168.254.2/32</a> metric 0 (exported)<br><br><a href="http://10.0.2.1/32">10.0.2.1/32</a> metric 0 (exported)<br><br>fd5d:6789:d54d::/48 metric 0 (exported)<br><br><a href="http://10.0.2.0/24">10.0.2.0/24</a> metric 0 (exported)<br><br><a href="http://192.168.254.0/24">192.168.254.0/24</a> metric 0 (exported)<br><br><br>My id c2:4a:00:ff:fe:fc:1c:96 seqno 55368<br><br><a href="http://192.168.254.2/32">192.168.254.2/32</a> metric 0 (exported)<br><br><a href="http://10.0.2.1/32">10.0.2.1/32</a> metric 0 (exported)<br><br>fd5d:6789:d54d::/48 metric 0 (exported)<br><br><a href="http://10.0.2.0/24">10.0.2.0/24</a> metric 0 (exported)<br><br><a href="http://192.168.254.0/24">192.168.254.0/24</a> metric 0 (exported)<br><br><br>My id c2:4a:00:ff:fe:fc:1c:96 seqno 55368<br><br><a href="http://192.168.254.2/32">192.168.254.2/32</a> metric 0 (exported)<br><br><a href="http://10.0.2.1/32">10.0.2.1/32</a> metric 0 (exported)<br><br>fd5d:6789:d54d::/48 metric 0 (exported)<br><br><a href="http://10.0.2.0/24">10.0.2.0/24</a> metric 0 (exported)<br><br><a href="http://192.168.254.0/24">192.168.254.0/24</a> metric 0 (exported)<br><br><br>My id c2:4a:00:ff:fe:fc:1c:96 seqno 55368<br><br><a href="http://192.168.254.2/32">192.168.254.2/32</a> metric 0 (exported)<br><br><a href="http://10.0.2.1/32">10.0.2.1/32</a> metric 0 (exported)<br><br>fd5d:6789:d54d::/48 metric 0 (exported)<br><br><a href="http://10.0.2.0/24">10.0.2.0/24</a> metric 0 (exported)<br><br><a href="http://192.168.254.0/24">192.168.254.0/24</a> metric 0 (exported)<br><br><br>My id c2:4a:00:ff:fe:fc:1c:96 seqno 55368<br><br><a href="http://192.168.254.2/32">192.168.254.2/32</a> metric 0 (exported)<br><br><a href="http://10.0.2.1/32">10.0.2.1/32</a> metric 0 (exported)<br><br>fd5d:6789:d54d::/48 metric 0 (exported)<br><br><a href="http://10.0.2.0/24">10.0.2.0/24</a> metric 0 (exported)<br><br><a href="http://192.168.254.0/24">192.168.254.0/24</a> metric 0 (exported)</font><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div>As you can see, it is still propagating the management IP,  <span style="font-family:monospace,monospace"><a href="http://192.168.254.2/32">192.168.254.2/32</a>.</span><div><span style="font-family:monospace,monospace"><br></span></div><div>This shouldn't actually cause any problems, and we'll test it out tomorrow, but I just wanted to run it by the list and find out what I am doing wrong.<span style="font-family:monospace,monospace"><br></span></div><div><br></div><div>-Jehan</div></div>