OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Security and Networking => Topic started by: evowan on April 03, 2004, 02:09:23 pm

Title: Wifi peer to peer with WinXP
Post by: evowan on April 03, 2004, 02:09:23 pm
I\'ve just got my Wifi CF card today, and after making a change to /etc/pcmcia/wlan-ng.conf, the card is recognised.

Now my desktop setups consist of 2 WinXP PCs. PC1, is the gateway to the internet with IP 192.168.0.1, and PC2 is connected via a wired ethernet hub. PC2 has a bridged connection of it\'s LAN and it\'s wireless USB dongle, the bridge having an IP 192.168.0.2 statically assigned.

Now following the instructions at http://www.tomsnetworking.com/Sections-art...cle53-page1.php (http://www.tomsnetworking.com/Sections-article53-page1.php) I setup an ad-hoc network, no WEP.

Now although the instructions say to use DHCP, when I tell the Z to use DHCP, it can\'t connect. When I tell it to use a static IP, it connects but i can ping or see anything. I\'ve ran Kismet on the Z and it see the ad-hoc network fine, so the wireless network is there \"in the air\".

So basically, I can\'t ping anything at all, despite the Z says it\'s connected. Any help on this?
Title: Wifi peer to peer with WinXP
Post by: lardman on April 03, 2004, 03:15:47 pm
DHCP won\'t work unless you have a DHCP server. I doubt you do (WinXP doesn\'t provide one).

Do you have a firewall up? It may reject ping probes.


Simon
Title: Wifi peer to peer with WinXP
Post by: evowan on April 03, 2004, 03:24:15 pm
Hi lardman,

With PC1 which has WinXP Pro Ed on, when the Internet Connection Sharing is enabled, it recommends that you set clients to get their IP address automatically via DHCP (which I have used in the past). However, now I\'m trying to use static IP addresses for everything. PC2 is running WinXP Home Ed... maybe like you said, the Z can\'t get a DHCP assigned address because WinXP Home Ed doesn\'t have a DHCP server.

No firewalls up at all. I\'ve had the connection working fine with the USB cable, the Z is told that PC1 is the gateway, and it can see all the internet at that point.

I\'m very new to all this Wifi stuff, so maybe I\'ve missed something...
Title: Wifi peer to peer with WinXP
Post by: Synfin0 on April 03, 2004, 04:09:18 pm
WinXP has a DHCP server and that is part of what is enabled when you set up Internet connection sharing. My guess is that the bridge is not relaying the DHCP broadcast properly.

When you tried a static IP address on the Z, did you update the default route?  What error does it give you when you try to ping?
Title: Wifi peer to peer with WinXP
Post by: evowan on April 03, 2004, 04:22:43 pm
Hi Synfin0,

When I tried to ping PC2 using a static IP on the Z, the Z just reported 100% packet loss. I tried \"route add default gw 192.168.0.1\", but that didn\'t help.

So far I\'ve removed the WLAN from the Bridge on PC2. Now when I try to use DHCP for PC2\'s WLAN connecting, it doesn\'t ever get assigned an IP address. However, when I assign a static IP address to it (192.168.1.1), and assign the Z an address 192.168.1.100, I can ping PC2 from the Z. Of course, I still can\'t see the internet from the Z since the connection has been removed from the Bridge now...
Title: Wifi peer to peer with WinXP
Post by: Synfin0 on April 03, 2004, 06:45:07 pm
Hello evowan,

I don\'t think you have a DHCP server PC2\'s wlan interface can reach.  The DHCP server has to be reachable through the interface you are trying to configure and since you aren\'t running a DHCP server on another wlan interface, you won\'t receive an address. (Bridging interfaces is a means around this, but the computer with the bridged interfaces won\'t be able to access the network through the bridge)

Did you try these steps?

1.On PC1, share Internet connection to the interface connected to the HUB using ICS wizard (should have an IP address of 192.168.0.1).
2.On PC2, bridge the wired interface (connected to HUB) and wireless card (set up an ad-hoc network).  None of these interfaces should have or need an IP address (including the bridge).
3.On Z, DHCP should work, but if you want to try static use 192.168.0.x with netmask 255.255.255.0 and default route 192.168.0.1

