Aiken said:
Step by step tutorial included. The tutorial only covers connection with a Linux PC.
I am not able to get this to work:
- I am using a Caanoo with firmware 1.5.0 connected to a Linux PC running Ubuntu 10.10
Code:
$ uname -a
Linux myhost 2.6.35-23-generic #40-Ubuntu SMP Wed Nov 17 22:15:35 UTC 2010 i686 GNU/Linux
- The Ubuntu install is fresh, no hacks or other unusual modifications
- I added the suggested configuration to /etc/network/interfaces, installed USBNet on my Caanoo
- I connected the Caanoo to my PC, closed the "Usb Connected" window on the Caanoo, then ran USBNet on the Caanoo
- Nothing happens on the PC
- If I run "sudo ifconfig -a", I see the usb0 network adapter, but it doesn't have an "inet" address and I can't ping 10.0.0.2
Code:
$ ifconfig -a
eth0 <removed>
lo <removed>
usb0 Link encap:Ethernet HWaddr 8e:11:d3:ae:25:c5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:90 (90.0 B)
- In the network GUI icon (upper-right corner), under the category "Linux 2.6.24/lf1000 udc Caanoo Ethernet" it says "device not managed"
- The usbnet kernel module appears to be loaded:
Code:
$ sudo lsmod | grep usbnet
usbnet 17312 3 zaurus,cdc_subset,cdc_ether
I searched for related topics/suggestions on-line, and noticed that other projects that use "allow-hotplug usb0" use a different formatting for the configuration in /etc/network/interfaces, as follows:
Code:
$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug usb0
mapping hotplug
script grep
map usb0
iface usb0 inet static
address 10.0.0.1
netmask 255.255.255.0
up iptables -t nat -A POSTROUTING -o eth0 -s 10.0.0.2 -j MASQUERADE
up echo 1 > /proc/sys/net/ipv4/ip_forward
down iptables -t nat -D POSTROUTING -o eth0 -s 10.0.0.2 -j MASQUERADE
down echo 0 > /proc/sys/net/ipv4/ip_forward
I tried this different formatting but, as I expected, it didn't change anything.
Any help/suggestions would be welcome.
Thanks!
Razvan.