Re: [wlug] Wireless TCP/IP

How can you "see" the AP? (ie, how are you trying to observe it) Have you given it an IP address in the same subnet as your network cards? Wireless Ad-Hoc PC to Notepad ----------------------------- Usng PC Windows ME Zyxel USB Wlan Dell Notepad; The wifi card's a Netgear WG511. www.netgear.com I have a Dell Notepad Inspiron 2650 Intel Chip running Mandrake 10 KDE 3.2 Kernel 2.6.3-7mdk To get wlan up ============== Setup Windows PC using manual IP 192.168.0.1 mask 255.255.255.0 wifi Ad-Hoc chanel 6 Run USB Wifi Linux as SU (root) kedit /etc/wlan/wlancfg-deb1 kedit /etc/modules.conf alias eth1 prism54 ifconfig eth1 inet 192.168.0.5 netmask 255.255.255.0 broadcast 192.168.0.255 route add default gw 192.168.0.1 netmask 255.255.255.0 eth1 iwconfig eth1 ESSID "deb1" mode ad-hoc channel 6 /etc/pcmcia/network start eth1 Outcome ======= Have a strong connection between computers But cannot access computers or internet No IP address No Ping etc if I reboot using LAN everything OK (Samba, Internet) Results ------- Windows machine netstat shows nothing active ping 192.168.0.5 times out ping 192.168.0.1 excellent Linux machine apradar result eth1 Scan completed : NEW AP from accesspoint scan essid.length 4 ESSID:"deb1" Mode:Ad-Hoc 1 Encryption key:off Frequency:2.437GHz quality: -56 ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. [1]+ Stopped ping 192.168.0.1 Hangs! iwlist eth1 scanning eth1 Scan completed : Cell 01 - Address: 42:F5:A8:9E:54:CF ESSID:"deb1" Mode:Ad-Hoc Encryption key:off Frequency:2.437GHz Quality:190/0 Signal level:-55 dBm Noise level:-245 dBm route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.3 * 255.255.255.255 UH 1 0 0 sl0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default * 0.0.0.0 U 1 0 0 sl0 Does not show eth1? iwspy eth1 eth1 Statistics collected: 00:00:00:00:28:C2 : Quality:0 Signal level:0 Noise level:0 Link/Cell/AP : Quality:188/0 Signal level:-53 dBm Noise level:-5 dBm (updated) Typical/Reference : Quality:0/0 Signal level:-80 dBm Noise level:-256 dBm iwconfig lo no wireless extensions. eth0 no wireless extensions. eth1 IEEE 802.11b/g ESSID:"deb1" Nickname:"mordor" Mode:Ad-Hoc Channel:6 Cell: 42:F5:A8:9E:54:CF Bit Rate:11Mb/s Tx-Power=31 dBm Sensitivity=20/200 Retry min limit:8 RTS thr:2347 B Fragment thr:2346 B Encryption key:off Link Quality:177/0 Signal level:-53 dBm Noise level:-32 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 sl0 ESSID:off/any Nickname:"" NWID:8 Channel:80 Access Point: FF:BF:21:00:00:00 Bit Rate=-1.07375e+06kb/s Tx-Power=-1073746380 dBm Sensitivity=8/0 Retry:on RTS thr=-1073746380 B Fragment thr=-1073746380 B Encryption key:0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000 Power Management:on NB sl0 is my Modem cat /proc/net/dev Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed lo: 24920 364 0 0 0 0 0 0 24920 364 0 0 0 0 0 0 eth0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 eth1: 0 0 0 0 0 0 0 0 4082 31 0 0 0 0 0 0 sl0: 0 0 0 0 0 0 0 0 9990 121 0 0 0 0 0 0 Ethereal Sending ARP packets to 127.255.255.255 So now I have a couple of issues. TIA Bill _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com

