Hi Andrej, Peter, Yoyo, and David, I was quite in a hurry the last two weeks, that is why I not have replied. Sorry.
But this weekend finally i got the desktop:freerunner usb networking running. The crack point was at the desktop linux distro I use (gNewSens) not at shr. I list here my solution: 1) David / Yoyo: is sshd running? It was not. I had even to install and start it: elm@firebolt:~$ sudo apt-get install openssh-server elm@firebolt:~$ sudo /etc apt-get install ssh elm@firebolt:~$ sudo /etc/init.d/ssh start elm@firebolt:~$ ps aux | grep -i ssh root 4950 0.0 0.0 5320 996 ? Ss 20:28 0:00 /usr/sbin/sshd elm 6679 0.0 0.0 312 108 pts/0 R+ 20:50 0:00 grep -i ssh 2) Yoyo: you often asked me about the subnetwork. The mayor problem was that the subnet between the freerunner (eth1: 192.168.0.something) and the desktop (eth0: 192.168.0.57) was overlapping. My solution is to move the eth1 usb connection to the freerunner form 192.168.0.0/24 to 192.168.202.0/24. The majority of the needed information I learn from the following pages: http://wiki.openmoko.org/wiki/USB_Networking http://lists.openmoko.org/pipermail/support/2008-August/#1277 http://lists.openmoko.org/pipermail/support/2008-August/001282.html http://lists.openmoko.org/pipermail/support/2008-August/001288.html http://lists.openmoko.org/pipermail/support/2008-August/001300.html In practices it looks like this: *** on freerunner *** root@om-gta02 ~ # /etc/init.d/networking stop root@om-gta02 ~ # vi /etc/network/interfaces [...] # Ethernet/RNDIS gadget (g_ether) # ... or on host side, usbnet and random hwaddr # elm 2011-06-25 auto usb0 iface usb0 inet static address 192.168.202.202 netmask 255.255.255.0 network 192.168.202.0 up route add default gw 192.168.202.200 metric 8 up echo nameserver 208.67.222.222 > /etc/resolv.conf up echo nameserver 208.67.220.220 >> /etc/resolv.conf down route del default gw 192.168.202.202 metric 8 [...] root@om-gta02 ~ # /etc/init.d/networking start *** on the desktop *** elm@firebolt:~$ sudo ip address add 192.168.202.200/24 dev eth1 elm@firebolt:~$ sudo ip link set dev eth1 up elm@firebolt:~$ sudo iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.202.0/24 elm@firebolt:~$ sudo -i root@firebolt:~# echo 1 > /proc/sys/net/ipv4/ip_forward elm@firebolt:~# exit logout elm@firebolt:~$ 3a) smoke test form desktop elm @firebolt:~$ ping -c 3 192.168.202.202 PING 192.168.202.202 (192.168.202.202) 56(84) bytes of data. 64 bytes from 192.168.202.202: icmp_seq=1 ttl=64 time=2.10 ms 64 bytes from 192.168.202.202: icmp_seq=2 ttl=64 time=1.35 ms 64 bytes from 192.168.202.202: icmp_seq=3 ttl=64 time=1.37 ms --- 192.168.202.202 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 1.350/1.607/2.103/0.353 ms elm@firebolt:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.202.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 elm@firebolt:~$ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 100 link/ether 00:1d:72:92:d1:83 brd ff:ff:ff:ff:ff:ff inet 192.168.0.57/24 brd 192.168.0.255 scope global eth0 inet6 fe80::21d:72ff:fe92:d183/64 scope link valid_lft forever preferred_lft forever 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:1f:11:01:a9:a6 brd ff:ff:ff:ff:ff:ff inet 192.168.202.200/24 scope global eth1 3b) smoke test form freerunner elm@firebolt:~$ ssh [email protected] [...] root@om-gta02 ~ # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.202.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0 0.0.0.0 192.168.202.200 0.0.0.0 UG 8 0 0 usb0 root@om-gta02 ~ # ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:1f:11:01:a9:a5 brd ff:ff:ff:ff:ff:ff inet 192.168.202.202/24 brd 192.168.202.255 scope global usb0 inet6 fe80::21f:11ff:fe01:a9a5/64 scope link valid_lft forever preferred_lft forever root@om-gta02 ~ # cat /etc/resolv.conf nameserver 208.67.222.222 nameserver 208.67.220.220 root@om-gta02 ~ # ping -c 3 192.168.202.200 PING 192.168.202.200 (192.168.202.200): 56 data bytes 64 bytes from 192.168.202.200: seq=0 ttl=64 time=0.000 ms 64 bytes from 192.168.202.200: seq=1 ttl=64 time=0.000 ms 64 bytes from 192.168.202.200: seq=2 ttl=64 time=0.000 ms --- 192.168.202.200 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.000/0.000/0.000 ms root@om-gta02 ~ # ping -c 3 gentoo.org PING gentoo.org (89.16.167.134): 56 data bytes 64 bytes from 89.16.167.134: seq=0 ttl=53 time=70.000 ms 64 bytes from 89.16.167.134: seq=1 ttl=53 time=60.000 ms 64 bytes from 89.16.167.134: seq=2 ttl=53 time=60.000 ms --- gentoo.org ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 60.000/63.333/70.000 ms THANKS TO ALL OFF YOU! Thank you for taking care! Have a great midsummer weekend too, Elmar
