Networking Forums

Networking Forums > Computer Networking > Linux Networking > Connecting two computers through WIFI

Reply
Thread Tools Display Modes

Connecting two computers through WIFI

 
 
fdelente@mail.cpod.fr
Guest
Posts: n/a

 
      09-06-2008, 07:55 AM
Hello.

Could anybody help me connect my two laptops through WIFI?

Each has a functional WIFI card (drivers loaded and OK, if I do

iwlist $INTERFACE scanning

on both computers, I see the nearby access point).

One has an atheros chpiset card, I configure it with

modprobe ath_pci
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
iwconfig ath0 rate 54M channel 10 essid "airforce-one" key "s:***" mode Ad-Hoc
ifconfig ath0 up 192.168.1.3

and the other (which has an intel chipset card) with

iwconfig wlan0 rate 54M channel 10 essid "airforce-one" key "s:***" mode Ad-Hoc
ifconfig ath0 up 192.168.1.4

When I try to ping one from the other, nothing happens (I get "Network
Unreachable" errors).

I think I have to give a "route" command, but

route add default gw 192.168.1.4 wlan0

doesn't help...

Any hint? Thanks!

--
Fabrice DELENTE
 
Reply With Quote
 
 
 
 
Unruh
Guest
Posts: n/a

 
      09-06-2008, 05:55 PM
(E-Mail Removed) writes:

>Hello.


>Could anybody help me connect my two laptops through WIFI?


>Each has a functional WIFI card (drivers loaded and OK, if I do


>iwlist $INTERFACE scanning


>on both computers, I see the nearby access point).


Connect to that access point. Look at the addresses assigned by the dhcp of
that access point. Use them.

>One has an atheros chpiset card, I configure it with


>modprobe ath_pci
>wlanconfig ath0 destroy
>wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
>iwconfig ath0 rate 54M channel 10 essid "airforce-one" key "s:***" mode Ad-Hoc
>ifconfig ath0 up 192.168.1.3


>and the other (which has an intel chipset card) with


>iwconfig wlan0 rate 54M channel 10 essid "airforce-one" key "s:***" mode Ad-Hoc
>ifconfig ath0 up 192.168.1.4


>When I try to ping one from the other, nothing happens (I get "Network
>Unreachable" errors).


>I think I have to give a "route" command, but


No. That access point has to know what your IP addresses are. That you tell
your machine ()ifconfig) what its address is is irrelevant. Use dhcp to get
addresses from the access point.



>route add default gw 192.168.1.4 wlan0


>doesn't help...


>Any hint? Thanks!


>--
>Fabrice DELENTE

 
Reply With Quote
 
Fabrice Delente
Guest
Posts: n/a

 
      09-06-2008, 06:08 PM
Unruh <unruh-(E-Mail Removed)> wrote:
> No. That access point has to know what your IP addresses are. That you tell
> your machine ()ifconfig) what its address is is irrelevant. Use dhcp to get
> addresses from the access point.


No. I don't want the access point to act as a router; I want two computers
to talk directly to each other, in Ad-Hoc mode, without passing through a
router. So I can assign them private subnet IPs such as 192.168.1.*

--
Fabrice DELENTE

SVP, ne m'envoyez pas de pièces jointes aux formats Word, PowerPoint, RTF
(formats propriétaires). Utilisez des formats libres comme txt, html, ou
OpenOffice.Org, ou un format ouvert comme PDF. Merci. Voir
http://www.gnu.org/philosophy/no-wor...hments.fr.html
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with connecting 2 computers Starvoyager Wireless Networks 2 03-29-2008 02:28 PM
Connecting computers Paul Broadband Hardware 1 02-14-2005 04:25 PM
Connecting 2 computers Kevin Wireless Internet 4 11-09-2004 10:03 PM
Connecting my 2 computers Kate Broadband Hardware 1 06-10-2004 09:43 AM
Help, please with connecting computers. Diane Windows Networking 2 11-17-2003 04:15 AM



1 2 3 4 5 6 7 8 9 10 11