[Commotion-admin] [olsrd-mdp] Nodes without access to a time server cannot use serval key-rings (#1)

Seamus Tuohy notifications at github.com
Wed Feb 26 22:43:25 UTC 2014


This is a known bug, but on mesh networks  where there is no gateway any node not set up in very close temporal proximity will not be able to mesh using serval-mdp.

Fixing this requires either:
  *  Instructions letting people know that they must set up a ntpd server on their non-gateway connected network's, and how to do it.
  * A system for having mesh nodes check for an ntpd server on a mesh if one does not exist.
  * I am partial to the first option

To recreate: 

Set up nodes a day or two apart without access to gateway. Ensure they are far enough apart in date by using the date command.

root at NODE01:/# date
```
Tue Feb 25 22:05:48 UTC 2014
```
root at NODE02:/# date
```
Tue Feb 26 02:25:57 UTC 2014
```

If they are far enough apart, and share a serval key-ring they should still not be able to mesh. 

Ensure that they can see each other:

root at test-001-1011232331:~# ip neighbor list
```
fe80::f2de:f1ff:feda:8176 dev br-lan lladdr f0:de:f1:da:81:76 STALE
10.46.75.120 dev br-lan lladdr f0:de:f1:da:81:76 REACHABLE
100.70.49.27 dev wlan0-1 lladdr 26:a4:3c:46:31:1b STALE
```

Ensure that they can reach each other on the link layer:

root at test-001-1011232331:~# ping 10.46.75.120
```
PING 10.46.75.120 (10.46.75.120): 56 data bytes
64 bytes from 10.46.75.120: seq=0 ttl=64 time=0.849 ms
64 bytes from 10.46.75.120: seq=1 ttl=64 time=0.708 ms
^C
```

Sync times to show that it is time based

NODE 01
root at test-001-1011232331:/# chmod a+x /etc/rc.local 
root at test-001-1011232331:/# /etc/rc.local 
```
Tue Feb 25 21:06:32 UTC 2014
```
root at test-001-1011232331:/# /etc/init.d/network restart

NODE 02
root at test-002-1011232331:/# chmod a+x /etc/rc.local 
root at test-002-1011232331:/# /etc/rc.local 
```
Tue Feb 25 21:06:32 UTC 2014
```
root at test-002-1011232331:/# /etc/init.d/network restart



---
Reply to this email directly or view it on GitHub:
https://github.com/opentechinstitute/olsrd-mdp/issues/1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20140226/185e01b3/attachment.html>


More information about the Commotion-admin mailing list