The Tom\'sNetworking article assumes you have a DHCP server set up.  We\'re also assuming that your wireless card can be bridged.  I have successfully bridged linksys WDT11+WPC11 cards.

You might want to disable and delete all of the ICS and bridging and then start from scratch.
Title: Wifi peer to peer with WinXP
Post by: evowan on April 05, 2004, 09:29:30 am
Hi Synfin0,

I\'ve tried the steps but still no success. I now have a strong feeling that my wireless card on PC2 just cannot be bridged. Do you know if this issue of bridge compatibilityt will still be an issue if I use linux on PC2?
Title: Wifi peer to peer with WinXP
Post by: Synfin0 on April 06, 2004, 02:34:18 am
Hello,

I\'m glad to hear you suggest linux.  The bridging incompatibility is supposedly hardware dependent, so it would probably not work under linux if the card is the problem.  (I haven\'t done any bridging under linux, only under OpenBSD)

The important thing is, you wouldn\'t need to bridge the cards if you worked under linux (unless you really have to).  WinXP defaults into bridging after it has maybe 3 or more interfaces (I bet you can change it, but I don\'t know how), but linux will let you route between them all.  Do you need to bridge for your application?  If not, a bridge-free setup has the advantage of keeping an additional computer on the network (without having to add another interface).

What wireless card are you using?  As long as your card is supported, it should be fairly easy to setup a wired/wireless router.
Title: Wifi peer to peer with WinXP
Post by: tapjpa on April 06, 2004, 02:58:47 am
Here\'s one other possibility that I have used in the past it\'s a DHCP server for Win XP it\'s not a half bad product and it\'s freeware.
http://home.t-online.de/home/hanewin/dhcp-e.htm (http://home.t-online.de/home/hanewin/dhcp-e.htm)
Title: Wifi peer to peer with WinXP
Post by: evowan on April 06, 2004, 10:01:45 am
Hi Synfin0,

My Wifi \'card\' on PC2 is a USB dongle, ZD1202 by ZyDAS. I would like to switch to linux on PC2 but I\'m one step behind on getting the Z running with linux even with the USB cable (I\'ve posted something on this thread http://www.zaurususergroup.com/index.php?n...iewtopic&t=2910 (https://www.oesf.org/forums/index.php?showtopic=2910) ).

I\'ve noticed that WinXP has a \'route\' command that looks similar to linux\'s though I don\'t know enough to drive the command.
Title: Wifi peer to peer with WinXP
Post by: evowan on April 06, 2004, 11:39:05 am
Well, got my USB working with linux now... now to try and get my Wifi card to work...
Title: Wifi peer to peer with WinXP
Post by: evowan on April 06, 2004, 12:00:26 pm
Synfin0,

Doh... it\'s a ZD1201, not a ZD1202 as I previously said. Currently when I plug it in, it just stops my USB mouse from working!
Title: Wifi peer to peer with WinXP
Post by: metal9966 on April 06, 2004, 12:12:06 pm
In building WIFI networks, I have found that it is just easier to buy a $40 access point and route internet from Windose or Linux throught the network (dial up). Or buy a WIFI router if you have cable or DSL. (of course I dont have a Z yet, so have not tried with a Z, but works flawlessly with the Palm Tungston) I tried that Point to Point stuff and it is a mess, plus harder to implement WEP.
Title: Wifi peer to peer with WinXP
Post by: ced on April 06, 2004, 12:17:27 pm
maybe usefull -] http://linux-lc100020.sourceforge.net/ (http://linux-lc100020.sourceforge.net/)
Title: Wifi peer to peer with WinXP
Post by: evowan on April 07, 2004, 05:49:49 am
Hi ced,

Been trying to compile the module again though I\'m having a bit of trouble. Downloaded the code, then had to manually apply the patch to usb.c and hub.c as it states (doesn\'t help when the code is in a .pdf file!), though I\'m unsure of whether I\'ve performed a manual patch properly.

How do I then proceed to use the provided makefile? When I try \'make\', it says -

make: *** No rule to make target `usb.o\', needed by `usbcore\'.  Stop.


Is there a better way to patch the files?
Title: Wifi peer to peer with WinXP
Post by: ced on April 07, 2004, 06:43:18 am
don\'t known dude! I\'ve done a simple \"google\" search on your chipset and it come back with this driver...
Title: Wifi peer to peer with WinXP
Post by: evowan on April 07, 2004, 10:53:17 am
Okay, made some progress now.

