<div dir="ltr"><div>hello, I will show the outputs of the commands of the 3 nodes before and after cutting off the internet from one of the gw below:<br><br>before<br><br>Node 1 gw:<br>echo '/all' | nc localhost 2006<br>
HTTP/1.0 200 OK<br>Content-type: text/plain<br><br>Table: Links<br>Local IP Remote IP Hyst. LQ NLQ Cost<br>10.5.0.5 10.5.0.6 0.00 1.000 1.000 1.000<br>10.5.0.5 10.5.0.4 0.00 1.000 1.000 1.000<br>
<br>Table: Neighbors<br>IP address SYM MPR MPRS Will. 2 Hop Neighbors<br>10.5.0.4 YES NO NO 3 1<br>10.5.0.6 YES NO NO 3 1<br><br>Table: Topology<br>Dest. IP Last hop IP LQ NLQ Cost<br>
10.5.0.5 10.5.0.4 1.000 1.000 1.000<br>10.5.0.6 10.5.0.4 0.831 1.000 1.202<br>10.5.0.4 10.5.0.5 1.000 1.000 1.000<br>10.5.0.6 10.5.0.5 1.000 1.000 1.000<br>
10.5.0.4 10.5.0.6 1.000 0.831 1.202<br>10.5.0.5 10.5.0.6 1.000 1.000 1.000<br><br>Table: HNA<br>Destination Gateway<br><a href="http://10.5.0.0/16">10.5.0.0/16</a> 10.5.0.5<br><a href="http://0.0.0.0/0">0.0.0.0/0</a> 10.5.0.5<br>
<br>Table: MID<br>IP address Aliases<br><br>Table: Routes<br>Destination Gateway IP Metric ETX Interface<br><a href="http://10.5.0.4/32">10.5.0.4/32</a> 10.5.0.4 1 1.000 wlan0<br><a href="http://10.5.0.6/32">10.5.0.6/32</a> 10.5.0.6 1 1.000 wlan0<br>
<br>======================================<br>route<br>Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br>default 172.16.0.1 0.0.0.0 UG 0 0 0 eth1<br>
10.5.0.0 * 255.255.0.0 U 0 0 0 wlan0<br>10.5.0.4 10.5.0.4 255.255.255.255 UGH 2 0 0 wlan0<br>10.5.0.6 10.5.0.6 255.255.255.255 UGH 2 0 0 wlan0<br>
172.16.0.0 * 255.255.255.0 U 0 0 0 eth1<br><br>Node 2 gw:<br>echo '/all' | nc localhost 2006<br>HTTP/1.0 200 OK<br>Content-type: text/plain<br><br>Table: Links<br>Local IP Remote IP Hyst. LQ NLQ Cost<br>
10.5.0.6 10.5.0.5 0.00 1.000 1.000 1.000<br>10.5.0.6 10.5.0.4 0.00 1.000 0.713 1.400<br><br>Table: Neighbors<br>IP address SYM MPR MPRS Will. 2 Hop Neighbors<br>
10.5.0.4 YES NO NO 3 1<br>10.5.0.5 YES NO NO 3 1<br><br>Table: Topology<br>Dest. IP Last hop IP LQ NLQ Cost<br>10.5.0.5 10.5.0.4 0.940 1.000 1.063<br>
10.5.0.6 10.5.0.4 0.713 1.000 1.400<br>10.5.0.4 10.5.0.5 1.000 0.886 1.128<br>10.5.0.6 10.5.0.5 1.000 1.000 1.000<br>10.5.0.4 10.5.0.6 1.000 0.713 1.400<br>
10.5.0.5 10.5.0.6 1.000 1.000 1.000<br><br>Table: HNA<br>Destination Gateway<br><a href="http://10.5.0.0/16">10.5.0.0/16</a> 10.5.0.6<br><a href="http://0.0.0.0/0">0.0.0.0/0</a> 10.5.0.6<br>
<br>Table: MID<br>IP address Aliases<br><br>Table: Routes<br>Destination Gateway IP Metric ETX Interface<br><a href="http://10.5.0.4/32">10.5.0.4/32</a> 10.5.0.4 1 1.400 wlan0<br><a href="http://10.5.0.5/32">10.5.0.5/32</a> 10.5.0.5 1 1.000 wlan0<br>
<br>===============================================<br>route<br>Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br>default 172.16.0.1 0.0.0.0 UG 0 0 0 eth1<br>
10.5.0.0 * 255.255.0.0 U 0 0 0 wlan0<br>10.5.0.4 10.5.0.4 255.255.255.255 UGH 2 0 0 wlan0<br>10.5.0.5 10.5.0.5 255.255.255.255 UGH 2 0 0 wlan0<br>
172.16.0.0 * 255.255.255.0 U 0 0 0 eth1<br><br><br>3 client node:<br>echo '/all' | nc localhost 2006<br>HTTP/1.0 200 OK <br>Content-type: text/plain<br>
<br>Table: Links<br>Local IP Remote IP Hyst. LQ NLQ Cost<br>10.5.0.4 10.5.0.6 0.00 0.761 1.000 1.313<br>10.5.0.4 10.5.0.5 0.00 1.000 1.000 1.000<br><br>Table: Neighbors<br>
IP address SYM MPR MPRS Will. 2 Hop Neighbors<br>10.5.0.5 YES NO NO 3 1<br>10.5.0.6 YES NO NO 3 1<br><br>Table: Topology<br>Dest. IP Last hop IP LQ NLQ Cost<br>
10.5.0.5 10.5.0.4 1.000 1.000 1.000<br>10.5.0.6 10.5.0.4 0.761 1.000 1.313<br>10.5.0.4 10.5.0.5 1.000 1.000 1.000<br>10.5.0.6 10.5.0.5 1.000 1.000 1.000<br>
10.5.0.4 10.5.0.6 1.000 0.643 1.555<br>10.5.0.5 10.5.0.6 1.000 1.000 1.000<br><br>Table: HNA<br>Destination Gateway<br><a href="http://10.5.0.0/16">10.5.0.0/16</a> 10.5.0.4<br><a href="http://0.0.0.0/0">0.0.0.0/0</a> 10.5.0.5<br>
<a href="http://0.0.0.0/0">0.0.0.0/0</a> 10.5.0.6<br><br>Table: MID<br>IP address Aliases<br><br>Table: Routes<br>Destination Gateway IP Metric ETX Interface<br><a href="http://0.0.0.0/0">0.0.0.0/0</a> 10.5.0.5 1 1.000 wlan0<br>
<a href="http://10.5.0.5/32">10.5.0.5/32</a> 10.5.0.5 1 1.000 wlan0<br><a href="http://10.5.0.6/32">10.5.0.6/32</a> 10.5.0.6 1 1.313 wlan0<br><br>==========================================<br>
route<br>Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br>default 10.5.0.5 0.0.0.0 UG 2 0 0 wlan0<br>10.5.0.0 * 255.255.0.0 U 0 0 0 wlan0<br>
10.5.0.5 10.5.0.5 255.255.255.255 UGH 2 0 0 wlan0<br>10.5.0.6 10.5.0.6 255.255.255.255 UGH 2 0 0 wlan0<br>192.168.1.0 * 255.255.255.0 U 0 0 0 eth0<br>
<br>after disconnecting the internet from node 1 gw<br><br>Node 1 gw:<br>echo '/all' | nc localhost 2006<br>HTTP/1.0 200 OK<br>Content-type: text/plain<br><br>Table: Links<br>Local IP Remote IP Hyst. LQ NLQ Cost<br>
10.5.0.5 10.5.0.6 0.00 1.000 1.000 1.000<br>10.5.0.5 10.5.0.4 0.00 1.000 1.000 1.000<br><br>Table: Neighbors<br>IP address SYM MPR MPRS Will. 2 Hop Neighbors<br>
10.5.0.4 YES NO NO 3 1<br>10.5.0.6 YES NO NO 3 1<br><br>Table: Topology<br>Dest. IP Last hop IP LQ NLQ Cost<br>10.5.0.5 10.5.0.4 1.000 1.000 1.000<br>
10.5.0.6 10.5.0.4 0.721 1.000 1.386<br>10.5.0.4 10.5.0.5 1.000 1.000 1.000<br>10.5.0.6 10.5.0.5 1.000 1.000 1.000<br>10.5.0.4 10.5.0.6 1.000 0.721 1.386<br>
10.5.0.5 10.5.0.6 1.000 1.000 1.000<br><br>Table: HNA<br>Destination Gateway<br><a href="http://10.5.0.0/16">10.5.0.0/16</a> 10.5.0.5<br><a href="http://0.0.0.0/0">0.0.0.0/0</a> 10.5.0.6<br>
<br>Table: MID<br>IP address Aliases<br><br>Table: Routes<br>Destination Gateway IP Metric ETX Interface<br><a href="http://0.0.0.0/0">0.0.0.0/0</a> 10.5.0.6 1 1.000 wlan0<br><a href="http://10.5.0.4/32">10.5.0.4/32</a> 10.5.0.4 1 1.000 wlan0<br>
<a href="http://10.5.0.6/32">10.5.0.6/32</a> 10.5.0.6 1 1.000 wlan0<br><br>==============================================<br>route<br>Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br>
default 172.16.0.1 0.0.0.0 UG 0 0 0 eth1<br>default 10.5.0.6 0.0.0.0 UG 2 0 0 wlan0<br>10.5.0.0 * 255.255.0.0 U 0 0 0 wlan0<br>
10.5.0.4 10.5.0.4 255.255.255.255 UGH 2 0 0 wlan0<br>10.5.0.6 10.5.0.6 255.255.255.255 UGH 2 0 0 wlan0<br>172.16.0.0 * 255.255.255.0 U 0 0 0 eth1<br>
<br>Node 2 gw:<br>echo '/all' | nc localhost 2006<br>HTTP/1.0 200 OK<br>Content-type: text/plain<br><br>Table: Links<br>Local IP Remote IP Hyst. LQ NLQ Cost<br>10.5.0.6 10.5.0.5 0.00 1.000 1.000 1.000<br>
10.5.0.6 10.5.0.4 0.00 1.000 0.732 1.363<br><br>Table: Neighbors<br>IP address SYM MPR MPRS Will. 2 Hop Neighbors<br>10.5.0.4 YES NO NO 3 1<br>10.5.0.5 YES NO NO 3 1<br>
<br>Table: Topology<br>Dest. IP Last hop IP LQ NLQ Cost<br>10.5.0.5 10.5.0.4 1.000 1.000 1.000<br>10.5.0.6 10.5.0.4 0.732 1.000 1.363<br>10.5.0.4 10.5.0.5 1.000 1.000 1.000<br>
10.5.0.6 10.5.0.5 1.000 1.000 1.000<br>10.5.0.4 10.5.0.6 1.000 0.732 1.363<br>10.5.0.5 10.5.0.6 1.000 1.000 1.000<br><br>Table: HNA<br>Destination Gateway<br><a href="http://10.5.0.0/16">10.5.0.0/16</a> 10.5.0.6<br>
<a href="http://0.0.0.0/0">0.0.0.0/0</a> 10.5.0.6<br><br>Table: MID<br>IP address Aliases<br><br>Table: Routes<br>Destination Gateway IP Metric ETX Interface<br><a href="http://10.5.0.4/32">10.5.0.4/32</a> 10.5.0.4 1 1.363 wlan0<br>
<a href="http://10.5.0.5/32">10.5.0.5/32</a> 10.5.0.5 1 1.000 wlan0<br><br>======================================================<br>route<br>Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br>
default 172.16.0.1 0.0.0.0 UG 0 0 0 eth1<br>10.5.0.0 * 255.255.0.0 U 0 0 0 wlan0<br>10.5.0.4 10.5.0.4 255.255.255.255 UGH 2 0 0 wlan0<br>
10.5.0.5 10.5.0.5 255.255.255.255 UGH 2 0 0 wlan0<br>172.16.0.0 * 255.255.255.0 U 0 0 0 eth1<br><br>3 client node:<br>echo '/all' | nc localhost 2006<br>
HTTP/1.0 200 OK<br>Content-type: text/plain<br><br>Table: Links<br>Local IP Remote IP Hyst. LQ NLQ Cost<br>10.5.0.4 10.5.0.6 0.00 0.831 1.000 1.202<br>10.5.0.4 10.5.0.5 0.00 1.000 1.000 1.000<br>
<br>Table: Neighbors<br>IP address SYM MPR MPRS Will. 2 Hop Neighbors<br>10.5.0.5 YES NO NO 3 1<br>10.5.0.6 YES NO NO 3 1<br><br>Table: Topology<br>Dest. IP Last hop IP LQ NLQ Cost<br>
10.5.0.5 10.5.0.4 1.000 1.000 1.000<br>10.5.0.6 10.5.0.4 0.831 1.000 1.202<br>10.5.0.4 10.5.0.5 1.000 1.000 1.000<br>10.5.0.6 10.5.0.5 1.000 1.000 1.000<br>
10.5.0.4 10.5.0.6 1.000 0.831 1.202<br>10.5.0.5 10.5.0.6 1.000 1.000 1.000<br><br>Table: HNA<br>Destination Gateway<br><a href="http://10.5.0.0/16">10.5.0.0/16</a> 10.5.0.4<br><a href="http://0.0.0.0/0">0.0.0.0/0</a> 10.5.0.5<br>
<a href="http://0.0.0.0/0">0.0.0.0/0</a> 10.5.0.6<br><br>Table: MID<br>IP address Aliases<br><br>Table: Routes<br>Destination Gateway IP Metric ETX Interface<br><a href="http://0.0.0.0/0">0.0.0.0/0</a> 10.5.0.5 1 1.000 wlan0<br>
<a href="http://10.5.0.5/32">10.5.0.5/32</a> 10.5.0.5 1 1.000 wlan0<br><a href="http://10.5.0.6/32">10.5.0.6/32</a> 10.5.0.6 1 1.202 wlan0<br><br>===============================================<br>
route<br>Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br>default 10.5.0.5 0.0.0.0 UG 2 0 0 wlan0<br>10.5.0.0 * 255.255.0.0 U 0 0 0 wlan0<br>
10.5.0.5 10.5.0.5 255.255.255.255 UGH 2 0 0 wlan0<br>10.5.0.6 10.5.0.6 255.255.255.255 UGH 2 0 0 wlan0<br>192.168.1.0 * 255.255.255.0 U 0 0 0 eth0<br>
<br></div>end<br><br>at node 1 gw, may notice that it added the new default "default 10.5.0.6 0.0.0.0 UG 2 0 0 wlan0" route but both the client node 2 when node 1 gw are without internet connection, I do not know why he did not remove the first route that is not more being achieved. Maybe it's because the wan node 1 gw this set of static and not in dhcp mode.<br>
<br>Att<br>Anderson Junior<br><br><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-08 5:32 GMT-04:00 Henning Rogge <span dir="ltr"><<a href="mailto:hrogge@gmail.com" target="_blank">hrogge@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="">On Tue, Apr 8, 2014 at 3:53 AM, ANDERSON JUNIOR GADO DA SILVA <span dir="ltr"><<a href="mailto:andersonscinfo@gmail.com" target="_blank">andersonscinfo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>Hi, I spent the weekend and all day today trying to understand where this my mistake, but so far no concegui find, I'll try clearly explain my test environment, reduce to 3 the number of routers, let's go:<br>
<br>Node 1 gw<br>Node 2 gw<br>3 client node<br><br>the 2 nodes that are gw, I configured the wan interfaces with fixed ip, catching internet switch, all routers are close, the node 3 cable I have connected my computer to test the internet, so I'll call the 3 routers, logo node 3 chooses a wheel, sometimes the node 1 node 2 times.<br>
<br>everything working fine I will do some testing, I see that this pointed to the the route to node 1, then it will switch and lock the internet from node 1 to see if the node 3 will change the route to node 2 that still has internet but this does not happen, then I see this as the routing table and it has not changed, still pointing to node 1, only works if I restart olsr (/ etc / init.d / olsrd restart), when I do that it points to route to node 2, I wonder if I have to make a script and put it in cron will clear this route table from time to time, or how to make it update routes when a change occurs in the topology below follows like this now my olsr.conf</div>
</div></div></blockquote><div><br></div></div><div>You should see the HNA (<span style="font-size:1em">Host and Network Association) of node one vanishing (you can check with the txtinfo output on node 3).</span></div>
<div><span style="font-size:1em"><br></span></div><div><span style="font-size:1em">If it does not vanish your usage/configuration of the dyn_gw plugin doesn't work, which makes olsr not to detect your internet loss.</span></div>
<span class="HOEnZb"><font color="#888888">
<div><span style="font-size:1em"><br></span></div><div><span style="font-size:1em">Henning Rogge</span></div></font></span></div></div></div>
</blockquote></div><br><br></div></div>