the wiki posted solution was tested by myself on a the currebt debian and did work! Are you using the same environment?<br><br>Cheers<br><br>Tony<br><br><div class="gmail_quote">On Thu, Nov 6, 2008 at 10:46 AM, Denis Johnson <span dir="ltr">&lt;<a href="mailto:denis.johnson@gmail.com">denis.johnson@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have had this setting for months it does not work for me.<br>
<br>
Whenever I want to connect my FR, I must first plug it in into the usb<br>
and then run the following script which someone once posted here or on<br>
the #openmoko irc. Until I run ths script I cannot ping and hence ssh<br>
into the FR. Unfortunately I don&#39;t know enough to integrate and<br>
automate what the script does into my interfaces file. If someone can<br>
shed some more light, it would be appreciated:<br>
<br>
----------------------------------<br>
#!/bin/sh<br>
# Enables Hostside USB-Networking for neo<br>
ifconfig usb0 down<br>
ifconfig usb0 <a href="http://192.168.0.200" target="_blank">192.168.0.200</a> netmask <a href="http://255.255.255.0" target="_blank">255.255.255.0</a> up<br>
<div class="Ih2E3d">iptables -A POSTROUTING -t nat -j MASQUERADE -s <a href="http://192.168.0.0/24" target="_blank">192.168.0.0/24</a><br>
</div><div class="Ih2E3d">echo 1 &gt; /proc/sys/net/ipv4/ip_forward<br>
</div>iptables -P FORWARD ACCEPT<br>
route add -host <a href="http://192.168.0.202" target="_blank">192.168.0.202</a> gw <a href="http://192.168.0.200" target="_blank">192.168.0.200</a><br>
route -n | grep -e &quot;Destination&quot; -e &quot;usb0&quot;<br>
----------------------------------<br>
<br>
cheers Denis<br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, Nov 6, 2008 at 7:13 AM, joezeewails &lt;<a href="mailto:joezeewails@yahoo.de">joezeewails@yahoo.de</a>&gt; wrote:<br>
&gt;<br>
&gt; Stefan Monnier wrote:<br>
&gt; &gt;<br>
&gt; &gt; That&#39;s probably not right. &nbsp;You probably want to try &quot;allow-hotplug<br>
&gt; &gt; ubs0&quot; instead. &nbsp;&quot;auto&quot; means to do it at boot time and it may just fail<br>
&gt; &gt; if (for some reason) the usb0 interface is not yet created.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; Stefan<br>
&gt; &gt;<br>
&gt; I could confirm this.<br>
&gt; It doesn&#39;t work with &quot;auto usb0&quot; with &quot;allow-hotplug usb0&quot; it works just<br>
&gt; fine.<br>
&gt; Every time I plug the Freerunner in my debian etch it brings the<br>
&gt; interface up.<br>
&gt; I use the version from the wiki with a extra freerunner script.<br>
&gt;<br>
&gt; My entry in /etc/network/interfaces:<br>
&gt;<br>
&gt; #freerunner<br>
&gt; allow-hotplug usb0<br>
&gt; iface usb0 inet static<br>
&gt; address <a href="http://192.168.0.200" target="_blank">192.168.0.200</a><br>
&gt; netmask <a href="http://255.255.255.0" target="_blank">255.255.255.0</a><br>
&gt; post-up /etc/network/freerunner start<br>
&gt; pre-down /etc/network/freerunner stop<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Someone should correct the wiki, should I?<br>
&gt;<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Joe<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Openmoko community mailing list<br>
&gt; <a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
&gt; <a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
<br>
_______________________________________________<br>
Openmoko community mailing list<br>
<a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
<a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
</div></div></blockquote></div><br>