Problem with Ad-hoc wireless network Windows to Linux (no ping)



Hello All,

Sorry for the verbosity of this post...

I am trying to set up an ad-hoc wireless network between two
computers; one runing Windows XP and the other Linux (2.6.x,
Slackware).
After I have set them up I cannot ping the Linux machine from the
Windows machine.

This is what I have done so far:

* Made sure that the Wlan card is running on the Linux machine
(it is; it's a RT61 based D-Link DWL-G510). It works fine when in
"managed" mode (connecting to an access-point); I'm using the latest
firmware/drivers I could find.
* Made sure that the Wlan card is running on the Windows machine
(it is; Intel something-something built into a Dell laptop).

Then I try to set things up.

** On the Linux machine:

$ modprobe rt61 (load module, card is recognized)
$ iwconfig ra0 essid box (ra0 is my RT61, set SSID)
$ iwconfig ra0 channel 11 (we are in Europe)
$ iwconfig mode Ad-Hoc (this is what I want; no encryption)
$ ifconfig eth0 down (just in case; remember ra0 is the WLan
card)
$ ifconfig ra0 10.0.0.1 netmask 255.255.255.0 up (interface comes up)

$ ifconfig ra0
ra0 Link encap:Ethernet HWaddr 00:19:5B:70:2D:D2
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::219:5bff:fe70:2dd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:192 (192.0 b) TX bytes:468 (468.0 b)
Interrupt:10

$ iwconfig ra0
ra0 RT61 Wireless ESSID:"" Nickname:""
Mode:Ad-Hoc Frequency:2.462 GHz Cell: 66:9F:2C:DA:89:A7
Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=0/100 Signal level:-121 dBm Noise level:-99
dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
(note: the empty ESSID is normal. The card broadcasts the name
anyways)

$route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0
0 ra0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 lo

From what I can see the "ra0" interface is up and running and it's
wating for an "Ad-hoc Handshake" or similar. We also have a
rudimentary routing table.

** Now I configure the Windows machine

* Enable Wireless (OK)
* In the network list I can see the "box" station configured on the
Linux machine.
* Tell the Wireless card to start an ad-hoc network with SSID "box"
on channel 11 with no encryption (it's "open")
* Set properties for the "wireless network connection" in the control
panel so it reads:

IP-address ........ 10.0.0.2
Netmask ........ 255.255.255.0
Standard gateway .. 10.0.0.1

After a few seconds I get a "green light" and Windows tells me I am
connected to the "box" network. Now the Windows machine has IP
10.0.0.2 with netmask 255.255.255.0 (ipconfig.exe confirms this).

Now: I still cannot ping the Linux machine (10.0.0.1 [255.255.255.0]).

I get no reports of connection problems. Still every ping times out.
Of course, when connected to an "ordinary" lan I can ping the Linux
machine from Windows without problems.

I suspect that I am doing something stupid with the routing
thingamajig
but I can't figure out what.

Any ideas? Has anyone else managed to set up a simple ad-hoc
connection in this fashion? What am I doing wrong here?

Regards,

Tobias Andersson
.



Relevant Pages

  • Re: Jiwire spotlock messed up my wireless connection
    ... This will scan for corrupt windows files on your computer and replace ... when all of a sudden my connection ... When I go to the "View Wireless Network" screen, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Wireless connection problems caused by virus??
    ... He receives the error message that there is "limited or no connectivity", but at the same time the signal strength is reported as good, and when he goes into the "View Wireless Connections" window, it reports that he is connected to his wireless network. ... This did not resolve the problem, but at this point I noticed that the wireless network connection icon had disappeared from his taskbar, and that a red security centre icon was in the taskbar, reporting that no virus protection could be detected. ... He had previously been running Windows' own virus protection, but now Windows cannot even detect its own anti virus software. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Cable Modem related questions
    ... The Ethernet connection takes longer than the USB connection, ... I connect through the windows side. ... I think it depends on whether you're using the winsock driver ... Linux machine is OK. ...
    (comp.os.linux.misc)
  • Re: Trouble with router free wireless
    ... >>>Hi, I have had trouble getting my wireless network to function properly, i ... >>>sure where exactly the problem lies, and yes my net connection is selected to ... >Windows IP Configuration ... >Ethernet adapter Local Area Connection: ...
    (microsoft.public.windowsxp.network_web)
  • Re: Upgraded to SP2 and lost Internet connection
    ... Troubleshooting Windows Firewall settings in Windows XP Service Pack 2 ... I have a Dlink PCI board which has a good wireless connection ... > wireless network connection to work but I still can't access IE or OL ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)