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"><<a href="mailto:denis.johnson@gmail.com">denis.johnson@gmail.com</a>></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'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 > /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 "Destination" -e "usb0"<br>
----------------------------------<br>
<br>
cheers Denis<br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, Nov 6, 2008 at 7:13 AM, joezeewails <<a href="mailto:joezeewails@yahoo.de">joezeewails@yahoo.de</a>> wrote:<br>
><br>
> Stefan Monnier wrote:<br>
> ><br>
> > That's probably not right. You probably want to try "allow-hotplug<br>
> > ubs0" instead. "auto" means to do it at boot time and it may just fail<br>
> > if (for some reason) the usb0 interface is not yet created.<br>
> ><br>
> ><br>
> > Stefan<br>
> ><br>
> I could confirm this.<br>
> It doesn't work with "auto usb0" with "allow-hotplug usb0" it works just<br>
> fine.<br>
> Every time I plug the Freerunner in my debian etch it brings the<br>
> interface up.<br>
> I use the version from the wiki with a extra freerunner script.<br>
><br>
> My entry in /etc/network/interfaces:<br>
><br>
> #freerunner<br>
> allow-hotplug usb0<br>
> iface usb0 inet static<br>
> address <a href="http://192.168.0.200" target="_blank">192.168.0.200</a><br>
> netmask <a href="http://255.255.255.0" target="_blank">255.255.255.0</a><br>
> post-up /etc/network/freerunner start<br>
> pre-down /etc/network/freerunner stop<br>
><br>
><br>
><br>
> Someone should correct the wiki, should I?<br>
><br>
><br>
> Cheers,<br>
> Joe<br>
><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>
<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>