Differences between revisions 28 and 29
Revision 28 as of 2008-01-16 22:03:39
Size: 7698
Comment:
Revision 29 as of 2008-01-16 23:02:29
Size: 9266
Comment: adding Ad-hoc method
Deletions are marked like this. Additions are marked like this.
Line 45: Line 45:
||ath_pci || Netgear WG311T || || [:DebFrWifi/ath_pci:ath_pci](fr) || (./) || ||ath_pci || Netgear WG311T || || [:DebFrWifi/ath_pci:ath_pci](fr) || X-( ||
Line 109: Line 109:
== Configure Interface ==
== Configure Interface: AP mode ==
Line 122: Line 123:
}}}

== Configure Interface: Ad-hoc mode ==
You haven't Acces Point, and you want connect 2 PC directly.
Image 2 PC: calling hostA et hostB.

__Wifi: __
Configure Wifi on your 2 PC:
 {{{
iwconfig ath0 mode Ad-hoc
iwconfig ath0 essid MYNETWORK
}}}

Control on your 2 PC:
 {{{
iwlist ath0 scanning
ath0 Scan completed :
          Cell 01 - Address: 02:0F:B5:4F:74:ED
                    ESSID:"MYNETWORK"
                    Mode:Ad-Hoc
                    Frequency:2.412 GHz (Channel 1)
                    Quality=42/70 Signal level=-53 dBm Noise level=-95 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
}}}

__IP: __
Configure IP on your hostA
 {{{
ifconfig ath0 192.168.1.1 netmask 255.255.255.0
}}}

Configure IP on your hostB
 {{{
ifconfig ath0 192.168.1.2 netmask 255.255.255.0
}}}

