Author Topic: Connect To Internet Via Z-usb Cable/xp_sp2?  (Read 3007 times)

dati

  • Newbie
  • *
  • Posts: 22
    • View Profile
Connect To Internet Via Z-usb Cable/xp_sp2?
« on: March 31, 2006, 07:00:02 am »
Hello,

I am looking for a way to connect zaurus to internet surfing the web via USB Cable with "Netfront" or "Opera".

I have:
0. Cable Modem
1. Wireless PC Router (Also have build in DHCP)
2. Windows XP Professional SP2 (PC1)
3. Zaurus (Cacko Rom v1.23)

[ISP] -- assign ip address to --> [Cable Modem].
[cable modem] -- assign ip address to --> [wireless router]
[wireless router] -- assign private ip address to --> [PC1]
[Zaurus]  -- assign private ip address to -- [PC1 (Virtual Zaurus Network Card)]

DHCP IP Address Range: 192.168.1.1/24 - 192.168.1.254/24
Zaurus Server: 192.168.129.201/24
Zaurus Client: 192.168.129.1/24

From my understanding, because I have 2 private address
I need to setup NAT on Windows XP as Internet Connection Sharing.

Windows XP Setup:
I have setup Internet Connection on (PC - NIC)
Pointing to (PC - Zaurus NIC) as the private connection.


How do I setup Zaurus to talk to this NAT?

-----------------------------------------------
I've read from the posting of some forum article on the internet

Step 1.
Add something like:
/sbin/route add defaut gw <xp machine ip> to /etc/resolv.conf

    what does xp machine ip (mean?) does it mean
    my PC-NIC IP Address (192.168.1.20)
                      or
    my PC-Zaurus NIC ip address (192.168.129.1)?


Step 2.
In the file /etc/hotplug/usbdnet.conf make sure it have
IP=192.168.129.201
NETMASK=255.255.255.0
DHCPS=yes
DHCPC=no

Step 3.
Start up Netfront (Ignore Connection Error)
from the Konsole type:
     qcop QPE/Network "up()"


I have enable all the Service on Windows XP Internet Sharing
    eg: HTTP/HTTPS/FTP/POP3/SMTP ...

I have also check that the windows firewall have the connection in the exception list.

When I do a ping from my zaurus to
eg: www.microsoft.com

I got an error message destination not reachable!

Any Idea what I have missed?
I can ping from Zaurus to PC (ping 192.168.129.1)
I can ping from PC to Zaurus (ping 192.168.129.201)
-----------------------------------------------
« Last Edit: April 02, 2006, 08:55:11 pm by dati »

uth

  • Full Member
  • ***
  • Posts: 106
    • View Profile
Connect To Internet Via Z-usb Cable/xp_sp2?
« Reply #1 on: March 31, 2006, 04:18:23 pm »
Quote
I've read from the posting of some forum article on the internet

Step 1.
Add something like:
/sbin/route add defaut gw <xp machine ip> to /etc/resolv.conf

That command shouldn't go in /etc/resolv.conf.  resolv.conf is for specifying DNS server.

Quote
    what does xp machine ip (mean?) does it mean
    my PC-NIC IP Address (192.168.1.20)
                      or
    my PC-Zaurus NIC ip address (192.168.129.1)?

The PC-Zaurus one (it needs to be an address the Z can ping before running the command)

try running that command from your command line first,  then do the rest.  That should get you connected.

uth

  • Full Member
  • ***
  • Posts: 106
    • View Profile
Connect To Internet Via Z-usb Cable/xp_sp2?
« Reply #2 on: March 31, 2006, 04:37:16 pm »
To make hotplug automatically configure your default gateway, it looks like you might be able to add

GATEWAY=192.168.129.1

to /etc/hotplug/usbdnet.conf

That should allow you to avoid having to type the "route add default" command everytime you connect.

Though I should add that I'm guessing that should work based on what I saw in the scripts, I havn't tested it myself (yet).   I am interested in making USB-net hotplug work  myself.

dati

  • Newbie
  • *
  • Posts: 22
    • View Profile
Connect To Internet Via Z-usb Cable/xp_sp2?
« Reply #3 on: April 01, 2006, 12:18:16 am »
Thank your uth,

I've tried the Windows XP Internet Connection Sharing Approach without a success.

I only have a limited understanding of networking, you have help me understand about the Windows IP Address in the "route add .." statement, it has always been a mystery to me.

and now I have a better understanding of the file:
/etc/hotplug/usbdnet.conf (Define DHCP (Server/Client) when USB is connected).
/etc/resolv.conf (Define DNS Server)

I have successfully connect to internet via Windows XP SP2 Network Bridge.
I was suppose to reply to this post, but I clicked on the new post button therefore the it is at:


Attempt 1:
Connect To Internet Via Z-usb Cable (xp Bridge)

I'll give the above approach (Internet Connection Sharing) another try.

Attempt 2:
Connect To Internet Via Z-usb Cable (xp ICS)

It is now working.
« Last Edit: April 01, 2006, 08:01:29 pm by dati »