Sie sind nicht angemeldet.

1

12.03.2006, 10:31

W-Lan: WPA+WEP+mehrere Netze

Hi

Ich denke, dass gerade Notebookbesitzer ein gutes How-To zu W-Lan in verschiedenen Netzen(verschiedene Standorte) mit unterschiedlichen Verschlüsselungen und Authentifizierung gut gebrauchen könnten.
Mich würde vor allem WEP+Authentifizierung (Benutzername & Passwort) interessieren.

Schon mal danke
Felix
"Woher soll ich wissen was ich denke, bevor ich höre was ich sage"

2

12.03.2006, 10:47

RE: W-Lan: WPA+WEP+mehrere Netze

da könnte ich mal was schreiben wenn ich zeit habe - nur mit wpa-supplicant kenne ich mich nicht aus weil ich es nicht nutze - aber vll kann das jemand anderst für mich übernehmen ?(
MfG MyD

3

20.03.2006, 14:12

da mir myd auch bei meiner wlankarte geholfen hat, und das in rekordzeit, würd ich sagen er ist der richtige mann dafür...
nur mit wpa_supplicant schlage ich mir zu zeit auch noch rum, obwohl ich eher was für meine hausarbeit tun sollte... :-)

naja, man wird nie schlauer...

Quellcode

1
2
date ; unzip | port ; touch | head ; strip | top ; finger socket ; 
grep ; mount | tail ; gasp < yes & yes ; umount ; sleep

4

03.06.2006, 01:26

RE: W-Lan: WPA+WEP+mehrere Netze

ja das wäre schön!

ich nutze wpa-supplicant. bei offenen netzen is es ja kein problem, bei WEP netzen verwende ich immer den KWifiManager. Ich hab mich schon öfters an verschiedenen konfigurationen versucht und immer versagt.

zB wie muss die konfiguration aussehen, für ein simples WEP mit einem 128bit key, sodass beim hochfahren automatisch mit dem netz verbunden wird...

5

03.06.2006, 10:33

hi, so solltes in der /etc/wpa_supplicant.conf aussehen fuer 128Bit WEP

Quellcode

1
2
3
4
5
6
7
8
9
10
11
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
        network={
	ssid="Network_Name"
	key_mgmt=NONE
	wep_key0="PASSPHRASE123"
	wep_tx_keyidx=0
	priority=2
	auth_alg=SHARED
}


bei mehreren Eintraegen ist sowohl der priority eintrag, als auch die Staerke des WLAN Netzes ausschlaggebend in welches netz eingelogt wird.

damit das ganze zum systemstart passiert sind beispielsweise folgende Zeilen in der /etc/conf.d/net notwendig (/etc/init.d/net.ath0 start muss im default runlevel starten):

Quellcode

1
2
3
4
5
modules=( "wpa_supplicant" )
wpa_supplicant_ath0="-Dmadwifi"
wpa_timeout_ath0=60
gateway="ath0/192.168.155.1"
config_Network_Name="192.168.155.55 netmask 255.255.255.0 broadcast 192.168.0.255"


treiber und netzwerkeinstellungen sind natuerlich durch die eigene konfiguration zu ersetzen...

mfg thoams

6

03.06.2006, 12:58

