View source for USB Networking/it

From Openmoko

Jump to: navigation, search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Administrators.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page:

Template used on this page:

Return to USB Networking/it.

Personal tools

Lato Neo1973

Di default il Neo1973 ha un'interfaccia usb0 che lavora insieme al dispositivo Ethernet (g_ether) compilato dentro il kernel.

Lato Desktop

Metodo manuale

Modprobe (da tradurre) il modulo usbnet e configura l'interfaccia usb0:

ifconfig usb0 192.168.0.200 netmask 255.255.255.0

Metodo Automatico

Preso dal post Hotplugging usbnetdi Marcin 'Hrw' Juszkiewicz.

Modifica il file /etc/network/interfaces (in Debian o Distro simili):

allow-hotplug usb0
iface usb0 inet static
        address 192.168.0.200
        netmask 255.255.255.0
        network 192.168.0.0
        post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up iptables -P FORWARD ACCEPT

E ora quando connetti il telefono (che ha l'indirizzo IP 192.168.0.202) esso prende automaticamente la connessione al mondo.

Connessione al telefono

Dopo ssh root@192.168.0.202 con password vuota per entrare nel telefono.