wpa_passphrase bei verschiedenen WLANs
wpa_passphrase bei verschiedenen WLANs
Hallo zusammen,
eine Frage: wie mache ich das am geschicktesten wenn ich mit meinem Notebook an verschiedenen WLANs dranhänge? Eins an der Uni wo ich nur mit UserID und Passwort reinkomme. Das gleiche auf der Arbeit. Und dann auch an irgendwelche öffentlichen WLANs in der Stadt. Muss ich dann für jedes einzelne eine eigene Konfigartion anlegen. Ach ja ich benutze Etch und an allen Plätzen habe ich es mit DHCP-Servern zu tun!
Gruss Christian
eine Frage: wie mache ich das am geschicktesten wenn ich mit meinem Notebook an verschiedenen WLANs dranhänge? Eins an der Uni wo ich nur mit UserID und Passwort reinkomme. Das gleiche auf der Arbeit. Und dann auch an irgendwelche öffentlichen WLANs in der Stadt. Muss ich dann für jedes einzelne eine eigene Konfigartion anlegen. Ach ja ich benutze Etch und an allen Plätzen habe ich es mit DHCP-Servern zu tun!
Gruss Christian
Die größten Kritiker der Elche,
waren früher selber welche.
F.W. Bernstein
waren früher selber welche.
F.W. Bernstein
-
- Beiträge: 2186
- Registriert: 18.09.2005 15:52:02
- Lizenz eigener Beiträge: GNU Free Documentation License
-
Kontaktdaten:
es gibt genau dazu auch den NetworkManager, der über hal läuft, habe ich gerade mal probeweise auf meinem Laptop installiert und bin völlig begeistert! Läuft als Daemon und als Applet sowohl in Gnome, Xfce und KDE integrierbar! Versuch das doch mal, dann kannst du dir auch das einrichten von wpasupplicant und das gefummel in den Configs sparen!
Grüße,
Patrick
Grüße,
Patrick
Ich habe dazu folgendes in der Datei README.modes im Verzeichnis /usr/share/doc/wpasupplicant gefunden:
Etwa mit ifup uni?
Aber so richtig verstanden habe ich das auch noch nicht. Wenn ich die Einträge in die /etc/network/interfaces so eintrage und auch die wpa_supplicant.conf im Verzeichnis /etc/wpa_supplicant/ erstelle, wie rufe ich dann z.B die Einstellungen für "uni" auf?3. Mode #2: Roaming Mode
========================
A self contained, simplistic roaming mechanism is provided by this package. It
is in the form of a wpa_cli action script, /sbin/wpa_action, and it assumes
control of ifupdown once activated. The wpa_action(8) manpage describes its
technical details in great depth.
To activate a roaming interface, adapt the following example interfaces(5)
stanza:
iface eth1 inet manual
wpa-driver wext
wpa-roam /path/to/wpa_supplicant.conf
Two daemons are spawned from the above example; wpa_supplicant and wpa_cli. It
is required to provide a wpa_supplicant.conf. A good starting point is provided
by an example configuration file:
cp /usr/share/doc/wpasupplicant/examples/wpa_connect_open_ap.conf \
/etc/wpa_supplicant/wpa_supplicant.conf
It is required to edit this configuration file, and add the network blocks for
all known networks. If you do not understand what this means, start reading the
wpa_supplicant.conf(5) manpage now.
For each network, you may specify a special option 'id_str'. It should be set to
a simple text string. This text string forms the basis for network profiling; it
correlates to a logical interface defined in the interfaces(5) file. When no
'id_str' is given for a network, wpa_action assumes it will use the 'default'
logical interface as fallback. The fallback interface can be chosen via the
'wpa-default-iface' option.
So what does all this mean? Lets illustrate it with a small example taken from
the wpa_action(8) manpage.
wpa_supplicant.conf
===================
network={
ssid="foo"
# this id_str will notify /sbin/wpa_action to 'ifup uni'
id_str="uni"
key_mgmt=NONE
}
network={
ssid="bar"
# this id_str will notify /sbin/wpa_action to 'ifup home_static'
id_str="home_static"
psk=123456789...
}
network={
ssid=""
# no 'id_str' is given, /sbin/wpa_action will 'ifup default'
key_mgmt=NONE
}
/etc/network/interfaces
=======================
# the roaming interface MUST use the manual inet method
iface eth1 inet manual
wpa-driver wext
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
# no id_str, 'default' is used as the fallback mapping target
iface default inet dhcp
# id_str="uni"
iface uni inet dhcp
# id_str="home_static"
iface home_static inet static
address 192.168.0.20
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
A logical interface is brought up via ifup, and taken down via ifdown, as
wpa_supplicant associates and de-associates with the network associated
to it by the 'id_str' option used in the wpa_supplicant.conf configuration file.
A log of /sbin/wpa_action's actions is created at /var/log/wpa_action.log,
please attach the log when reporting problems.
Etwa mit ifup uni?
Oh, yeah!
Code: Alles auswählen
eth1 radio off ESSID:off/any
Mode:Managed Channel:0 Access Point: Not-Associated
Bit Rate=0 kb/s Tx-Power=off Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
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
Bevor ich durch einen Festplattencrash alles verloren habe hab ich das Modul auch immer ge- und entladen, aber wenn ich mir das so ansehe ist das nciht nötig. Daher hab ichs nicht mehr eingebaut.
Formerly known as Trigger.
HP 8510p - Debian Sid
Mitglied des Debian-KDE-Teams
HP 8510p - Debian Sid
Mitglied des Debian-KDE-Teams
Aha. Was besagt denn das radio off, radio on?
Bei mir steht bei einem iwconfig, wenn das wlan-device up ist:
Und wenn das wlan-device down ist:
Bei mir steht bei einem iwconfig, wenn das wlan-device up ist:
Code: Alles auswählen
eth2 IEEE 802.11g ESSID:"MyHomeAP"
Mode:Managed Frequency:2.462 GHz Access Point: 00:12:17:CC:01:DD
Bit Rate=54 Mb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Encryption key:8957-298A-0855-ACB8-2AD2-F621-CF0D-4284 Security mode:open
Power Management:off
Link Quality=59/100 Signal level=-65 dBm Noise level=-84 dBm
Rx invalid nwid:0 Rx invalid crypt:1 Rx invalid frag:0
Tx excessive retries:3 Invalid misc:37 Missed beacon:0
Code: Alles auswählen
eth2 IEEE 802.11g ESSID:"MyHomeAP"
Mode:Managed Frequency:2.462 GHz Access Point: 00:12:17:CC:01:DD
Bit Rate=54 Mb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=56/100 Signal level=-67 dBm Noise level=-84 dBm
Rx invalid nwid:0 Rx invalid crypt:1 Rx invalid frag:0
Tx excessive retries:3 Invalid misc:37 Missed beacon:0
Oh, yeah!