I\'ve built the prism2_usb.o module and that reside in my /lib/modules/2.4.22-28mdk/usb and I\'ve also rebuilt my usbcore.o as per instructions from the Zydas tar at http://sourceforge.net/project/showfiles.p...?group_id=94356 (http://sourceforge.net/project/showfiles.php?group_id=94356)

However, it\'s not gone smoothly since when I built the prism2_usb.o, it wouldn\'t initially load properly. The system insisted on loading the  acx100_pci.o module, which I can only assume it\'s wrong since it\'s not a PCI device, and I opened up the USB dongle itself and clearly stamped on it is a chip with \"ZyDAS ZD1201\".

After blacklisting the acx100 module, when it tried to load the prism2_usb module, it came up with a number of errors of unresolved symbols. After banging my head on the wall a few times, started all over again (reinstalling Mandrake source and kernel) and replaced usbcore.o. Now prism2_usb.o was still in the /lib/modules/..., and then magically when I plugged the USB dongle in, /var/log/messages shows prism2_usb.o being loaded with no problems! To verify, lsmod shows -

Module                  Size  Used by    Not tainted
prism2_usb             72324   0  (unused)
p80211                 23424   0  [prism2_usb]
iptable_nat            20814   1  (autoclean)
ip_conntrack           26468   1  (autoclean) [iptable_nat]
ip_tables              15072   3  [iptable_nat]
usbnet                 15806   0
lp                      8160   0
parport_pc             25544   1
parport                34472   1  [lp parport_pc]
es1371                 27788   0
ac97_codec             15828   0  [es1371]
gameport                3268   0  [es1371]
af_packet              14856   0  (autoclean)
sr_mod                 17016   0  (autoclean)
floppy                 55932   0
tulip                  43968   1  (autoclean)
ide-cd                 34052   0
cdrom                  32608   0  [sr_mod ide-cd]
bttv                   99648   0
i2c-algo-bit            8552   0  [bttv]
soundcore               6340   0  [es1371 bttv]
i2c-core               20484   0  [bttv i2c-algo-bit]
videodev                7936   3  [bttv]
ide-scsi               11376   0
scsi_mod              105792   2  [sr_mod ide-scsi]
usbmouse                2936   0  (unused)
keybdev                 2756   0  (unused)
mousedev                5428   1
hid                    24164   0  (unused)
input                   5696   0  [usbmouse keybdev mousedev hid]
usb-uhci               25136   0  (unused)
usbcore                73100   1  [prism2_usb usbnet usbmouse hid usb-uhci]
rtc                     9228   0  (autoclean)


HOWEVER! As I follow the instructions at stage 3 where you set the port type using \"wlanctl-ng wlan0 dot11req_mibset mibattribute=p2CnfPortType=0\", I get an error on return -

wlanctl-ng: No such device

Now, I assume it\'s probably talking about wlan0 since an \'ifconfig\' doesn\'t even show wlan0. Now if anyone can help me take further steps to get a wlan0 up now, I\'d be most greatful.
Title: Wifi peer to peer with WinXP
Post by: evowan on April 07, 2004, 11:00:09 am
I\'ve just realised, it\'s probably not best to even continue this thread now since it\'s not really anything to do with the Z anymore and the topic title isn\'t even accurate anymore since I\'m not using WinXP.... But if anyone likes to PM me to help me out, that would be great!
Title: Wifi peer to peer with WinXP
Post by: lardman on April 07, 2004, 11:03:22 am
Might be worth moving it to \'off topic\' and restating all of the pertinant info

Si
Title: Wifi peer to peer with WinXP
Post by: evowan on April 09, 2004, 08:17:46 am
Hi all,

Just to say that since I had problems with getting my USB ZyDAS chipset Wifi dongle to work with linux, I decided to revert back to trying to get my peer2peer network with WinXP instead as the thread title suggests.

My workaround the hardware and network bridge problem was to install proxy server software on my WinXP machine. By telling the Z to use proxy servers for http, I can at least browse the web from my Z wirelessly. This solution may help anyone else who faces a similar problem.  

As for anything concerning DHCP, etc, I still used static IPs at the end of the day to get this to work.