View Single Post
Posts: 4 | Thanked: 0 times | Joined on Jul 2009
#33
Originally Posted by qole View Post
Good news! And bad news.
...
5. Get the IP address (yes, you get one!)
6. Try to load a web page... see the web browser show the title of the web page at the title bar... then watch the N900 reboot... ...or watch the web page load at a snail's pace, or stall, or not load at all...
How to get IP address?

I need to implement the scheme: internet wifi NAP> N800 (Easy Debian)> usbnet> PC (Ubuntu)
It may be an option Bluetooth PAN, but there is less difference in the speed of usb.

I combined the instructions:
http://wiki.maemo.org/USB_networking (the role of the host performs the N800)
http://talk.maemo.org/showpost.php?p...4&postcount=25 (wlan0 changed to usb0)


My actions:

(/etc/network/interfaces is empty, not usb0, bnep0)

1. N800:
/etc/init.d/usbnet start
/etc/init.d/usbnet start
/etc/init.d/usbnet stop
/etc/init.d/usbnet start

2. PC: modprobe usbnet
(подсоединяю кабель)
3. N800: ifconfig usb0 10.0.0.1 up
4. PC: ifconfig usb0 10.0.0.2 up
root@usxakov:/home/temp.info/n800/man# ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_req=1 ttl=64 time=3.09 ms
64 bytes from 10.0.0.1: icmp_req=2 ttl=64 time=0.491 ms
64 bytes from 10.0.0.1: icmp_req=3 ttl=64 time=0.491 ms
^C
--- 10.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.491/1.357/3.091/1.226 ms

5. N800:
vde_switch -s /var/run/vde_sock -d
slirpvde -s /var/run/vde_sock -D -d
vde_pcapplug -s /var/run/vde_sock usb0 -d

6. PC:
root@usxakov:/etc/network# dhclient -d -s 10.0.0.1
Internet Systems Consortium DHCP Client 4.1-ESV-R4
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/usb0/72:2c:ae:5a:c8:76
Sending on LPF/usb0/72:2c:ae:5a:c8:76
Sending on Socket/fallback
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 3
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 8
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 7
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 9
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 12
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 13
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 15
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 20
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 20
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 17
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 18
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 11
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 11
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 11
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 15
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 11
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 16
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 15
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 13
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 11
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 15
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 10
DHCPDISCOVER on usb0 to 10.0.0.1 port 67 interval 18
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

P.S.
debian-n8x0-v3c.img.ext2 - works well, but does not support vde_pcapplug (vde 2.2.3)
debian-squeeze-img.tar.bz2 - browsers do not work
ubuntu-mer-java-img-v2.tar.bz2 - no image connected