USB Networking

Tony Berth tonyberth at googlemail.com
Thu Nov 6 12:06:07 CET 2008


the wiki posted solution was tested by myself on a the currebt debian and
did work! Are you using the same environment?

Cheers

Tony

On Thu, Nov 6, 2008 at 10:46 AM, Denis Johnson <denis.johnson at gmail.com>wrote:

> I have had this setting for months it does not work for me.
>
> Whenever I want to connect my FR, I must first plug it in into the usb
> and then run the following script which someone once posted here or on
> the #openmoko irc. Until I run ths script I cannot ping and hence ssh
> into the FR. Unfortunately I don't know enough to integrate and
> automate what the script does into my interfaces file. If someone can
> shed some more light, it would be appreciated:
>
> ----------------------------------
> #!/bin/sh
> # Enables Hostside USB-Networking for neo
> ifconfig usb0 down
> ifconfig usb0 192.168.0.200 netmask 255.255.255.0 up
> iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
> echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables -P FORWARD ACCEPT
> route add -host 192.168.0.202 gw 192.168.0.200
> route -n | grep -e "Destination" -e "usb0"
> ----------------------------------
>
> cheers Denis
>
> On Thu, Nov 6, 2008 at 7:13 AM, joezeewails <joezeewails at yahoo.de> wrote:
> >
> > Stefan Monnier wrote:
> > >
> > > That's probably not right.  You probably want to try "allow-hotplug
> > > ubs0" instead.  "auto" means to do it at boot time and it may just fail
> > > if (for some reason) the usb0 interface is not yet created.
> > >
> > >
> > >         Stefan
> > >
> > I could confirm this.
> > It doesn't work with "auto usb0" with "allow-hotplug usb0" it works just
> > fine.
> > Every time I plug the Freerunner in my debian etch it brings the
> > interface up.
> > I use the version from the wiki with a extra freerunner script.
> >
> > My entry in /etc/network/interfaces:
> >
> > #freerunner
> > allow-hotplug usb0
> > iface usb0 inet static
> > address 192.168.0.200
> > netmask 255.255.255.0
> > post-up /etc/network/freerunner start
> > pre-down /etc/network/freerunner stop
> >
> >
> >
> > Someone should correct the wiki, should I?
> >
> >
> > Cheers,
> > Joe
> >
> >
> > _______________________________________________
> > Openmoko community mailing list
> > community at lists.openmoko.org
> > http://lists.openmoko.org/mailman/listinfo/community
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/community/attachments/20081106/c6b754aa/attachment.htm 


More information about the community mailing list