OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio


Welcome Guest ( Log In | Register )

> Usb Networking, Debian EABI
post Nov 7 2007, 10:52 PM
Post #1

Group: Members
Posts: 283
Joined: 1-October 07
From: Blacksburg, SC, USA
Member No.: 20,773

Between a Z and a Linux host.

usb-gadget start

The first step would be to configure the device usb0 in /etc/network/interfaces on your Z.

# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet static

usb-gadget already pre-configures usb0 for you, so you can just use the defaults here.

The next step is to configure usb0 on your PC. Again, this is done in /etc/network/interfaces:

iface usb0 inet static

The IP of your Zaurus has been set to, the IP of your PC (for the USB network only!) has been set to

Run ifup usb0 on both your Zaurus and the PC to bring up the devices.
At this point your Zaurus should be able to ping your PC:

# ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=1.3 ms
64 bytes from icmp_seq=1 ttl=64 time=4.1 ms

To allow your Z to connect to the other machines in your local network (LAN), you have to enable IP forwarding on the machine connected to your Z:

echo 1 > /proc/sys/net/ipv4/ip_forward

and use NAT on outgoing connections:

iptables -t nat -A POSTROUTING -s -j MASQUERADE

Go to the top of the page
+Quote Post
Start new topic
post Apr 15 2008, 05:32 AM
Post #2

Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882

Set DNS nameserver?
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 21st October 2016 - 07:45 PM