<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"IBM Plex Sans";
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
tt
{mso-style-priority:99;
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NL" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi Andreas,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">(See below)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Olsr-users <olsr-users-bounces@lists.olsr.org>
<b>On Behalf Of </b>Andreas Martens1<br>
<b>Sent:</b> vrijdag 26 februari 2021 15:43<br>
<b>To:</b> olsr-users@lists.olsr.org<br>
<b>Subject:</b> [Olsr-users] Basic problem? router_id from loopback<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"IBM Plex Sans",serif">Hello all,</span>
<br>
<br>
<span style="font-family:"IBM Plex Sans",serif">I've been trying to get this working for some time and I feat I'm just not understanding something... This might be a n00b problem!</span>
<br>
<br>
<span style="font-family:"IBM Plex Sans",serif">I have a group of nodes in a few different wireless networks. Because they have an IP address for each NIC I wanted to give them a unique IP address that could be routed across all the networks.</span>
<br>
<span style="font-family:"IBM Plex Sans",serif">So I added an IP address to the lo device:</span>
<br>
<tt>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000</tt>
<br>
<tt> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00</tt> <br>
<tt> inet 127.0.0.1/8 scope host lo</tt> <br>
<tt> valid_lft forever preferred_lft forever</tt> <br>
<tt> <b>inet 172.20.0.1/32 scope global lo</b></tt> <br>
<tt> valid_lft forever preferred_lft forever</tt> <br>
<tt> inet6 ::1/128 scope host</tt> <br>
<tt> valid_lft forever preferred_lft forever</tt> <br>
<span style="font-family:"IBM Plex Sans",serif">I then added [interface=lo] to the olsrd2.conf:</span>
<br>
<tt>[global]</tt> <br>
<tt> fork 1</tt> <br>
<tt>[olsrv2]</tt> <br>
<tt> originator default_accept</tt> <br>
<tt> nhdp_routable true</tt> <br>
<tt> tc_interval 8.0</tt> <br>
<tt> tc_validity 40.0</tt> <br>
<tt>[nhdp]</tt> <br>
<tt> mpr *</tt> <br>
<tt>[interface=lo]</tt> <br>
<tt>[interface=emane14]</tt> <br>
<tt> hello_interval 2.0</tt> <br>
<tt> hello_validity 10.0</tt> <br>
<tt> l2default rx_bitrate 600k</tt> <br>
<tt> multicast_v4 224.0.0.109</tt> <br>
<tt> bindto 192.168.15.1</tt> <br>
<tt> bindto default_reject</tt> <br>
<br>
<tt>[interface=emane13]</tt> <br>
<tt> hello_interval 2.0</tt> <br>
<tt> hello_validity 10.0</tt> <br>
<tt> l2default rx_bitrate 600k</tt> <br>
<tt> multicast_v4 224.0.0.109</tt> <br>
<tt> bindto 192.168.14.1</tt> <br>
<tt> bindto default_reject</tt> <br>
<br>
<tt>[interface=emane11]</tt> <br>
<tt> hello_interval 2.0</tt> <br>
<tt> hello_validity 10.0</tt> <br>
<tt> l2default rx_bitrate 600k</tt> <br>
<tt> multicast_v4 224.0.0.109</tt> <br>
<tt> bindto 192.168.12.1</tt> <br>
<tt> bindto default_reject</tt> <br>
<br>
<span style="font-family:"IBM Plex Sans",serif">but this seems to have stopped it working, as far as I can tell it's using 127.0.0.1 as its router_id now instead of the id of a NIC. </span>
<br>
<br>
<span style="font-family:"IBM Plex Sans",serif">What does the config need to look like so it distributes routes to the 172.20.0.0/32 addresses configured on loopback?</span>
<br>
<br>
<br>
<o:p></o:p></p>
<p style="margin-left:35.4pt;■margin-Bottom:0px"><span style="font-size:10.0pt;font-family:"IBM Plex Sans",serif">cheers,<br>
Andreas<o:p></o:p></span></p>
<p><span lang="EN-US">Deferring to Henning for an authoritative answer, of course, but judging from the output of<o:p></o:p></span></p>
<p><span lang="EN-US"># olsrd2_static --schema=olsrv2.originator ,<o:p></o:p></span></p>
<p><span lang="EN-US">you should get rid of the ‘originator default_accept’ in the [olsrv2] stanza:<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New"">21:39:22.109 WARN(olsrv2_old_lan) src/olsrv2/olsrv2_old_lan/old_lan.c 147: Old LAN plugin does add support for the deprecated olsrv2/lan config option<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> originator (list)<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> Default value:<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> '-127.0.0.0/8'<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> '-224.0.0.0/12'<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> '-::1'<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> '-ff00::/8'<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> 'default_accept'<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> Parameter is an apache2 style access control list made from a list of network addresses of the following types:<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New"">IPv4, IPv6<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> (the address can have an optional prefix)<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> Each of the addresses/prefixes can start with a '+' to add them to the whitelist and '-' to add it to the blacklist (default is the whitelist).<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> In addition to this there are four keywords to configure the ACL:<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> - 'first_accept' to parse the whitelist first<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> - 'first_reject' to parse the blacklist first<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> - 'default_accept' to accept input if it doesn't match either list<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> - 'default_reject' to not accept it if it doesn't match either list<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> (default mode is 'first_accept' and 'default_reject')<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> Description:<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Courier New""> Filter for router originator addresses (ipv4 and ipv6) from the interface addresses. Olsrv2 will prefer routable addresses over linklocal addresses and addresses from loopback over other interfaces.<o:p></o:p></span></p>
<p><span lang="EN-US">If I interpret this correctly, the default setting for ‘originator’ will ensure that 127.0.0.1 is filtered out and the address you added to the loopback interface gets selected.<o:p></o:p></span></p>
<p><span lang="EN-US">Cheers,<o:p></o:p></span></p>
<p><span lang="EN-US">Ronald<o:p></o:p></span></p>
<p><span lang="EN-US"><o:p> </o:p></span></p>
<p><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;0s■Õ"><span lang="EN-US"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="103" style="width:77.4pt;margin-left:35.4pt;border-collapse:collapse">
<tbody>
<tr style="height:4.0pt">
<td width="103" valign="top" style="width:77.4pt;padding:0cm 0cm 0cm 0cm;height:4.0pt">
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</td>
</tr>
<tr style="height:4.0pt">
<td width="103" valign="top" style="width:77.4pt;padding:0cm 0cm 0cm 0cm;height:4.0pt">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p>
</td>
</tr>
<tr style="height:4.0pt">
<td width="103" valign="top" style="width:77.4pt;padding:0cm 0cm 0cm 0cm;height:4.0pt">
<p class="MsoNormal" align="right" style="text-align:right"><span lang="EN-US"><o:p> </o:p></span></p>
</td>
</tr>
<tr style="height:4.0pt">
<td width="103" valign="top" style="width:77.4pt;padding:0cm 0cm 0cm 0cm;height:4.0pt">
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</td>
</tr>
<tr style="height:4.0pt">
<td width="103" valign="top" style="width:77.4pt;padding:0cm 0cm 0cm 0cm;height:4.0pt">
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</td>
</tr>
<tr style="height:4.0pt">
<td width="103" style="width:77.4pt;padding:0cm 0cm 0cm 0cm;height:4.0pt">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p>
</td>
</tr>
<tr style="height:4.0pt">
<td width="103" style="width:77.4pt;padding:0cm 0cm 0cm 0cm;height:4.0pt">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p>
</td>
</tr>
<tr style="height:4.0pt">
<td width="103" style="width:77.4pt;padding:0cm 0cm 0cm 0cm;height:4.0pt">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p>
</td>
</tr>
<tr style="height:4.0pt">
<td width="103" style="width:77.4pt;padding:0cm 0cm 0cm 0cm;height:4.0pt">
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</td>
</tr>
<tr style="height:4.0pt">
<td width="103" style="width:77.4pt;padding:0cm 0cm 0cm 0cm;height:4.0pt">
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-family:"IBM Plex Sans",serif"><br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"IBM Plex Sans",serif"><br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number 741598. <br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU</span><o:p></o:p></p>
</div>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 8pt; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 11.0pt"><o:p> </o:p></span></p><font style="FONT-SIZE: 11px" size="3">
</font><p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><font style="FONT-SIZE: 11px" size="3"><span style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 8pt; mso-bidi-font-size: 8.5pt">This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. TNO accepts no liability for the content of this e-mail, for the manner in which you use it and for damage of any kind resulting from the risks inherent to the electronic transmission of messages.<br><br></span></font></p></body>
</html>