Re: USB Networking

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Denis Johnson
Date: Thursday, November 6, 2008 - 2:46 am

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@yahoo.de> wrote:

_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: USB Networking, Stefan Monnier, (Wed Nov 5, 1:14 pm)
Re: USB Networking, joezeewails, (Wed Nov 5, 2:13 pm)
Re: USB Networking, Tony Berth, (Thu Nov 6, 1:28 am)
Re: USB Networking, Pander, (Thu Nov 6, 1:54 am)
Re: USB Networking, Denis Johnson, (Thu Nov 6, 2:46 am)
Re: USB Networking, Max Giesbert, (Thu Nov 6, 3:01 am)
Re: USB Networking, Tony Berth, (Thu Nov 6, 4:04 am)
Re: USB Networking, Tony Berth, (Thu Nov 6, 4:06 am)
Re: USB Networking, Denis Johnson, (Thu Nov 6, 6:06 am)