Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 25/08/2005, à 10:50

grosbouff

[Résolu]Error: wlan0 failed to associate, can't use DHCP for IP (...)

Salut ! Tout allait bien jusqu'à hier, quand tout à coup ma connexion a sauté.. Depuis, plus moyen de la relancer.
Je pense pas avoir fait de modifications ou d'install qui aurait perturbé le truc; je vous poste donc l'erreur qu'il me donne.
J'ai une carte Dlink DWL-120+ que j'utilise avec les drivers ACX100; et qui se connecte à un routeur.
Voici l'erreur :

root@ubuntu:/home/gordie/acx100-0.2.0pre8_plus_fixes_57/scripts # ./start_net
Transfer rate is not set to 11
  Mbps, but 22M (and not using auto rate either). If something doesn't work, try 11 Mbps or auto rate.
using wlan0.
Module successfully inserted.
Setting rate to 22M .
Setting channel 6.
Going to try to join or setup ESSID default.
Setting mode to Managed.
Setting key to MACLEF, algorithm open.
Setting power LED to off.
Waiting for association...10 9 8 7 6 5 4 3 2 1 FAILED.
Error: wlan0 failed to associate, can't use DHCP for IP address.
Interface has been set up successfully.

Et voici la partie éditable de mon fichier start_net :

ESSID="default" # THIS IS CASE SeNsItIvE!! any == associate to any ESSID
# Default rate configured as 11Mbps to not cause speed problems (while
# using auto rate) or connection problems (while not using auto rate)
# with non-22Mbps hardware...
RATE=22M
AUTORATE=0 # only disable auto rate if you know what you're doing...
CHAN=6 # it's useful to try to stick to channels 1, 6 or 11 only, since these don't overlap with other channels
#SHORTPREAMBLE=1 # set a value of 1 in order to force "Short Preamble" (incompatible with very old WLAN hardware!) instead of peer autodetect
#TXPOWER=20 # 0..20 (dBm) (18dBm is firmware default) overly large setting might perhaps destroy your radio eventually!
MODE=Managed # Managed for infrastructure, Ad-hoc for peer-to-peer. NOTE: Auto mode is not supported any more, you HAVE to select a specific mode!
DEBUG=0xb # 0xffff for maximum debug info, 0 for none

# WEP Key(s)
# ascii keys (passphrase) should look like this: KEY="s:asciikey"
# hex keys should look like this: KEY="4378c2f43a"

# most wep users will want to use this line
KEY="MACLEF"

# alternatively, you can uncomment and use these lines to
# set all 4 possible WEP keys
#KEY1="1234567890"  #WEP64
#KEY2="1234567890"
#KEY3="1234567890"
#KEY4="1234567890"
# you must select which of the 4 keys above to use here:
#KEY="[1]" # for KEY1, "[2]" for KEY2, etc

ALG=open # open == Open System, restricted == Shared Key

#IP address

USE_DHCP=1 # set to 1 for auto configuration instead of fixed IP setting

IP=192.168.0.3 # set this if you did not set USE_DHCP=1
NETMASK=255.255.255.0 # set this if you did not set USE_DHCP=1
GATEWAY=192.168.0.1 # set this if you did not set USE_DHCP=1

LED_OFF=1 # set to 1 to turn off the power LED to save power

MTU_576=0 # set to 1 if you have buffer management problems

Pouvez vous m'aider ? C'est très urgent...

Dernière modification par grosbouff (Le 25/08/2005, à 11:13)

Hors ligne

#2 Le 25/08/2005, à 10:54

Globule

Re : [Résolu]Error: wlan0 failed to associate, can't use DHCP for IP (...)

On dirais que ton serveur DHCP n'a plus d'adresses de dispo !
Essai avec une IP fixe !
D'ailleur dans ton fichier de conf start.net, je trouve ceci étrange (DHCP + ip fixe)

#IP address

USE_DHCP=1 # set to 1 for auto configuration instead of fixed IP setting

IP=192.168.0.3 # set this if you did not set USE_DHCP=1
NETMASK=255.255.255.0 # set this if you did not set USE_DHCP=1
GATEWAY=192.168.0.1 # set this if you did not set USE_DHCP=1

Ca fais double emploi !

De plus , le module acx_100 est dans le noyau avec modules restricted, alors pourquoi avoir compilé ?

Hors ligne

#3 Le 25/08/2005, à 11:01

grosbouff

Re : [Résolu]Error: wlan0 failed to associate, can't use DHCP for IP (...)

Globule a écrit :

je trouve ceci étrange (DHCP + ip fixe)

Non, regarde :


USE_DHCP=1 # set to 1 for auto configuration instead of fixed IP setting

Globule a écrit :

De plus , le module acx_100 est dans le noyau avec modules restricted, alors pourquoi avoir compilé ?

J'ai suivi le tuto de Craig pour installer ma carte. Ca fonctionnait super bien jusqu'à hier !
Je remarque également que l'erreur est liée à ce paragraphe du fichier start_net :

			WAIT_ASSOC=`expr $WAIT_ASSOC - 1`

			if test "$WAIT_ASSOC" = "0"; then
				echo FAILED.
				# if they wanted dhcp, tell them the bad news
				if test $USE_DHCP -eq 1; then
					echo "Error: $DEV failed to associate, can't use DHCP for IP address."
					USE_DHCP=0;
				fi
				break
			fi

Hors ligne

#4 Le 25/08/2005, à 11:05

Globule

Re : [Résolu]Error: wlan0 failed to associate, can't use DHCP for IP (...)

Non, regarde :
USE_DHCP=1 # set to 1 for auto configuration instead of fixed IP setting

Oui MAIS regarde :

#IP address

USE_DHCP=1 # set to 1 for auto configuration instead of fixed IP setting

IP=192.168.0.3 # set this if you did not set USE_DHCP=1
NETMASK=255.255.255.0 # set this if you did not set USE_DHCP=1
GATEWAY=192.168.0.1 # set this if you did not set USE_DHCP=1

big_smile

Hors ligne

#5 Le 25/08/2005, à 11:12

grosbouff

Re : [Résolu]Error: wlan0 failed to associate, can't use DHCP for IP (...)

Globule a écrit :

Oui MAIS regarde :

#IP address

USE_DHCP=1 # set to 1 for auto configuration instead of fixed IP setting

IP=192.168.0.3 # set this if you did not set USE_DHCP=1
NETMASK=255.255.255.0 # set this if you did not set USE_DHCP=1
GATEWAY=192.168.0.1 # set this if you did not set USE_DHCP=1

big_smile

Mhhh peut-être que tu as raison !
Mais ça marchait avant ???
Quoi qu'il en soit; j'ai fait ceci

USE_DHCP=0 # set to 1 for auto configuration instead of fixed IP setting

IP=192.168.0.3 # set this if you did not set USE_DHCP=1
NETMASK=255.255.255.0 # set this if you did not set USE_DHCP=1
GATEWAY=192.168.0.1 # set this if you did not set USE_DHCP=1

Et ça remarche, youpee !

Dernière modification par grosbouff (Le 25/08/2005, à 11:12)

Hors ligne