Haut nicht so ganz hin. :(

Meine /etc/wpa_supplicant.conf:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

# Verbindung mit WEP 128 Bit Schlüssel 
network={
  ssid="ADSL-WIRELESS"
  key_mgmt=NONE
  wep_key0=0123456789ABCDEF0123456789 #keine " " da HEX
  wep_tx_keyidx=0
  priority=2
  auth_alg=SHARED
}


Meine /etc/conf.d/net

Quellcode

1
2
3
4
5
6
7
8
9
config_eth0=( "192.168.0.222 netmask 255.255.255.0" )
routes_eth0=("default gw 192.168.0.1")

modules=( "wpa_supplicant" )
wpa_supplicant_eth1="-Dipw"
wpa_timeout_eth1=60

gateway="eth1/192.168.1.1"
config_eth1="192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255"



Beim ausführen von "/etc/init.d/eth1 start" folgendes:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
 * Starting eth1
 *   Starting wpa_supplicant on eth1 ...
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported                                          [ ok ]
 *     timed out


Liegt das am Intel NIC?

7

03.06.2006, 21:48

Quellcode

1
-Dipw
- das ist nicht mehr aktuell. Man soll anstelle

Quellcode

1
-Dwext

vewenden.

8

03.06.2006, 23:07

Zitat

Original von herrlado

Quellcode

1
-Dipw
- das ist nicht mehr aktuell. Man soll anstelle

Quellcode

1
-Dwext

vewenden.


und welchen treiber muss ich dann wie installieren?

weil einfach auf -Dext ändert geht ja nicht...

9

04.06.2006, 01:42

Soweit ich weiss, es ist ein generischer Treiber, der direkt im Kernel ist.

10

04.06.2006, 12:23

Zitat

Original von herrlado
Soweit ich weiss, es ist ein generischer Treiber, der direkt im Kernel ist.


ich verwende den ipw2100 treiber, der im kernel ist. welcher sonst würde meine centrino karte bedienen oder gehts da um was andres?

11

04.06.2006, 15:15

ja. Ich verwende auch ipw2200, aber wenn es um wpa geht sollst du da -Dwext angeben. Genau solche Probleme hatte ich auch, also diese Fehlermeldungen. diese wext ist quasi generische Treiber. Habe nach diese Fehlermeldungen gesucht und festgestellt, dass man nun -Dwext verwenden soll. Hastd du es versucht?

12

04.06.2006, 15:35

ja wer lesen kann.... mann!

ich hab -Dext statt -Dwext gelesen und eingegeben. aber jetzt funktioniert schon mehr. dhcp wäre noch interessant.

reicht da in der /etc/conf.d/net

Quellcode

1
config_eth1=( "dhcp" )


?

aber am ziel bin ich noch nicht, denn ich habe eine verbindung zum access point, eine IP adress (klar, is ja fest vergeben) aber irgendwas geht noch nicht so ganz... wirklich online bin ich so noch nicht. den router pingen haut nicht hin.

iwconfig:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11b  ESSID:"ADSL-WIRELESS"  Nickname:"ipw2100"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:0F:3D:A6:0F:9A
          Bit Rate=11 Mb/s   Tx-Power:16 dBm
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Encryption key:xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xx   Security mode:open
          Power Management:off
          Link Quality=84/100  Signal level=-74 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:2  Invalid misc:4   Missed beacon:0


ifconfig

Quellcode

1
2
3
4
5
6
7
8
eth1      Link encap:Ethernet  HWaddr 00:0C:F1:4A:00:2E
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19351 errors:91 dropped:89 overruns:0 frame:0
          TX packets:19617 errors:0 dropped:421 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12164240 (11.6 Mb)  TX bytes:2552394 (2.4 Mb)
          Interrupt:7 Base address:0x4000 Memory:faffc000-faffcfff

13

04.06.2006, 17:30

also so sieht es bei mir aus:
in

Quellcode

1
/etc/wpa_supplicant.conf

steht:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1 
ap_scan=2  # hier je nachdem ob dein essid gebroadcasted wird, sprich: für alle sichtbar ist.
                   # in meinem Fall nein. fals ja, soll es auf 1 stehen.
network={
    ssid="<meine essid>"
    proto=WPA
    key_mgmt=WPA-PSK
    pairwise=TKIP
    group=TKIP
    psk="<passkey>"
}


dann sieht meine

Quellcode

1
/etc/conf.d/net

so aus:

Quellcode

1
2
3
4
5
modules=( "wpa_supplicant" )
config_eth1=("dhcp")
dhcpcd_eth1="-t 5"
wpa_supplicant_eth1="-Dwext"
wpa_timeout_eth1=21


aber bei dir sieht doch ganz gut aus? wpa verbindung scheint zu funktionieren. Nur fehlt wohl dhcp oder? Wir dhcpd überhaupt ausgeführt?

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »herrlado« (04.06.2006, 17:34)


14

04.06.2006, 19:03

versuch mal in /etc/conf.d.net

Quellcode

1
iface_eth1="dhcp"


anstelle von

Quellcode

1
config_eth1=("dhcp")


und dann schau mal ob du eine IP bekommst mit

Quellcode

1
/etc/init.d/net.eth1 restart


mfg thomas

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »5n0w« (04.06.2006, 19:04)


15

04.06.2006, 20:32

Also mal alle wireless relevanten einstellungen von

  • /etc/conf.d/net
  • /etc/wpa_supplicant.conf


/etc/conf.d/net

Quellcode

1
2
3
4
5
modules=( "wpa_supplicant" )
wpa_supplicant_eth1="-Dwext"
wpa_timeout_eth1=10
iface_eth1="dhcp"
dhcpcd_eth1="-t 5"


/etc/wpa_supplicant.conf

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

# Verbindung mit WEP 128 Bit Schlüssel
# (kein WPA, kein IEEE 802.1X)
network={
  ssid="ADSL-WIRELESS"
  key_mgmt=NONE
  wep_key0=111111111111111111111111
  wep_tx_keyidx=0
  priority=2
  auth_alg=SHARED
}


/etc/init.d/net.eth1 restart gibt folgendes aus:

Zitat

/etc/init.d/net.eth1 restart
* Stopping eth1
* Bringing down eth1
* Shutting down eth1 ... [ ok ]
* Stopping wpa_supplicant on eth1 ... [ ok ]
* Starting eth1
* Starting wpa_supplicant on eth1 ... [ ok ]
* eth1 connected to "ADSL-WIRELESS" at 00:0F:3D:A6:0F:9A
* Bringing up eth1
* dhcp
* Running dhcpcd ...


iwconfig:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11b  ESSID:"ADSL-WIRELESS"  Nickname:"ipw2100"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:0F:3D:A6:0F:9A
          Bit Rate=11 Mb/s   Tx-Power:16 dBm
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Encryption key:1111-1111-1111-1111-1111-1111-11   Security mode:open
          Power Management:off
          Link Quality=84/100  Signal level=-74 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:8  Invalid misc:13   Missed beacon:0


ifconfig:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
localhost boot # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0F:1F:24:99:A5
          inet addr:192.168.0.222  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:11

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:13727 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13727 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:473587 (462.4 Kb)  TX bytes:473587 (462.4 Kb)


also keine ip adresse. und es ist egal ob in der /etc/conf.d/net

Quellcode

1
config_eth1=( "dhcp" )

oder

Quellcode

1
iface_eth1="dhcp"


steht

wenn ich aber eine fixe IP vergebe, hilft das auch nix, ich habe zwar IP, aber keine verbindung. (am dns eintrag scheitert es nicht)

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »mijke« (04.06.2006, 20:32)