PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > wpasupplicant in roaming mode
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

wpasupplicant in roaming mode

Réponse
 
LinkBack Outils de la discussion
Vieux 07/05/2008, 20h20   #1
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut wpasupplicant in roaming mode

Hello everybody,

I'm trying to configure the roaming mode for wpasupplicant but I don't
seem to get it right.

After boot:

$ /sbin/wpa_cli # my user is in 'netdev' group
wpa_cli v0.6.3
Copyright (c) 2004-2008, Jouni Malinen <j@w1.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.


Could not connect to wpa_supplicant - re-trying

(I have to interrupt it with Ctrl-c)

$ ps aux | grep wpa
root 2273 0.0 0.1 4348 964 ? S<s 21:16 0:00 /sbin/wpa_supplicant -W -B -P /var/run/wpa_supplicant.eth1.pid -i eth1 -D wext -t -ddd -f /var/log/wpa_supplicant.eth1.log -c /etc/wpa_supplicant/wpa-roam.conf

$ /sbin/iwconfig eth1

eth1 IEEE 802.11g ESSID:"homewlan"
Mode:Managed Frequency:2.442 GHz Access Point: 00:1B:11:F7:8B:6C
Bit Rate:54 Mb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 RTS thrff Fragment thrff
Power Managementff
Link Quality=88/100 Signal level=-41 dBm Noise level=-89 dBm
Rx invalid nwid:0 Rx invalid crypt:1 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

'homewlan' is my D-Link router and as far as I can read the log the
connection is ok, but

$ /sbin/ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:0e:35:b3:f8:ed inet6 addr:
fe80::20e:35ff:feb3:f8ed/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24 errors:1 dropped:1 overruns:0 frame:0
TX packets:3 errors:0 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1206 (1.1 KiB) TX bytes:1077 (1.0 KiB)
Interrupt:11 Base address:0xe000 Memory:d0200000-d0200fff

If I 'ifdown/ifup' my adapter it will eventually reconnect to my router
(after trying all networks in the neighbourhood, though I set a high
priority for it) and also make the proper settings according to my
/etc/network/interfaces

Here are my configs. I hope you can spot some error because I'm banging
my head against the wall for almost a week now.


,----[ /etc/network/interfaces ]
| # 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
[...]
|
| # The primary network interface
[...]
|
| ## The wireless interface
| #allow-hotplug eth1
| #iface eth1 inet static
| # wpa-ap-scan 1
| # wpa-scan-ssid 1
| # wpa-ssid homewlan
| # wpa-psk xxxxxxxxxxxxx
| # address 192.168.77.78
| # netmask 255.255.255.0
| # gateway 192.168.77.253
| # dns-nameservers 192.168.77.253 193.231.233.1 193.231.233.8
|
| allow-hotplug eth1
| iface eth1 inet manual
| wpa-ap-scan 1
| wpa-scan-ssid 1
| wpa-roam /etc/wpa_supplicant/wpa-roam.conf
| wpa-debug-level 3
|
| iface homewlan inet static
| address 192.168.77.78
| netmask 255.255.255.0
| gateway 192.168.77.253
| dns-nameservers 192.168.77.253 193.231.233.1 193.231.233.8
|
| iface airport inet dhcp
|
| iface default inet dhcp
`----

,----[ /etc/wpa_supplicant/wpa-roam.conf ]
| update_config=1
|
| ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
| # My networks
| # at home
| network={
| ssid="homewlan"
| psk="xxxxxxxxxxxxxxx"
| proto=RSN
| key_mgmt=WPA-PSK
| pairwise=CCMP
| group=CCMP
| id_str="homewlan"
| priority=10
| }
|
| # airport
| network={
| ssid="Hol plecari_11G 2"
| key_mgmt=NONE
| id_str="airport"
| priority=5
| }
|
| ################################################## #############################
| # Default behaviour is to associate with any open access point, further
| # networks can be configured with wpa_cli/wpa_gui.
| #
| network={
| key_mgmt=NONE
| }
`----

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIIf5uqJyztHCFm9kRAmD5AJ46USenMaPD4stBIBff7e A4VHFoWwCfUiNg
CsU9EDQDF0dDqPZgXw4FJEo=
=RS7M
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 08/05/2008, 08h10   #2
Giorgos D. Pallas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: wpasupplicant in roaming mode

Andrei Popescu wrote:
> Hello everybody,
>
> I'm trying to configure the roaming mode for wpasupplicant but I don't
> seem to get it right.
>
>

my 2 cents:
If you are using KDE you may want to try using Knetworkmanager. I am the
typing-on-black-screen type of guy, but on this I have to admit that
this ubuntu philosophy tool, works far far better than configuring
everything regarding network by hand...

Cheers,
G.


  Réponse avec citation
Vieux 08/05/2008, 09h00   #3
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: wpasupplicant in roaming mode

On Thu, May 08, 2008 at 10:02:43AM +0300, Giorgos D. Pallas wrote:
> Andrei Popescu wrote:
>> Hello everybody,
>>
>> I'm trying to configure the roaming mode for wpasupplicant but I don't
>> seem to get it right.
>>
>>

> my 2 cents:
> If you are using KDE you may want to try using Knetworkmanager. I am the
> typing-on-black-screen type of guy, but on this I have to admit that this
> ubuntu philosophy tool, works far far better than configuring everything
> regarding network by hand...


My real goal here is to make the most end-user friendly setup with as
few software as possible (and DE independent) so network-manager and
other GUI tools except wpa_gui are out of question.

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIIrCMqJyztHCFm9kRAr/aAJ9uaL+AyZ06H7Iid0UanM8fgwmmJQCgpGxR
nImT+IZLyfmmvC+lC3u/m0o=
=yOXw
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h18.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13847 seconds with 11 queries