Problem with Ad-hoc wireless network Windows to Linux (no ping)
- From: tangens0@xxxxxxxxx
- Date: Fri, 29 Feb 2008 08:27:22 -0800 (PST)
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'swating 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
.
- Prev by Date: Re: VPN with racoon Phase 2 issue
- Next by Date: Question about sockets and threads
- Previous by thread: VPN with racoon Phase 2 issue
- Next by thread: Question about sockets and threads
- Index(es):
Relevant Pages
|