[Olsr-users] Adding support to set SRC-IP on Route-Insertions

Michael Rack (spam-protected)
Tue May 19 22:56:59 CEST 2015


Hi Developers!
Hi Henning,

is it possible to add a config-directive to olsrd.conf to set the
default ip-address unix/linux will use when a packet is originated with
src-ip 0.0.0.0?

> ip route add 192.168.1.0/24 via 192.168.0.2 src 10.0.0.1 metric 5 dev eth0

So if a new packet is generated with src-ip 0.0.0.0 and the route will
match, linux/unix is adding 10.0.0.1 as source-ip-address.

Why i am asking for?

I like to add a IP-Address to the loopback interface and will announce
it via OLSR. On a traceroute i like to show this ip-address back to the
user on the ICMP-Timeout-Exceeded Message.

With SRC on the route, this is a possible way to go.

If src on the route entry is missing, linux/unix will use the first
ip-address assigned to the outgoing interface. Perhaps this should be a
configuration-directive which is able to set per interface basis. So if
you have multiple ip-addresses assigned to an interface, you can select
one of them.

Mit freundlichen Grüßen 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 






More information about the Olsr-users mailing list