Pages : 1
#1 Le 13/04/2008, à 03:24
- WiebeN
Gestion 2 cartes wifi
Bonjour à tous,
Je suis actuellement sous cet ordinateur :
http://www.materiel.net/ctl/PC_Portables/30362-Shoot_Again_sans_OS_.html
J'ai récemment acheté une carte wifi (Carte USB alfa awus036s) afin de tester l'injection de paquets etc... J'ai réussi a bien installer ma carte avec les bons drivers mais par contre j'ai du mal a bien gérer les 2 cartes... Je suis débutant sur linux et c'est donc la première fois que je met la main dans le camboui wifi. J'aimerais avoir des conseils de méthode car là je galère sur chaque manip même si en général je finis par réussir.
Mes questions :
*Comment jongler entre les 2 cartes ? activer l'une, desactiver l'autre se connecter avec une et pas une autre etc...
*Puis-je utiliser par défaut la carte originale tout en utilisant la ralink pour injecter des paquets etc ?
*Tout autre conseil est le bienvenu!
Voici les résultats des commandes :
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"
lsusb
Bus 007 Device 002: ID 046d:c00e Logitech, Inc. M-BJ69 Optical Wheel Mouse
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 001: ID 0000:0000
Bus 004 Device 002: ID 0a5c:2101 Broadcom Corp.
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 002 Device 003: ID 148f:2573 Ralink Technology, Corp.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 04f2:b018 Chicony Electronics Co., Ltd
Bus 001 Device 001: ID 0000:0000
lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation GeForce 8600M GT (rev a1)
04:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI Express (rev 02)
0c:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)
0e:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
0e:06.1 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
0e:06.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
0e:06.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
sudo lshw -C network
*-network
description: Ethernet interface
product: NetLink BCM5787M Gigabit Ethernet PCI Express
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:04:00.0
logical name: eth0
version: 02
serial: 00:1b:38:2c:74:5c
capacity: 1GB/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.77 latency=0 link=no module=tg3 multicast=yes port=twisted pair
*-network UNCLAIMED
description: Network controller
product: PRO/Wireless 4965 AG or AGN Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:0c:00.0
version: 61
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
*-network
description: Wireless interface
physical id: 1
logical name: wlan1
serial: 00:c0:ca:1a:05:4f
capabilities: ethernet physical wireless
configuration: broadcast=yes multicast=yes wireless=RT73 WLAN
lsmod
Module Size Used by
af_packet 24840 0
binfmt_misc 12936 1
rfcomm 42136 2
l2cap 26240 11 rfcomm
ppdev 10244 0
acpi_cpufreq 10568 1
cpufreq_ondemand 9612 1
cpufreq_conservative 8072 0
cpufreq_userspace 5280 0
cpufreq_powersave 2688 0
cpufreq_stats 7232 0
freq_table 5792 3 acpi_cpufreq,cpufreq_ondemand,cpufreq_stats
battery 11012 0
container 5504 0
ac 6148 0
sbs 19592 0
button 8976 0
dock 10656 0
video 18060 11
sbp2 24072 0
parport_pc 37412 0
lp 12580 0
parport 37448 3 ppdev,parport_pc,lp
snd_hda_intel 291488 1
rt73 215936 1
snd_pcm_oss 43008 0
snd_mixer_oss 17664 1 snd_pcm_oss
snd_pcm 80004 2 snd_hda_intel,snd_pcm_oss
snd_page_alloc 11400 2 snd_hda_intel,snd_pcm
snd_hwdep 10244 1 snd_hda_intel
snd_seq_dummy 4740 0
snd_seq_oss 33152 0
snd_seq_midi 9600 0
snd_rawmidi 25728 1 snd_seq_midi
snd_seq_midi_event 8448 2 snd_seq_oss,snd_seq_midi
uvcvideo 48644 0
rt2500usb 22016 0
rt2x00usb 12032 1 rt2500usb
snd_seq 53360 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
rt2x00lib 19584 2 rt2500usb,rt2x00usb
compat_ioctl32 2304 1 uvcvideo
nvidia 6221648 36
snd_timer 24324 2 snd_pcm,snd_seq
snd_seq_device 9228 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
sdhci 18828 0
rfkill 8208 1 rt2x00lib
mac80211 171016 2 rt2x00usb,rt2x00lib
videodev 29312 1 uvcvideo
v4l1_compat 15364 2 uvcvideo,videodev
v4l2_common 18432 2 uvcvideo,videodev
snd 54788 12 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
cfg80211 7304 1 mac80211
input_polldev 5896 1 rt2x00lib
crc_itu_t 3072 1 rt2x00lib
serio_raw 8068 0
i2c_core 26112 1 nvidia
hci_usb 18332 2
bluetooth 57060 7 rfcomm,l2cap,hci_usb
mmc_core 28420 1 sdhci
intel_agp 25620 0
agpgart 35016 2 nvidia,intel_agp
psmouse 39952 0
shpchp 34580 0
pci_hotplug 32704 1 shpchp
soundcore 8800 1 snd
evdev 11136 4
ext3 133896 2
jbd 60456 1 ext3
mbcache 9732 1 ext3
sg 36764 0
usbhid 29536 0
hid 28928 1 usbhid
sr_mod 17828 0
cdrom 37536 1 sr_mod
sd_mod 30336 4
ata_generic 8452 0
ata_piix 17540 3
ohci1394 36528 0
libata 125168 2 ata_generic,ata_piix
scsi_mod 147084 5 sbp2,sg,sr_mod,sd_mod,libata
ieee1394 96312 2 sbp2,ohci1394
tg3 110980 0
uhci_hcd 26640 0
ehci_hcd 36492 0
usbcore 138632 9 rt73,uvcvideo,rt2500usb,rt2x00usb,hci_usb,usbhid,uhci_hcd,ehci_hcd
thermal 14344 0
processor 32072 2 acpi_cpufreq,thermal
fan 5764 0
fuse 47124 1
apparmor 40728 0
commoncap 8320 1 apparmor
iwconfig
wlan1 RT73 WLAN ESSID:""
Mode:Managed Frequency=2.412 GHz Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Link Quality=0/100 Signal level:-121 dBm Noise level:-115 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ifconfig
eth0 Lien encap:Ethernet HWaddr 00:1B:38:2C:74:5C
UP BROADCAST MULTICAST MTU:1500 Metric:1
Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
Octets reçus:0 (0.0 b) Octets transmis:0 (0.0 b)
Interruption:17
wlan1 Lien encap:Ethernet HWaddr 00:C0:CA:1A:05:4F
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Packets reçus:5092 erreurs:0 :0 overruns:0 frame:0
TX packets:1965 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
Octets reçus:550912 (538.0 KB) Octets transmis:134502 (131.3 KB)
iwlist scan
wlan1 Scan completed :
Cell 01 - Address: 00:16:CF:BA:4E:CC
ESSID:"Livebox-19A8"
Mode:Managed
Channel:1
Encryption key:on
Bit Rates:0 kb/s
Cell 02 - Address: A2:A6:66:78:52:A8
ESSID:"Fac_Freebox"
Mode:Managed
Channel:11
Encryption key:on
Bit Rates:0 kb/s
Cell 03 - Address: A2:A6:66:78:52:A9
ESSID:""
Mode:Managed
Channel:11
Encryption key:on
Bit Rates:0 kb/s
Cell 04 - Address: A2:A6:66:78:52:AA
ESSID:""
Mode:Managed
Channel:11
Encryption key:on
Bit Rates:148 Mb/s
Cell 05 - Address: A2:A6:66:78:52:AB
ESSID:"freephonie"
Mode:Managed
Channel:11
Encryption key:on
Bit Rates:1 Mb/s
Cell 06 - Address: 00:16:41:03:8A:86
ESSID:"Livebox-16c8"
Mode:Managed
Channel:1
Encryption key:on
Bit Rates:1 Mb/s
cat etc/network/interfaces
auto wlan0
iface wlan0 inet dhcp
pre-up iwconfig wlan0 essid "111_Freebox"
pre-up iwpriv wlan0 set AuthMode=WPAPSK
pre-up iwpriv wlan0 se EncrypType=TKIP
pre-up iwpriv wlan0 set WPAPSK="pass"
Voilà, wlan0 "caractérise" la carte wifi interne mais là dans ces commandes je la vois plus... Sûrement suite à mes manipulations un peu hasardeuse. Pour ne pas faire de bétises je préfère donc vous demander conseil.
Merci à vous.
Hors ligne
#2 Le 13/04/2008, à 11:02
- willy78
Re : Gestion 2 cartes wifi
des driver rt2x00 ne sont pas blacklister donc petit problème possible avec le driver rt73 (legacy serialmonkey) qui fonctionne!
echo 'blacklist rt2500usb' | sudo tee -a /etc/modprobe.d/blacklist
Ensuite la carte interne Intel 4965 n'est plus driver!
fais donc voir ce fichier:
cat /etc/modprobe.d/blacklist
edit: vu l'utilisation du fichier interfaces pour le driver rt73 il n'est plus possible d'utiliser network manager pour se connecter avec la carte Intel!
Quelques tutos pour le wifi sous Ubuntu:
http://wlety.free.fr/forum
Hors ligne
#3 Le 13/04/2008, à 12:57
- WiebeN
Re : Gestion 2 cartes wifi
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.
# evbug is a debug tool that should be loaded explicitly
blacklist evbug
# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd
# replaced by e100
blacklist eepro100
# replaced by tulip
blacklist de4x5
# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394
# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m
# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801
blacklist rt73usb
blacklist rt2500usb
Le rt73usb serait aussi blacklisté ? Jcomprends qu'il y ait des problèmes .
Pour le network manager effectivement... j'ai vu sur un topic qu'il fallait entrer ces configs dans etc/network/interfaces mais plutôt avec wlan1 la c'est wlan0 car je faisais des essais. As tu une meilleure solution ?
Hors ligne
#4 Le 13/04/2008, à 15:51
- willy78
Re : Gestion 2 cartes wifi
alors 2 choses:
rt73usb et rt73 sont 2 driver différent!!!
si tu utilise rt73 (ce qui est le cas) il faut blacklister rt73usb
la différence entre ces 2 driver est le fait que rt73 n'est pas compatible avec network-manager, la config de connexion se fait dans le fichier /etc/network/interfaces
http://wlety.free.fr/forum/viewtopic.php?id=10
voilà c'est tout pour aujourd'hui
rt73usb lui est compatible avec network manager mais il ne faut pas parametrer dans le fichier interfaces
Dernière modification par willy78 (Le 13/04/2008, à 15:52)
Quelques tutos pour le wifi sous Ubuntu:
http://wlety.free.fr/forum
Hors ligne
Pages : 1