Z for internet use through USB (WinXP)
courtesy of snorman3 on the devnet boards
Initial Setup - Zaurus (fyi I have an SL-5600)
This works on the SL-6000 as well.
USB Sync address / Zaurus Manager set to default 192.168.129.201
Initial Setup - WinXP box
My router's internal IP address is 192.168.0.1. It also acts as my DHCP server. I have 2 computers sitting behind it @ 192.168.0.100/101. The network adapters are set to obtain IP address / DNS address automatically. Configuration Steps:
1. Your router likely has an internal IP address of 192.168.0.1 unless you have previously changed it. Go into your router's setup and change its internal IP address to something other than the 192.168.0.* subnet...I changed mine to 192.168.1.1. Some routers might not be able to do this..I have a D-LINK 614+. The router should now assign IP addresses in the range 192.168.1.* (if you followed the same configuration as I did)
1. I changed my USB Sync IP / Zaurus manager IPs to 192.168.0.* (not 1) this is necessary.
2. Put your zaurus in the cradle and turn it on...we want Windows to see the network connection so that ICS can be enabled.
1. Go to the advanced tab when you right click on the Local Area Network adapter and enable Internet Sharing. Windows will force the connection to the Z's network adapter to become 192.168.0.1, however the IP of the LAN connection will still remain the same (i.e. My WinXP box still had the IP 192.168.1.100, assigned by the router).
I'm not sure if this is necessary, but I manually pointed the Z connection's TCP/IP settings to point to my router (192.168.1.1) for DNS and entered the IP of my WinXP box (192.168.1.100) for the default gateway.
For Dial-up Users (Using W2K)
1. Right Click your dial-up connection located in the __Network and Dial-up Connections__ in the __Control Panel__. The go to select the __Sharing__ tab on the __Properties__ dialog and enable Internet Connection Sharing. %%%2. While connected to the internet using your dial-up open a dos shell and type "ipconfig /all". This will print out a listing of all our connections including the DNS Servers "". Write down both the the DNS Server numbers. You will add them to the /etc/resolv.conf file in the Zaurus.
1. Ok, telnet into your Z (you might have to suspend/resume to pick up the new IP).
2. Edit /etc/hosts and put your Z's USB sync address as its IP address (at the end of the file). Mine is 192.168.0.100.
3. Edit /etc/resolv.conf and enter the IP address for your router (i.e 192.168.1.1 in my case)...don't forget to remove the 127.0.0.1 address here! If you are using a dial-up use the DNS Server addresses instead.
4. Now you have to add a default route out of the Z. This can be done by typing: route add default gw 192.168.0.1 However, each time you suspend the Z, this will be deleted. In order to overcome this, I created two shell scripts in /etc/hotplug in order to automate this for me. Here they are:
#!/bin/sh route add default gw 192.168.0.1
#!/bin/sh route del default
Add the following line at the end of the usbd_net_if_up() function in /etc/hotplug/usbd.func:
Add the following line at the end of the usbd_net_if_down() function in /etc/hotplug/usbd.func:
5. At this point, I typed 'killall -HUP inetd'. Probably not necessary.
6. Now, put the Z in suspend mode and turn in back on.
7. Telnet into your Z, and ping www.google.com. It should work!!! Opera should work fine too, although the network connection window won't show any active networks.
Basic Trouble Shooting
1. From your desktop ping your Zaurus (e.g. ping 192.168.0.100). If no response recheck physical connections and network settings on both desktop (192.168.0.1) and Zaurus (192.168.0.100).
2. From your Zaurus ping your desktop (e.g. ping 192.168.0.1). Recheck network settings.
3. From your Zaurus ping your router (or Dial-up DNS Server). Check your Internet sharing settings on your desktop and your gateway settings on your Zaurus.
4. From your Zaurus ping www.google.com.