[Olsr-users] Do not insert onlink routes GNU/LINUX

Teco Boot (spam-protected)
Sat Aug 25 12:53:33 CEST 2018


> Op 25 aug. 2018, om 12:19 heeft Michael Rack <(spam-protected)> het volgende geschreven:
> 
> Yes i am using rt-table 100.
> 
> Because of the onlink attribute on the route the src-attribute will not be injected / will not kick in.

I wrote it works for me.


> I did some testing with manually added routes.
> When i add onlink to my route the src-attribute does not kick in.

It does.

(spam-protected):~# ip route add 192.168.6.6 via 192.168.7.7 dev lo src 172.31.11.11
RTNETLINK answers: Network is unreachable
(spam-protected):~# ip route add 192.168.6.6 via 192.168.7.7 dev lo src 172.31.11.11 onlink
(spam-protected):~# ip route show 192.168.6.6
192.168.6.6 via 192.168.7.7 dev lo src 172.31.157.11 onlink 
(spam-protected):~#

172.31.11.11 is MainIP and is configured on another interface.


> When i remove the onlink attribute it will work as expected.
> 
> So is there an option in olsrd.conf to remove the onlink attribute?
> 
> When will onlink be inserted?
> Why is it necesery at all?

For next hop IP address that does not meet kernel checks. E.g. neighbor is on other subnet.

Is your main address configured?

Teco


> 
> Am Sa., 25. Aug. 2018 um 11:59 Uhr schrieb Teco Boot <(spam-protected)>:
> What is the issue: add src or remove onlink?
> 
> SrcIpRoutes works for me.
> 
> Your olsrd.conf may have something special. Table 100?
> 
> Teco
> 
> > Op 24 aug. 2018, om 19:15 heeft Michael Rack <(spam-protected)> het volgende geschreven:
> > 
> > Is there now solution to remove onlink attribute on routes?
> > 
> > Liebe Grüße aus Freilassing,
> > 
> > Michael Rack
> > RSM Freilassing
> > -- 
> > RSM Freilassing                 Tel.: +49 8654 607110
> > Nocksteinstr. 13                Fax.: +49 8654 670438
> > D-83395 Freilassing            www.rsm-freilassing.de
> > 
> > 
> > Am So., 25. März 2018 um 04:37 Uhr schrieb Michael Rack <(spam-protected)>:
> > Hi,
> > 
> > when i run olsrd-v1 i have some issues with KERNEL-SRC-Attribute:
> > 
> > cat /etc/olsrd.conf
> > SrcIpRoutes yes
> > MainIp 91.205.13.1
> > 
> > (spam-protected):~$ ip r s t 100
> > 172.16.12.128/26 via 172.16.4.196 dev eth1  metric 2 onlink
> > 172.16.12.192/27 via 172.16.11.132 dev eth0.2221  metric 2 onlink 
> > 172.16.13.92/30 via 172.16.11.133 dev eth0.2221  metric 2 onlink 
> > 172.16.14.64/27 via 172.16.11.133 dev eth0.2221  metric 2 onlink
> > 
> > The SRC-Attribute does not kick in, so the wrong ip is shown on a traceroute.
> > 
> > How do i remove the onlink from my routes?
> > -- 
> > Olsr-users mailing list
> > (spam-protected)
> > https://lists.olsr.org/mailman/listinfo/olsr-users
> > -- 
> > Olsr-users mailing list
> > (spam-protected)
> > https://lists.olsr.org/mailman/listinfo/olsr-users
> 




More information about the Olsr-users mailing list