<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks.<div><br></div><div>I didn't see the error messages anymore and route is added. Packets flow into tunnel, but receiving gateway node doesn't forward. I'll try to find out why.</div><div>I am couple of weeks offline, so keep patience.</div><div><br></div><div>Teco</div><div><br></div><div><br><div><div>Op 20 sep 2011, om 23:03 heeft Markus Kittenberger het volgende geschreven:</div><br class="Apple-interchange-newline"><blockquote type="cite">i just pushed a patch to stable that should fix this bug,.. <div><div><br></div><div>Markus<br><br><div class="gmail_quote">On Fri, Aug 26, 2011 at 4:12 PM, Teco Boot <span dir="ltr"><<a href="mailto:teco@inf-net.nl">teco@inf-net.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have problems with SmartGateway. Add route to tunnel is rejected.<br>
<br>
I use dyn_gw also. But this node has no default route. So I think it is not dyn_gw.<br>
<br>
If selected GW is a 1-hop away destination, is traffic sent through tunnel?<br>
Or directly via if wan0? Looks smart. Or is this routing entry unexpected?<br>
<br>
<br>
Syslog:<br>
=======<br>
Aug 26 13:15:25 AHR-175-169 olsrd[2199]: Received netlink error code Invalid argument (-22)<br>
Aug 26 13:15:26 AHR-175-169 olsrd[2199]: . error: add route to <a href="http://0.0.0.0/0.0.0.0" target="_blank">0.0.0.0/0.0.0.0</a> via 0.0.0.0 dev void onlink (Resource temporarily unavailable 11)<br>
Aug 26 13:15:26 AHR-175-169 olsrd[2199]: . error while setting inetgw tunnel route to <a href="http://0.0.0.0/0.0.0.0" target="_blank">0.0.0.0/0.0.0.0</a> for if 19<br>
Aug 26 13:15:26 AHR-175-169 olsrd[2199]: Received netlink error code Invalid argument (-22)<br>
Aug 26 13:15:26 AHR-175-169 olsrd[2199]: . error: add route to <a href="http://0.0.0.0/0.0.0.0" target="_blank">0.0.0.0/0.0.0.0</a> via 0.0.0.0 dev void onlink (Resource temporarily unavailable 11)<br>
Aug 26 13:15:26 AHR-175-169 olsrd[2199]: . error while setting inetgw tunnel route to <a href="http://0.0.0.0/0.0.0.0" target="_blank">0.0.0.0/0.0.0.0</a> for if 19<br>
Aug 26 13:15:26 AHR-175-169 olsrd[2199]: Received netlink error code File exists (-17)<br>
<br>
GW info:<br>
========<br>
Table: Gateways<br>
Status Gateway IP ETX Hopcnt Uplink Downlnk IPv4 IPv6 Prefix<br>
s- 172.31.175.166 1.000 1 120 1000 ipv4(n) - -<br>
u- 172.31.175.173 1.000 1 120 1000 ipv4(n) - -<br>
<br>
Tunnel:<br>
=======<br>
tnl_a6af1fac Link encap:IPIP Tunnel HWaddr<br>
inet addr:172.31.175.169 P-t-P:172.31.175.169 Mask:255.255.255.255<br>
UP POINTOPOINT RUNNING NOARP MTU:1480 Metric:1<br>
RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:0<br>
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)<br>
<br>
Default route:<br>
==============<br>
default via 172.31.175.166 dev wlan0 table 223 metric 4 onlink<br>
<br>
Config:<br>
=======<br>
SmartGateway yes<br>
LoadPlugin "olsrd_dyn_gw.so.0.5"<br>
{<br>
PlParam "HNA" "0.0.0.0 0.0.0.0"<br>
PlParam "HNA" "0.0.0.0 128.0.0.0"<br>
PlParam "HNA" "128.0.0.0 128.0.0.0"<br>
PlParam "HNA" "0.0.0.0 192.0.0.0"<br>
PlParam "HNA" "64.0.0.0 192.0.0.0"<br>
PlParam "HNA" "128.0.0.0 192.0.0.0"<br>
PlParam "HNA" "192.0.0.0 192.0.0.0"<br>
}<br>
<br>
<br>
Result when SmartGateway should use tunnel.<br>
I moved router #169 from #166 towards #173.<br>
Routing switched to #173, including traffic<br>
to Internet.<br>
===========================================<br>
Every 2.0s: olsr -l ; olsr -g ; echo ; ip route show table all | grep "default via" ; echo ; traceroute -n 8.8.8.8 Fri Aug 26 13:35:44 2011<br>
<br>
Table: Links<br>
Local IP Remote IP Hyst. LQ NLQ Cost<br>
172.31.175.169 172.31.175.166 0.00 1.000 0.607 1.645<br>
172.31.175.169 172.31.175.173 0.00 1.000 1.000 1.000<br>
<br>
Table: Gateways<br>
Status Gateway IP ETX Hopcnt Uplink Downlnk IPv4 IPv6 Prefix<br>
s- 172.31.175.166 1.645 1 120 1000 ipv4(n) - -<br>
u- 172.31.175.173 1.000 1 120 1000 ipv4(n) - -<br>
<br>
default via 172.31.175.173 dev wlan0 table 223 metric 4 onlink<br>
<br>
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets<br>
1 172.31.175.173 0.618 ms 0.492 ms 0.671 ms<br>
2 * * *<br>
3 213.51.132.193 26.720 ms 27.714 ms 44.023 ms<br>
4 213.51.157.42 45.014 ms 67.329 ms 68.274 ms<br>
5 213.51.158.146 69.222 ms 91.281 ms 92.216 ms<br>
6 72.14.219.220 117.372 ms 117.239 ms 118.354 ms<br>
7 209.85.254.95 119.239 ms 209.85.254.90 96.420 ms 96.729 ms<br>
8 209.85.255.60 81.467 ms 81.439 ms 60.172 ms<br>
9 216.239.49.38 76.460 ms 75.945 ms 63.348 ms<br>
10 209.85.255.126 63.488 ms 43.024 ms 209.85.255.130 62.719 ms<br>
11 8.8.8.8 46.431 ms 59.123 ms 60.449 ms<br>
<br>
<br>
Teco<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Olsr-dev mailing list<br>
<a href="mailto:Olsr-dev@lists.olsr.org">Olsr-dev@lists.olsr.org</a><br>
<a href="https://lists.olsr.org/mailman/listinfo/olsr-dev" target="_blank">https://lists.olsr.org/mailman/listinfo/olsr-dev</a><br>
</font></blockquote></div><br></div></div>
</blockquote></div><br></div></body></html>