<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 03/17/2016 03:54 PM, Henning Rogge
wrote:<br>
</div>
<blockquote
cite="mid:CAGnRvuo=ra_mT07kcq+i8UekWJPDhLnFJxqe7YfcTNOJJVehKw@mail.gmail.com"
type="cite">
<pre wrap="">On Thu, Mar 17, 2016 at 3:49 PM, Nemesis <a class="moz-txt-link-rfc2396E" href="mailto:nemesis@ninux.org"><nemesis@ninux.org></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi everyone,
How can I announce a subnet like:
[olsrv2]
lan 10.1.2.0/24
In /etc/config/olsrd2 ?
I currently have:
config global
option lockfile '/var/lock/olsrd2'
option pidfile '/var/run/olsrd2.pid'
config log
option file '/var/log/olsrd2.log'
option stderr 'true'
option syslog 'true'
config interface
list ifname 'loopback'
list ifname 'vpnbas'
list ifname 'wlan0'
list ifname 'wlan1'
</pre>
</blockquote>
<pre wrap="">
Try:
config olsrv2
list lan 10.1.2.0/24
</pre>
</blockquote>
<br>
Works, thanks.<br>
<br>
Is it possible to add an option that tells olsrd2 to automatically
determine the subnet to announce from another openwrt network?<br>
<br>
Suppose the loopback has the following (additional) address:<br>
<br>
10.1.2.1/24<br>
<br>
Configured in this manner:<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
config interface 'olsrd2_lo'<br>
option ifname 'lo'<br>
option ipaddr '10.27.251.1/24'<br>
option proto 'static'<br>
<br>
It would be cool if we could tell OLSRd2 to detect the subnet to
announce by adding something like:<br>
<br>
config olsrv2<br>
option auto_lan 'olsrd2_lo'<br>
<br>
Federico<br>
</body>
</html>