Hi people,
I'm stuck at home due to the rains and so took up something I had been putting away. Ok here goes:
Hardware:
PC1 is connected to the net via cable modem attached to eth0 w/ IP aaa.bbb.ccc.ddd
PC1 has a SMC wifi card running under ndiswrapper. Shows up as wlan0 auto wlan0 iface wlan0 inet static address 192.168.1.202 netmask 255.255.0.0 gateway aaa.bbb.ccc.ddd
PC2 has a ProNet wifi card. Atheros chipset. Shows up as ath0 auto ath0 iface ath0 inet static address 192.168.1.203 netmask 255.255.0.0 gateway aaa.bbb.ccc.ddd
PC2 has no other connectivity.
Both PCs are running Kubuntu Feisty. There is no firewall running on either machine while I am trying this stuff.
Task 1 : to connect both PCs so that they can atleast 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=1 Destination Host Unreachable 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, +5 errors, 100% packet loss, time 4017ms , pipe 3 -----------------------------------------------------------------
Task 2: to be able to connect to the net from PC2 thru PC1's net connection.
regards,
Sharukh.
Dr. Sharukh K. R. Pavri. wrote:
Both PCs are running Kubuntu Feisty. There is no firewall running on either machine while I am trying this stuff.
Task 1 : to connect both PCs so that they can atleast ping each other. This is what I get.
For wireless link between 2 machines without an access point, both wireless devices need to run in Ad-Hoc mode, use the same ESSID, and the same channel.
In terminal: sudo iwconfig device mode Ad-Hoc essid net_name channel ..... Device is your device name. Look up man iwconfig.
Then run 'sudo iwlist device scanning' to scan for neighbouring devices.
On Sat, 30 Jun 2007, Rony wrote:
Dr. Sharukh K. R. Pavri. wrote:
Both PCs are running Kubuntu Feisty. There is no firewall running on either machine while I am trying this stuff.
Task 1 : to connect both PCs so that they can atleast ping each other. This is what I get.
For wireless link between 2 machines without an access point, both wireless devices need to run in Ad-Hoc mode, use the same ESSID, and the same channel.
In terminal: sudo iwconfig device mode Ad-Hoc essid net_name channel ..... Device is your device name. Look up man iwconfig.
Then run 'sudo iwlist device scanning' to scan for neighbouring devices.
Okay did that. I had to get the madwifi-tools to set the mode to adhoc on ath0.
but iwlist scan shows: No scan results.
now what ?
If it's of any use, iwlist wifi0 channel always shows channel 3, whereas iwlist ath0 channel shows a different channel everytime.
thanks,
Sharukh.
Dr. Sharukh K. R. Pavri. wrote:
Okay did that. I had to get the madwifi-tools to set the mode to adhoc on ath0.
but iwlist scan shows: No scan results.
now what ?
If it's of any use, iwlist wifi0 channel always shows channel 3, whereas iwlist ath0 channel shows a different channel everytime.
Both devices have to be set to use the same channel, essid and mode.
On Sun, 01 Jul 2007, Rony wrote:
Dr. Sharukh K. R. Pavri. wrote:
Okay did that. I had to get the madwifi-tools to set the mode to adhoc on ath0.
but iwlist scan shows: No scan results.
now what ?
If it's of any use, iwlist wifi0 channel always shows channel 3, whereas iwlist ath0 channel shows a different channel everytime.
Both devices have to be set to use the same channel, essid and mode.
That's the problem, the channel on ath0 seems to be changing, seemingly of its own accord. Everytime I check w/ iwlist ath0 freq it shows a different channel/frequency. On wlan0 it stays at channel 3. I have set essid to any.
regards,
Sharukh.
Dr. Sharukh K. R. Pavri. wrote:
On Sun, 01 Jul 2007, Rony wrote:
Dr. Sharukh K. R. Pavri. wrote:
Okay did that. I had to get the madwifi-tools to set the mode to adhoc on ath0.
but iwlist scan shows: No scan results.
now what ?
If it's of any use, iwlist wifi0 channel always shows channel 3, whereas iwlist ath0 channel shows a different channel everytime.
Both devices have to be set to use the same channel, essid and mode.
That's the problem, the channel on ath0 seems to be changing, seemingly of its own accord. Everytime I check w/ iwlist ath0 freq it shows a different channel/frequency. On wlan0 it stays at channel 3. I have set essid to any.
This could be a driver issue for your ath0 card. Also try other options in iwlist, like frequency. The man page says "freq[uency]/channel Give the list of available frequencies in the device and the number of defined channels. Please note that usually the driver returns the total number of channels and only the frequencies available in the present locale, so there is no one-to-one mapping between frequencies displayed and channel numbers."
Also, in /etc/networking/interfaces, the devices can be set to 3 different modes. Auto, static and manual. Manual means that the device is up but you set parameters later through commands, however it will last for that session only. After a reboot, it has to be re-done. For experimenting, that is a better mode.