<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace"><b>root@de-ain-hof:/home/rack# </b>ip r s t default<br>default via 91.205.12.1 dev eth1.2220 src 91.205.13.1 metric 2 onlink<br>default via 172.16.11.1 dev eth1.2220 proto bird src 91.205.13.1 metric 32</font></blockquote><div><font face="monospace, monospace"><br></font></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace"><b>root@de-ain-hof:/home/rack#</b> ip a s dev lo<br>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN<br> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br> inet <a href="http://127.0.0.1/8">127.0.0.1/8</a> scope host lo<br> valid_lft forever preferred_lft forever<br> inet <a href="http://91.205.13.1/32">91.205.13.1/32</a> scope global lo:olsr<br> valid_lft forever preferred_lft forever<br> inet6 ::1/128 scope host<br> valid_lft forever preferred_lft forever</font></blockquote><div><br></div><div>But on traceroute:</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace"><b>traceroute to 91.205.13.18 (91.205.13.18), 30 hops max, 60 byte packets</b><br> 1 <a href="http://ae0-404.nbg20.core-backbone.com">ae0-404.nbg20.core-backbone.com</a> (83.142.85.225) 0.330 ms 0.493 ms 0.472 ms<br> 2 <a href="http://ae4-2057.slz10.core-backbone.com">ae4-2057.slz10.core-backbone.com</a> (81.95.2.38) 4.723 ms 4.752 ms 4.731 ms<br> 3 <a href="http://at-sbg-itz-tz-k10-r10-bgp02-et6-v101.rsm-connect.net">at-sbg-itz-tz-k10-r10-bgp02-et6-v101.rsm-connect.net</a> (5.56.17.162) 4.640 ms 4.653 ms 4.633 ms<br> 4 <a href="http://sbg-rou1-1.rsm-connect.net">sbg-rou1-1.rsm-connect.net</a> (91.205.12.1) 4.610 ms 4.575 ms 4.597 ms<br> <font color="#cc0000"><b>5 172.16.11.8 (172.16.11.8) 5.756 ms 5.748 ms 5.724 ms</b></font><br> 6 <a href="http://dynamic-ip5bcd0d12.ain-hof.rsm-connect.net">dynamic-ip5bcd0d12.ain-hof.rsm-connect.net</a> (91.205.13.18) 17.897 ms 19.321 ms 24.536 ms</font></blockquote></div><div><br></div><div>there is the interface-ip-address from eth1.2220 on ICMP-Exceeded in transit.<br></div></div><div><br></div><div>For locally generated ip-packets kernel lookup on the src attribute.</div><div>But when in my case "onlink" attribute is inserted, this will not work as expected.</div><div><br></div><div>Currently i am switching from OLSR to eBGP with BFD for link-sensing.</div><div>On my new boxes this works as expected only running BIRD. This box runs BIRD and OLSRD simultan. OLSR with metric of 2 and BRID with metric of 32, so routes from OLSRD kicks in before BIRD.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Am Sa., 25. Aug. 2018 um 12:53 Uhr schrieb Teco Boot <<a href="mailto:teco@inf-net.nl">teco@inf-net.nl</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> Op 25 aug. 2018, om 12:19 heeft Michael Rack <<a href="mailto:mail@michaelrack.de" target="_blank">mail@michaelrack.de</a>> het volgende geschreven:<br>
> <br>
> Yes i am using rt-table 100.<br>
> <br>
> Because of the onlink attribute on the route the src-attribute will not be injected / will not kick in.<br>
<br>
I wrote it works for me.<br>
<br>
<br>
> I did some testing with manually added routes.<br>
> When i add onlink to my route the src-attribute does not kick in.<br>
<br>
It does.<br>
<br>
root@host:~# ip route add 192.168.6.6 via 192.168.7.7 dev lo src 172.31.11.11<br>
RTNETLINK answers: Network is unreachable<br>
root@host:~# ip route add 192.168.6.6 via 192.168.7.7 dev lo src 172.31.11.11 onlink<br>
root@host:~# ip route show 192.168.6.6<br>
192.168.6.6 via 192.168.7.7 dev lo src 172.31.157.11 onlink <br>
root@host:~#<br>
<br>
172.31.11.11 is MainIP and is configured on another interface.<br>
<br>
<br>
> When i remove the onlink attribute it will work as expected.<br>
> <br>
> So is there an option in olsrd.conf to remove the onlink attribute?<br>
> <br>
> When will onlink be inserted?<br>
> Why is it necesery at all?<br>
<br>
For next hop IP address that does not meet kernel checks. E.g. neighbor is on other subnet.<br>
<br>
Is your main address configured?<br>
<br>
Teco<br>
<br>
<br>
> <br>
> Am Sa., 25. Aug. 2018 um 11:59 Uhr schrieb Teco Boot <<a href="mailto:teco@inf-net.nl" target="_blank">teco@inf-net.nl</a>>:<br>
> What is the issue: add src or remove onlink?<br>
> <br>
> SrcIpRoutes works for me.<br>
> <br>
> Your olsrd.conf may have something special. Table 100?<br>
> <br>
> Teco<br>
> <br>
> > Op 24 aug. 2018, om 19:15 heeft Michael Rack <<a href="mailto:michael.rack@rsm-freilassing.de" target="_blank">michael.rack@rsm-freilassing.de</a>> het volgende geschreven:<br>
> > <br>
> > Is there now solution to remove onlink attribute on routes?<br>
> > <br>
> > Liebe Grüße aus Freilassing,<br>
> > <br>
> > Michael Rack<br>
> > RSM Freilassing<br>
> > -- <br>
> > RSM Freilassing Tel.: +49 8654 607110<br>
> > Nocksteinstr. 13 Fax.: +49 8654 670438<br>
> > D-83395 Freilassing <a href="http://www.rsm-freilassing.de" rel="noreferrer" target="_blank">www.rsm-freilassing.de</a><br>
> > <br>
> > <br>
> > Am So., 25. März 2018 um 04:37 Uhr schrieb Michael Rack <<a href="mailto:mail@michaelrack.de" target="_blank">mail@michaelrack.de</a>>:<br>
> > Hi,<br>
> > <br>
> > when i run olsrd-v1 i have some issues with KERNEL-SRC-Attribute:<br>
> > <br>
> > cat /etc/olsrd.conf<br>
> > SrcIpRoutes yes<br>
> > MainIp 91.205.13.1<br>
> > <br>
> > rack@de-ain-hof:~$ ip r s t 100<br>
> > <a href="http://172.16.12.128/26" rel="noreferrer" target="_blank">172.16.12.128/26</a> via 172.16.4.196 dev eth1 metric 2 onlink<br>
> > <a href="http://172.16.12.192/27" rel="noreferrer" target="_blank">172.16.12.192/27</a> via 172.16.11.132 dev eth0.2221 metric 2 onlink <br>
> > <a href="http://172.16.13.92/30" rel="noreferrer" target="_blank">172.16.13.92/30</a> via 172.16.11.133 dev eth0.2221 metric 2 onlink <br>
> > <a href="http://172.16.14.64/27" rel="noreferrer" target="_blank">172.16.14.64/27</a> via 172.16.11.133 dev eth0.2221 metric 2 onlink<br>
> > <br>
> > The SRC-Attribute does not kick in, so the wrong ip is shown on a traceroute.<br>
> > <br>
> > How do i remove the onlink from my routes?<br>
> > -- <br>
> > Olsr-users mailing list<br>
> > <a href="mailto:Olsr-users@lists.olsr.org" target="_blank">Olsr-users@lists.olsr.org</a><br>
> > <a href="https://lists.olsr.org/mailman/listinfo/olsr-users" rel="noreferrer" target="_blank">https://lists.olsr.org/mailman/listinfo/olsr-users</a><br>
> > -- <br>
> > Olsr-users mailing list<br>
> > <a href="mailto:Olsr-users@lists.olsr.org" target="_blank">Olsr-users@lists.olsr.org</a><br>
> > <a href="https://lists.olsr.org/mailman/listinfo/olsr-users" rel="noreferrer" target="_blank">https://lists.olsr.org/mailman/listinfo/olsr-users</a><br>
> <br>
<br>
</blockquote></div>