usb networking no longer works

Dimitri spam2 at eflamenco.com
Wed Aug 6 08:13:30 CEST 2008


I've flashed the latest 2008.8 images, and the script I was previously using
to connect to the phone via usb no longer works.

What I used to run (with 2007.2 images) was the following script as sudo in
Ubuntu:
----------------------
#!/bin/bash

iptables -F
ifconfig usb0 192.168.0.200 netmask 255.255.255.0
route add 192.168.0.202 usb0
iptables -I INPUT 1 -s 192.168.0.202 -j ACCEPT
iptables -I OUTPUT 1 -s 192.168.0.200 -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
bash -c echo '1 > /proc/sys/net/ipv4/ip_forward'
----------------------

But now, it fails with errors. I ran it, line by line, the first line that
fails is

ifconfig usb0 192.168.0.200 netmask 255.255.255.0

with the error:
--------------
SIOCSIFADDR: No such device
usb0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
--------------

What's going on?
Dimitri
-- 
View this message in context: http://n2.nabble.com/usb-networking-no-longer-works-tp675218p675218.html
Sent from the Openmoko Community mailing list archive at Nabble.com.





More information about the community mailing list