Citation
midiweb tiens! lis-moi cela
[www.cure.nom.fr]
intéressant, non? je vais un peu étudier cela de plus près.
Citation
midiweb
quand je redémarre Ubuntu, je n'ai plus accès au wlan et aussi mon eth0 (ethernet) ne marche pas non plus. Je dois taper en console sudo dhclient etho ensuite je suis connecté.
Citation
midiweb
mapping hotplug
script grep
map eth0
(...)
faut-il écrire aussi "map eth1", dans Interfaces?
quand je redémarre Ubuntu, je n'ai plus accès au wlan et aussi mon eth0 (ethernet) ne marche pas non plus. Je dois taper en console sudo dhclient etho ensuite je suis connecté. Est-ce que avant de rajouter l'interface eth1, la connexion se faisait automatiquement au demarrage ?oui
eth1 unassociated ESSIDff/any Nickname:"ipw2100" Mode:Managed Channel=0 Access Point: 00:00:00:00:00:00 Bit Rate=0 kb/s Tx-Powerff Retry min limit:7 RTS thrff Fragment thrff Power Managementff Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Lorsque tu tapes sudo ifconfig eth1 up sudo wpa_supplicant -Bw -i eth1 -c /etc/wpa_supplicant.conf -D ipw -ddj'obtiens exactement:
-D ipw -dd Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ipw' Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant.conf' ctrl_interface='/var/run/wpa_supplicant' ctrl_interface_group=0 eapol_version=1 ap_scan=1 fast_reauth=1 Line: 15 - start of a new network block ssid - hexdump_ascii(len=8): 70 61 72 73 69 66 61 6c parsifal scan_ssid=1 (0x1) proto: 0x1 key_mgmt: 0x2 PSK (ASCII passphrase) - hexdump_ascii(len=28): [REMOVED] PSK (from passphrase) - hexdump(len=32): [REMOVED] Priority group 0 id=0 ssid='parsifal' Daemonize..
eth1 IEEE 802.11b ESSID:"parsifal" Nickname:"ipw2100" Mode:Managed Frequency:2.437 GHz Access Point: 00:16:B6:11:36:1F Bit Rate=11 Mb/s Tx-Powerff Retry min limit:7 RTS thrff Fragment thrff Encryption keyff Power Managementff Link Quality=100/100 Signal level=-55 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:1 Missed beacon:0
Est-ce que si, une fois que c'est bon pour eth1 (manuellement) tu fais sudo ifdown eth1 sudo ifup eth1j'ai:
sudo ifdown eth1 ifdown: interface eth1 not configured
sudo ifup eth1 Error for wireless request "Set Encode" (8B2A) : invalid argument "Ma clé WPA". Internet Systems Consortium DHCP Client V3.0.2 Copyright 2004 Internet Systems Consortium. All rights reserved. For info, please visit [www.isc.org] sit0: unknown hardware address type 776 sit0: unknown hardware address type 776 Listening on LPF/eth1/00:0c:f1:25:2a:8a Sending on LPF/eth1/00:0c:f1:25:2a:8a Sending on Socket/fallback DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3 DHCPOFFER from XXX.XXX.X.XXX DHCPREQUEST on eth1 to 255.255.255.255 port 67 DHCPACK from XXX.XXX.X.XXX bound to XXX.XXX.X.XXX -- renewal in 35970 seconds.
eth1 IEEE 802.11b ESSID:"parsifal" Nickname:"ipw2100" Mode:Managed Frequency:2.437 GHz Access Point: 00:16:B6:11:36:1F Bit Rate=11 Mb/s Tx-Powerff Retry min limit:7 RTS thrff Fragment thrff Power Managementff Link Quality=100/100 Signal level=-53 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:1 Missed beacon:0
# Configuration file for /sbin/dhclient, which is included in Debian's # dhcp3-client package. # # This is a sample configuration file for dhclient. See dhclient.conf's # man page for more information about the syntax of this file # and a more comprehensive list of the parameters understood by # dhclient. # # Normally, if the DHCP server provides reasonable information and does # not leave anything out (like the domain name, for example), then # few changes must be made to this file, if any. # #send host-name "andare.fugue.com"; #send dhcp-client-identifier 1:0:a0:24:ab:fb:9c; #send dhcp-lease-time 3600; #supersede domain-name "fugue.com home.vix.com"; #prepend domain-name-servers 127.0.0.1; request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name, netbios-name-servers, netbios-scope; #require subnet-mask, domain-name-servers; #timeout 60; #retry 60; #reboot 10; #select-timeout 5; #initial-interval 2; #script "/etc/dhcp3/dhclient-script"; #media "-link0 -link1 -link2", "link0 link1"; #reject XXX.XX.XX.XX; #alias { # interface "eth0"; # fixed-address XXX.XX.XX.XX; # option subnet-mask 255.255.255.255; #} #lease { # interface "eth0"; # fixed-address XXX.XX.XX.XX; # medium "link0 link1"; # option host-name "andare.swiftmedia.com"; # option subnet-mask 255.255.255.0; # option broadcast-address XXX.XX.XX.XX; # option routers XXX.XX.XX.XX; # option domain-name-servers 127.0.0.1; # renew 2 2000/1/12 00:00:01; # rebind 2 2000/1/12 00:00:01; # expire 2 2000/1/12 00:00:01; #}
2. Pour le WPA Vous avez installé auparavant le package wpasupplicant qui permet de gérer le protocole WPA. A présent, il faut configurer le fichier /etc/wpasupplicant.conf en y mettant les caractéristiques de votre configuration. Exemple avec mon fichier : # Minimal /etc/wpa_supplicant.conf to associate with open # access points. Please see # /usr/share/doc/wpasupplicant/wpa_supplicant.conf.gz for more complete # configuration parameters. ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 eapol_version=1 ap_scan=1 fast_reauth=1 ### Associate with any open access point ### Scans/ESSID changes can be done with wpa_cli network={ ssid="Wanadoo_xxxx" scan_ssid=1 proto=WPA key_mgmt=WPA-PSK psk="votre_passphrase" } Vérifiez que les drivers sont bien lancés : #dmesg | grep wlan ndiswrapper: driver wlanuig (Sagem SA,06/03/2004, 3.0.18.2) loaded wlan0: ndiswrapper ethernet device 00:60:b3:b6:3d:c8 using driver wlanuig, configuration file 0CDE:0008.0.conf wlan0: encryption modes supported: WEP, WPA with TKIP, WPA with AES/CCMP Lancez ensuite la commande suivante : #wpa_supplicant -B -i eth1 -c /etc/wpa_supplicant.conf -D wlanuig -w -ddceci ne donne rien chez moi:
#dmesg | grep wlan
sudo wpa_supplicant -Bw -i eth1 -c /etc/wpa_supplicant.conf -D ipw -dddonne
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ipw' Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant.conf' ctrl_interface='/var/run/wpa_supplicant' ctrl_interface_group=0 eapol_version=1 ap_scan=1 fast_reauth=1 Line: 15 - start of a new network block ssid - hexdump_ascii(len=8): 70 61 72 73 69 66 61 6c parsifal scan_ssid=1 (0x1) proto: 0x1 key_mgmt: 0x2 PSK (ASCII passphrase) - hexdump_ascii(len=28): [REMOVED] PSK (from passphrase) - hexdump(len=32): [REMOVED] Priority group 0 id=0 ssid='parsifal' Daemonize..
Citation
midiweb
autre chose, tes explications tiennent-elles compte du ndiswrapper que j'ai installé au départ. Je veux dire en fait, est-ce que tu supposes que c'est la méthode avec ndiswrapper que tu utilises car tes explications ressemblent fort à ceci
Citation
midiweb
ceci ne donne rien chez moi:
Citation
midiweb
Je pense alors que cela peut provenir du DHCP ou dhclient qui ne fait pas sur eth1 au démarrage.
Il faut peut-être entrer les bons paramètres dans dhclient.conf.
Citation
midiweb
sudo ifup eth1
Error for wireless request "Set Encode" (8B2A) :
invalid argument "Ma clé WPA".
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo #auto eth1 iface lo inet loopback # This is a list of hotpluggable network interfaces. # They will be activated automatically by the hotplug subsystem. mapping hotplug script grep map eth0 # The primary network interface iface eth0 inet dhcp iface eth1 inet dhcp # pre-up modprobe ndiswrapper # pre-up sleep 10 # pre-up iwconfig eth1 essid parsifal # pre-up /etc/init.d/wpasupplicant start # up wpa_supplicant -Dndiswrapper -ieth0 -c/etc/wpa_supplicant.conf & # post-down pkill -TERM wpa_supplicant # post-down rmmod ndiswrapper wireless-mode Managed wireless-essid parsifal # wireless-key ma clé wap
ifdown eth1/code] donne ceciThere is already a pid file /var/run/dhclient.eth1.pid with pid 9340 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.0.2 Copyright 2004 Internet Systems Consortium. All rights reserved. For info, please visit [www.isc.org] sit0: unknown hardware address type 776 sit0: unknown hardware address type 776 Listening on LPF/eth1/00:0c:f1:25:2a:8a Sending on LPF/eth1/00:0c:f1:25:2a:8a Sending on Socket/fallbackifup eth1/code]There is already a pid file /var/run/dhclient.eth1.pid with pid 1 Internet Systems Consortium DHCP Client V3.0.2 Copyright 2004 Internet Systems Consortium. All rights reserved. For info, please visit [www.isc.org] sit0: unknown hardware address type 776 sit0: unknown hardware address type 776 Listening on LPF/eth1/00:0c:f1:25:2a:8a Sending on LPF/eth1/00:0c:f1:25:2a:8a Sending on Socket/fallback DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3 DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8 DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 21 DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 16 No DHCPOFFERS received. No working leases in persistent database - sleeping.
sudo ifdown eth1 ifdown: interface eth1 not configured
sudo ifup eth1 Starting wpa_supplicant: wpa_supplicant v0.4.5 Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi> and contributors This program is free software. You can distribute it and/or modify it under the terms of the GNU General Public License version 2. Alternatively, this software may be distributed under the terms of the BSD license. See README and COPYING for more details. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) usage: wpa_supplicant [-BddehLqqvwW] -i<ifname> -c<config file> [-D<driver>] \ [-P<pid file>] [-N -i<ifname> -c<conf> [-D<driver>] ...] drivers: hostap = Host AP driver (Intersil Prism2/2.5/3) prism54 = Prism54.org driver (Intersil Prism GT/Duette/Indigo) madwifi = MADWIFI 802.11 support (Atheros, etc.) atmel = ATMEL AT76C5XXx (USB, PCMCIA) wext = Linux wireless extensions (generic) ndiswrapper = Linux ndiswrapper ipw = Intel ipw2100/2200 driver wired = wpa_supplicant wired Ethernet driver options: -B = run daemon in the background -d = increase debugging verbosity (-dd even more) -K = include keys (passwords, etc.) in debug output -t = include timestamp in debug messages -h = show this help text -L = show license (GPL and BSD) -q = decrease debugging verbosity (-qq even less) -v = show version -w = wait for interface to be added, if needed -W = wait for a control interface monitor before starting -N = start describing new interface No configuration found. Failed to bring up eth1.
eth1 unassociated ESSIDff/any Nickname:"ipw2100" Mode:Managed Channel=0 Access Point: 00:00:00:00:00:00 Bit Rate=0 kb/s Tx-Powerff Retry min limit:7 RTS thrff Fragment thrff Power Managementff Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
# Minimal /etc/wpa_supplicant.conf to associate with open # access points. Please see # /usr/share/doc/wpasupplicant/wpa_supplicant.conf.gz for more complete # configuration parameters. ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 eapol_version=1 ap_scan=1 fast_reauth=1 ### Associate with any open access point ### Scans/ESSID changes can be done with wpa_cli network={ ssid="parsifal" key_mgmt=WPA-PSK psk="ma clé" }
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # This is a list of hotpluggable network interfaces. # They will be activated automatically by the hotplug subsystem. mapping hotplug script grep map eth0 map eth1 # The primary network interface auto eth1 iface eth1 inet dhcp
uname -apour connaître votre version de Kernel (noyau)
sudo -spour rester en mode superutilisateur sans entrer chaque fois
sudo
iwconfig eth1pour voir l'état de votre connection WIFI.
iwconfigpour le connaître.Il est plus que probable que vous aurez un eth1 avec la Intel 2100 3b.
iwconfig eth1
eth1 IEEE 802.11b ESSID:"nomdevotreréseau" Nickname:"ipw2100" Mode:Managed Frequency:2.437 GHz Access Point: 00:16:B6:11:36:1F Bit Rate=11 Mb/s Tx-Powerff Retry min limit:7 RTS thrff Fragment thrff Encryption key:0000-0000-0000-0000-0000-0000-00 Security modepen Power Managementff Link Quality=88/100 Signal level=-70 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:3 Missed beacon:0
sudo alien -i ipw2100-1.2.1.tgzpour obtenir un paquet .deb pour Ubuntu 5.10 ou tout autre version Debian
ipw2100_1.2.1-2_all.deb
sudo dpkg -i ipw2100_1.2.1-2_all.deb.Normalement tout devrait se dérouler sans erreur si le paquet est bien fait. Sinon vérifiez le code MD5SUM du paquet tgz et les options de dpkg
dpkg --help
lsmod |grep ipw2100on a:
ipw2100 78896 0 firmware_class 9472 1 ipw2100 ieee80211 27012 1 ipw2100 ieee80211_crypt 5636 4 ieee80211_crypt_tkip,ieee80211_crypt_wep,ipw2100,ieee80211 root@ubuntu:~#
lsmod |grep ipw2100
apt-get install wpasupplicant
iwconfig
ifup eth1si vous n'êtes pas associé par le DHCP, vous pouvez essayer
dhclient eth1et de nouveau
iwconfig eth1
# /etc/default/wpasupplicant # WARNING! Make sure you have a configuration file! # Useful flags: # -D <driver> Wireless drive, typically optional. # -i <ifname> Interface # -c <config file> Configuration file # -d Debugging (-dd for more) # -w Wait for interface to come up # See the manual page wpa_supplicant(1) for more options and information. ENABLED=1 OPTIONS="-Dipw -ieth1 -c/etc/wpa_supplicant.conf -d -w" # EXAMPLES: # OPTIONS="-i wlan0 -D hostap -c /etc/wpa_supplicant.conf" # OPTIONS="-i ath0 -D madwifi -c /etc/wpa_supplicant.conf" # OPTIONS="-Dipw -ieth1 -c/etc/wpa_supplicant.conf -d -w"
# Minimal /etc/wpa_supplicant.conf to associate with open # access points. Please see # /usr/share/doc/wpasupplicant/wpa_supplicant.conf.gz for more complete # configuration parameters. ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 eapol_version=1 ap_scan=1 fast_reauth=1 ### Associate with any open access point ### Scans/ESSID changes can be done with wpa_cli network={ ssid="votre réseau" scan_ssid=1 proto=WPA key_mgmt=WPA-PSK psk="votresuperclé" }
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # This is a list of hotpluggable network interfaces. # They will be activated automatically by the hotplug subsystem. mapping hotplug script grep map eth1 # The primary network interface auto eth0 iface eth0 inet dhcp # The secondary network interface auto eth1 iface eth1 inet dhcp pre-up /etc/init.d/wpasupplicant start wireless_ssid votre réseau wireless-mode managed wireless_enc on post_down /etc/init.d/wpasupplicant stop
ifup eth1
iwconfig eth1devrait donner:
eth1 IEEE 802.11b ESSID:"reseau" Nickname:"ipw2100" Mode:Managed Frequency:2.437 GHz Access Point: 00:16:B6:11:36:1F Bit Rate=11 Mb/s Tx-Powerff Retry min limit:7 RTS thrff Fragment thrff Encryption key:0000-0000-0000-0000-0000-0000-00 Security modepen Power Managementff Link Quality=88/100 Signal level=-70 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:3 Missed beacon:0
iwconfig eth1