Control on your hostB:
 {{{
ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.073 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.061 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.062 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.063 ms

--- 192.168.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 0.061/0.064/0.073/0.010 ms

Translation(s): [:French/Wifi:Français]

(!) [:/Discussion:Discussion]

?BR

http://www.debian.org/logos/openlogo-nd-50.png http://www.debian.org/Pics/debian.png

inline:Portal/IDB/logo_portal.png Welcome on ["Debian"] Wireless Fidelity


inline:Portal/IDB/icon-wifi-32x32.png This portal deals with the hardware installation of Wi-Fi cards in general. The installation of a card is essentially two steps that are installing the driver (also called the driver or module), and setting up your WiFi network.

Be aware that a WiFi base are operating on an electronic chip called Chipset. We can find the same chip in several different cards. Consequently, the pilot manages this chipset will be the same for all these cards Wifi.

A Wi-Fi interface is an Ethernet interface that also gives access to the configuration parameters peculiar to the Wi-Fi. These parameters are controlled using the ["iwconfig"] program.

inline:Portal/IDB/official-doc.png

[http://www.debian.org/doc/manuals/reference/ch-gateway.en.html debian.org] - Debian Reference Networking Chapter

  • ?TableOfContents(3)

Tools prerequisites

Install Driver

This section presents a list of WiFi cards sorted by manufacturer. It will show you the documentation page of the chip and thus its pilot. We recommend that you retrieve information identifying material.

This list consists of two elements: the device name and the hardware ID. The list is categorized alphabetically by the manufacturer's name and the name of your card.

PCI Cards

This information is derived from command:

lspci -nn

See ["HowToIdentifyADevice/PCI"] for more information

module name

Device name(s)

ID

help page

non-free 1

airo

["airo"]

?

arlan

["arlan"]

?

ath_pci

Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)

168c:0013

[:DebFrWifi/ath_pci:ath_pci](fr)

(./)

ath_pci

Netgear WG311T

[:DebFrWifi/ath_pci:ath_pci](fr)

X-(

atmel

["atmel"]

?

atmel_pci

["atmel_pci"]

?

bcm43xx

["bcm43xx"]

?

hermes

["hermes"]

?

hostap

["hostap"]

?

hostap_pci

["hostap_pci"]

?

hostap_plx

["hostap_plx"]

?

ipw2100

Intel Pro wireless 2100

["ipw2100"]

?

ipw2200

Intel Pro wireless 2200 ?BRIntel Pro wireless 2915

["ipw2200"]

X-(

ipw3945

Intel Pro wireless

["ipw3945"]

X-(

iwl3945 ?BR iwl4965

Intel Pro wireless 3945 ?BR Intel wireless 4965

["iwlwifi"]

X-(

orinoco

["orinoco"]

:-)

orinoco_nortel

["orinoco"]

?

orinoco_pci

["orinoco"]

?

orinoco_plx

["orinoco"]

?

orinoco_tmd

["orinoco"]

?

rt2500

?RaLink RT2500

[:DebFrWiFi/rt2500:rt2500]

?

strip

["strip"]

?

wavelan

["wavelan"]

?

legend: X-( requires non-free stuff (proprietary software, etc). (./) doesn't requires no proprietary stuffs.

USB Cards

This information is derived from command:

lsusb

See ["HowToIdentifyADevice/USB"] for more information

module name

Device name(s)

help page

non-free 1

??

Netgear MA111

usb8xxx

["libertas/usb8xxx"]

?

rtl8187

["rtl8187"]

?

zd1201

["zd1201"]

?

zd1211rw

["zd1211rw"]

?

PCMCIA Cards

See ["HowToIdentifyADevice/PCMCIA"] for more information

module name

Device name(s)

help page

non-free 1

airo_cs

[:airo#cs:airo_cs]

?

atmel_cs

["atmel_cs"]

?

hostap_cs

["hostap_cs"]

?

netwave_cs

["netwave_cs"]

?

orinoco_cs

Compac WL110

["orinoco"]

?

ray_cs

["ray_cs"]

?

spectrum_cs

["spectrum/cs"]

?

wavelan_cs

["wavelan/cs"]

?

wl3501_cs

["wl3501/cs"]

?

prism54

Prism GT ?BR Netgear WG511 ?BR D-Links DWL-g650

[:DebFrWifi/prism54:prism54]

?

?Anchor(configure)

Setting your WiFi device

Identify your network

  • Network Name
    • Parameter security
    • ["WPA"]
    • Mode: Access Point / ad-hoc

Configure Interface: AP mode

["NetworkManager"] is a user-friendly program to control Network interfaces. It's especially useful for WiFi. (it's available for ["Gnome"] and ["KDE"]).

Otherwise, you can use /etc/network/interfaces. here's a sample fragment of :

  • # WiFi card section
    auto eth0
    iface eth0 inet dhcp
    pre-up ifconfig eth0 up
    pre-up iwpriv eth0 set AuthMode=WPAPSK
    pre-up iwpriv eth0 set EncrypType=TKIP
    pre-up iwconfig eth0 essid "WANADOO-1418"
    pre-up iwpriv eth0 set WPAPSK="xxxxxxxxxxxxxxxxxxxxx"

Configure Interface: Ad-hoc mode

You haven't Acces Point, and you want connect 2 PC directly. Image 2 PC: calling hostA et hostB.

Wifi: Configure Wifi on your 2 PC:

  • iwconfig ath0 mode Ad-hoc
    iwconfig ath0 essid MYNETWORK

Control on your 2 PC:

  • iwlist ath0 scanning
    ath0      Scan completed :
              Cell 01 - Address: 02:0F:B5:4F:74:ED
                        ESSID:"MYNETWORK"
                        Mode:Ad-Hoc
                        Frequency:2.412 GHz (Channel 1)
                        Quality=42/70  Signal level=-53 dBm  Noise level=-95 dBm
                        Encryption key:off
                        Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                                  9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                                  48 Mb/s; 54 Mb/s
                        Extra:bcn_int=100

IP: Configure IP on your hostA

  • ifconfig ath0 192.168.1.1 netmask 255.255.255.0

Configure IP on your hostB

  • ifconfig ath0 192.168.1.2 netmask 255.255.255.0

Control on your hostB:

  • ping 192.168.1.1
    PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
    64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.073 ms
    64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.061 ms
    64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.062 ms
    64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.063 ms
    
    --- 192.168.1.1 ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3001ms
    rtt min/avg/max/mdev = 0.061/0.064/0.073/0.010 ms

Check the proper functioning

Resources

  • ?DebFrWifiTopo (in french)

  • ["iproute"].
  • ["iwconfig"]
  • NdisWrapper - use Windows drivers under Debian/Linux.

External Links


CategoryPortal CategoryNetwork