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 address 192.168.129.10 netmask 255.255.255.0 network 192.168.129.0 gateway 192.168.129.1 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 address 192.168.129.1 pointopoint 192.168.129.10 netmask 255.255.255.0 network 192.168.129.0 broadcast 192.168.129.255 The IP of your Zaurus has been set to 192.168.129.10, the IP of your PC (for the USB network only!) has been set to 192.168.129.1. 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 192.168.129.1 PING 192.168.129.1 (192.168.129.1): 56 data bytes 64 bytes from 192.168.129.1: icmp_seq=0 ttl=64 time=1.3 ms 64 bytes from 192.168.129.1: 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 192.168.129.0/24 -j MASQUERADE |
|
|
|
dlj0 QUOTE(scottlfa @ Nov 8 2007, 01:52 AM) Be... Nov 29 2007, 08:26 AM
ZDevil That's an essential tip. Wikify it? Nov 30 2007, 12:03 PM
axeTail QUOTE(ZDevil @ Nov 30 2007, 10:03 PM) Tha... Apr 14 2008, 02:42 AM
axeTail QUOTE(scottlfa @ Nov 8 2007, 08:52 AM) Be... Apr 14 2008, 12:11 PM
ZDevil Set DNS nameserver? Apr 15 2008, 05:32 AM
mars QUOTE(ZDevil @ Apr 15 2008, 01:32 PM) Set... Jun 9 2008, 09:38 PM
Osage QUOTE(scottlfa @ Nov 8 2007, 08:52 AM) Be... Jun 22 2008, 02:09 AM
ShiroiKuma I'm using USB networking on the HTC Universal ... Feb 25 2009, 10:14 AM
scottlfa Been getting more and more interested in try Debia... Mar 30 2009, 09:55 AM
axellira Thanks . Did someone put it on the wiki already? Jun 21 2009, 12:49 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 23rd May 2013 - 06:05 AM |