Ok,
As I wrote some time ago, I am trying to connect two pcs via wifi.
I can see the other card via iwlist device scan. But I can't ping each other, this is what I get. --------------------------------------------------- sharukh@natrum:~$ ping -c5 192.168.1.203 PING 192.168.1.203 (192.168.1.203) 56(84) bytes of data. From 192.168.1.202 icmp_seq=2 Destination Host Unreachable From 192.168.1.202 icmp_seq=3 Destination Host Unreachable From 192.168.1.202 icmp_seq=4 Destination Host Unreachable From 192.168.1.202 icmp_seq=5 Destination Host Unreachable
--- 192.168.1.203 ping statistics --- 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3998ms , pipe 3 -----------------------------------------------------
So what do I need to do ? What more info should I send ?
thanks,
Sharukh.
Dr. Sharukh K. R. Pavri. wrote:
Ok,
As I wrote some time ago, I am trying to connect two pcs via wifi.
I can see the other card via iwlist device scan. But I can't ping each other, this is what I get.
So what do I need to do ? What more info should I send ?
Are they using the same channel, essid and Ad-Hoc mode?
On Sun, 15 Jul 2007, Rony wrote:
Dr. Sharukh K. R. Pavri. wrote:
Ok,
As I wrote some time ago, I am trying to connect two pcs via wifi.
I can see the other card via iwlist device scan. But I can't ping each other, this is what I get.
So what do I need to do ? What more info should I send ?
Are they using the same channel, essid and Ad-Hoc mode?
yes, same channel, essid and both in Ad-Hoc mode. As I said, both machines find each other w/ iwlist scan but cannot ping each other. Firewall disabled. I actually managed to ping PC1 from PC2 just the once but then it just stopped.
FWIW, both cards seem to work because I have a Zaurus running OpenZaurus w/ Wellenreiter and I can sniff out both wifi cards (not to mention quite a few other APs).
The 2 PCs are in adjacent rooms about 7 - 8 meters apart.
thanks,
Sharukh.
Dr. Sharukh K. R. Pavri. wrote:
On Sun, 15 Jul 2007, Rony wrote:
Dr. Sharukh K. R. Pavri. wrote:
Ok,
As I wrote some time ago, I am trying to connect two pcs via wifi.
I can see the other card via iwlist device scan. But I can't ping each other, this is what I get.
So what do I need to do ? What more info should I send ?
Are they using the same channel, essid and Ad-Hoc mode?
yes, same channel, essid and both in Ad-Hoc mode. As I said, both machines find each other w/ iwlist scan but cannot ping each other. Firewall disabled. I actually managed to ping PC1 from PC2 just the once but then it just stopped.
In the /etc/network/interfaces file, are your cards set to static or manual? If static then I think you need to restart networking after setting up the ip, netmask and gateway entries below that line. 'sudo /etc/init.d/networking restart' If manual mode then you don't need to restart networking. You have to manually set ip through 'sudo ifconfig ethx address x.x.x.x netmask x.x.x.x '
On Sun, 2007-07-15 at 16:34 +0530, Dr. Sharukh K. R. Pavri. wrote:
Ok,
As I wrote some time ago, I am trying to connect two pcs via wifi.
I can see the other card via iwlist device scan. But I can't ping each other, this is what I get.
sharukh@natrum:~$ ping -c5 192.168.1.203 PING 192.168.1.203 (192.168.1.203) 56(84) bytes of data. From 192.168.1.202 icmp_seq=2 Destination Host Unreachable From 192.168.1.202 icmp_seq=3 Destination Host Unreachable From 192.168.1.202 icmp_seq=4 Destination Host Unreachable From 192.168.1.202 icmp_seq=5 Destination Host Unreachable
--- 192.168.1.203 ping statistics --- 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3998ms , pipe 3
So what do I need to do ? What more info should I send ?
Ok, wifi needs to be setup this way:
1. Setup the wireless parameters 2. Configure the IP settings
For the two PCs to first establish communication they should have the same ESSID, channel and mode.
ESSID is like the name of the network. For example: HOMENET ( use all uppercase / lowercase ).
Channel should be set to 13 or 11 or whatever you like but this setting should be the same on both PCs.
Finally, the mode should be ad-hoc. This mode enables P2P connection between wireless device.
After you ensure that these parameters are the same you issue iwconfig ( ? ) to see if the two machines have "bound". I'm not sure if this happens in the adhoc mode but you should see a valid hex number for Access Point: 00:06:25:9A:50:C8 or Cell parameter in the output. This means that both PCs actually "see" each other.
The next step is pretty simple. You just ensure that you assign the wireless interface the right parameters. Both machines should have the same IP range and belong to the same class of networks. Eg. 192.168.0.0/24.
You should be able to ping the machines. Also disable firewalls on both machines incase you have it running. Remember, dmesg is your friend to troubleshoot problems.
Linux drivers have a nifty debug switch. Incase you're not able to understand whats wrong, just remove the kernel module using rmmod and then modprobe it in the debug mode. It should be something like modprobe ipw2200 debug=1. Not 100% sure though.
On Mon, 16 Jul 2007, Dinesh Joshi wrote:
On Sun, 2007-07-15 at 16:34 +0530, Dr. Sharukh K. R. Pavri. wrote:
Ok,
As I wrote some time ago, I am trying to connect two pcs via wifi.
I can see the other card via iwlist device scan. But I can't ping each other, this is what I get.
sharukh@natrum:~$ ping -c5 192.168.1.203 PING 192.168.1.203 (192.168.1.203) 56(84) bytes of data. From 192.168.1.202 icmp_seq=2 Destination Host Unreachable From 192.168.1.202 icmp_seq=3 Destination Host Unreachable From 192.168.1.202 icmp_seq=4 Destination Host Unreachable From 192.168.1.202 icmp_seq=5 Destination Host Unreachable
--- 192.168.1.203 ping statistics --- 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3998ms , pipe 3
So what do I need to do ? What more info should I send ?
Ok, wifi needs to be setup this way:
- Setup the wireless parameters
- Configure the IP settings
For the two PCs to first establish communication they should have the same ESSID, channel and mode.
done that.
ESSID is like the name of the network. For example: HOMENET ( use all uppercase / lowercase ).
Channel should be set to 13 or 11 or whatever you like but this setting should be the same on both PCs.
done that too. channel set to 11 on each.
Finally, the mode should be ad-hoc. This mode enables P2P connection between wireless device.
After you ensure that these parameters are the same you issue iwconfig ( ? ) to see if the two machines have "bound". I'm not sure if this happens in the adhoc mode but you should see a valid hex number for Access Point: 00:06:25:9A:50:C8 or Cell parameter in the output. This means that both PCs actually "see" each other.
The next step is pretty simple. You just ensure that you assign the wireless interface the right parameters. Both machines should have the same IP range and belong to the same class of networks. Eg. 192.168.0.0/24.
one wifi card is 192.168.1.202, the other is 192.168.1.203
You should be able to ping the machines. Also disable firewalls on both machines incase you have it running. Remember, dmesg is your friend to troubleshoot problems.
Linux drivers have a nifty debug switch. Incase you're not able to understand whats wrong, just remove the kernel module using rmmod and then modprobe it in the debug mode. It should be something like modprobe ipw2200 debug=1. Not 100% sure though.
will do this too.
-- Regards, Dinesh A. Joshi
thanks,
Sharukh.