Hi Bill, It sounds like you're nearly there and your commands look mostly correct. A few suggestions and example commands * You didn't mention what you set the ESSID to on the windows machine, you might want to verify that it is the same as the Linux machine. There are 3 settings that must match for the link to be successfully established at the wireless layer. They are Mode, Channel and Essid, in your case it seems that they should be set to Ad-Hoc, 6, "deb1" The following commands would achieve this setup. iwconfig eth1 mode Ad-Hoc iwconfig eth1 channel 6 iwconfig eth1 essid "deb1" * Once you are sure that the wireless layer is up correctly you can configure the IP addresses. Your machine already has a default gateway out sl0, so for now I would suggest that you don't try and setup a default gw over the wireless. I would suggest you use the following command to configure the laptop ifconfig eth1 192.168.0.5 netmask 255.255.255.0 broadcast 192.168.0.255 At this point (assuming the windows machine is correctly setup) you should be able to ping 192.168.0.1 from the linux machine and get some replies. If you can't please reply with the output of the following commands iwconfig eth1 route -n ifconfig eth1 NOTE: It's important that you setup the interface in the following steps 1) Make sure the interface (eth1) is down 2) Execute the iwconfig commands 3) Execute the ifconfig command (will Add IP and bring interface up) 4) Perform tests This order is crucial because the new network settings are not written to the wireless card until you bring the interface up (via the ifconfig command). HTH Regards On Thu, 2004-09-16 at 09:50, Bill Rosoman wrote:
How can you "see" the AP? (ie, how are you trying to observe it)
Have you given it an IP address in the same subnet as your network cards?
Wireless Ad-Hoc PC to Notepad ----------------------------- Usng PC Windows ME Zyxel USB Wlan Dell Notepad; The wifi card's a Netgear WG511. www.netgear.com I have a Dell Notepad Inspiron 2650 Intel Chip running Mandrake 10 KDE 3.2 Kernel 2.6.3-7mdk
To get wlan up ============== Setup Windows PC using manual IP 192.168.0.1 mask 255.255.255.0 wifi Ad-Hoc chanel 6 Run USB Wifi
Linux as SU (root) kedit /etc/wlan/wlancfg-deb1 kedit /etc/modules.conf alias eth1 prism54
ifconfig eth1 inet 192.168.0.5 netmask 255.255.255.0 broadcast 192.168.0.255 route add default gw 192.168.0.1 netmask 255.255.255.0 eth1 iwconfig eth1 ESSID "deb1" mode ad-hoc channel 6 /etc/pcmcia/network start eth1
Outcome ======= Have a strong connection between computers But cannot access computers or internet No IP address No Ping etc if I reboot using LAN everything OK (Samba, Internet)
Results ------- Windows machine netstat shows nothing active ping 192.168.0.5 times out ping 192.168.0.1 excellent
Linux machine apradar result eth1 Scan completed : NEW AP from accesspoint scan essid.length 4 ESSID:"deb1" Mode:Ad-Hoc 1 Encryption key:off Frequency:2.437GHz quality: -56
ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
[1]+ Stopped ping 192.168.0.1 Hangs!
iwlist eth1 scanning eth1 Scan completed : Cell 01 - Address: 42:F5:A8:9E:54:CF ESSID:"deb1" Mode:Ad-Hoc Encryption key:off Frequency:2.437GHz Quality:190/0 Signal level:-55 dBm Noise level:-245 dBm route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.3 * 255.255.255.255 UH 1 0 0 sl0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default * 0.0.0.0 U 1 0 0 sl0 Does not show eth1?
iwspy eth1 eth1 Statistics collected: 00:00:00:00:28:C2 : Quality:0 Signal level:0 Noise level:0 Link/Cell/AP : Quality:188/0 Signal level:-53 dBm Noise level:-5 dBm (updated) Typical/Reference : Quality:0/0 Signal level:-80 dBm Noise level:-256 dBm
iwconfig lo no wireless extensions.
eth0 no wireless extensions.
eth1 IEEE 802.11b/g ESSID:"deb1" Nickname:"mordor" Mode:Ad-Hoc Channel:6 Cell: 42:F5:A8:9E:54:CF Bit Rate:11Mb/s Tx-Power=31 dBm Sensitivity=20/200 Retry min limit:8 RTS thr:2347 B Fragment thr:2346 B Encryption key:off Link Quality:177/0 Signal level:-53 dBm Noise level:-32 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
sl0 ESSID:off/any Nickname:"" NWID:8 Channel:80 Access Point: FF:BF:21:00:00:00 Bit Rate=-1.07375e+06kb/s Tx-Power=-1073746380 dBm Sensitivity=8/0 Retry:on RTS thr=-1073746380 B Fragment thr=-1073746380 B Encryption key:0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000 Power Management:on NB sl0 is my Modem
cat /proc/net/dev Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed lo: 24920 364 0 0 0 0 0 0 24920 364 0 0 0 0 0 0 eth0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 eth1: 0 0 0 0 0 0 0 0 4082 31 0 0 0 0 0 0 sl0: 0 0 0 0 0 0 0 0 9990 121 0 0 0 0 0 0
Ethereal Sending ARP packets to 127.255.255.255
So now I have a couple of issues.
TIA
Bill
_______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug -- Matt Brown Email: matt(a)mattb.net.nz GSM: +64 21 611 544
participants (2)
-
Bill Rosoman
-
Matt Brown