[Olsr-users] Where am I going wrong in the settings.
Teco Boot
(spam-protected)
Thu Apr 10 22:30:53 CEST 2014
So we have two issues.
1. interface up and not running, static routes are still in routing table.
I cannot help you here, I asked someone to assist.
Henning?
2. dyn_gw with ping check doesn’t work.
Long ago I helped Caspar to repair this plugin. I tested, it worked. Let’s see what we can do.
I tested, below my results. It works.
Please verify with same configuration and show your results.
Do you have tcpdump?
Teco
LoadPlugin "olsrd_dyn_gw.so.0.5"
{
PlParam "HNA" "0.0.0.0 0.0.0.0"
PlParam "Ping" "8.8.8.8"
}
Here the probing traffic:
(spam-protected):~# tcpdump -ni eth1 icmp and host 8.8.8.8
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
20:17:50.718596 IP 192.168.222.180 > 8.8.8.8: ICMP echo request, id 26342, seq 1, length 64
20:17:50.898479 IP 8.8.8.8 > 192.168.222.180: ICMP echo reply, id 26342, seq 1, length 64
20:17:55.904213 IP 192.168.222.180 > 8.8.8.8: ICMP echo request, id 26426, seq 1, length 64
20:17:55.924200 IP 8.8.8.8 > 192.168.222.180: ICMP echo reply, id 26426, seq 1, length 64
20:18:00.927936 IP 192.168.222.180 > 8.8.8.8: ICMP echo request, id 26483, seq 1, length 64
20:18:00.945924 IP 8.8.8.8 > 192.168.222.180: ICMP echo reply, id 26483, seq 1, length 64
^C
6 packets captured
6 packets received by filter
0 packets dropped by kernel
(spam-protected):~#
And the HNA entry:
(spam-protected):~# echo "/hna" | nc 127.0.0.1 2006
HTTP/1.0 200 OK
Content-type: text/plain
Table: HNA
Destination Gateway
0.0.0.0/0 172.31.1.1
(spam-protected):~#
Now probe to host that is not on the internet.
LoadPlugin "olsrd_dyn_gw.so.0.5"
{
PlParam "HNA" "0.0.0.0 0.0.0.0"
PlParam "Ping" "11.8.8.8"
}
(spam-protected):~# tcpdump -ni eth1 icmp and host 11.8.8.8
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
20:24:54.291247 IP 192.168.222.180 > 11.8.8.8: ICMP echo request, id 32628, seq 1, length 64
20:25:09.296457 IP 192.168.222.180 > 11.8.8.8: ICMP echo request, id 347, seq 1, length 64
20:25:24.301667 IP 192.168.222.180 > 11.8.8.8: ICMP echo request, id 553, seq 1, length 64
^C
3 packets captured
4 packets received by filter
0 packets dropped by kernel
(spam-protected):~#
(spam-protected):~# echo "/hna" | nc 127.0.0.1 2006
HTTP/1.0 200 OK
Content-type: text/plain
Table: HNA
Destination Gateway
(spam-protected):~#
More information about the Olsr-users
mailing list