Wired Netzwerk roaming mit wpasupplicant

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
mase76
Beiträge: 1353
Registriert: 19.06.2004 08:57:32

Wired Netzwerk roaming mit wpasupplicant

Beitrag von mase76 » 21.02.2008 21:06:45

Hallo!
Heute wurde auf meinem Debian Lenny wpasupplicant aktualisiert. Da hat sich in Sachen Roaming ja einiges
geändert. Vorher hab ich das mit ifplugd, guessnet und wpasupplicant gemacht. Mein Laptop hat wlan und
eine Kabelkarte. ifplugd hab ich jetzt entfernt. Mit dem wlan funktioniert alles bestens, aber nicht mit dem
Kabelgebundenen. Ausser der Meldung eth1 link up bekomm ich nichts im syslog. Das Interface wird nicht
automatisch aktiviert.
Hier meine interfaces:

Code: Alles auswählen

# 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

allow-hotplug eth1
iface eth1 inet manual
wpa-driver wired
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
wpa-roam-default-iface default-wparoam
wpa-mapping-script guessnet-ifupdown
wpa-map default: default-guessnet
wpa-map0 inyourface-cable

allow-hotplug wlan0
iface wlan0 inet manual
wpa-driver wext
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
wpa-roam-default-iface default-wparoam
wpa-mapping-script guessnet-ifupdown
wpa-map default: default-guessnet
wpa-map0 inyourface1
wpa-map1 inyourface2

iface inyourface-cable inet dhcp
test peer address 192.168.0.1

iface inyourface1 inet dhcp
test peer address 192.168.0.2 mac ...

iface inyourface2 inet dhcp
test peer address 192.168.0.3 mac ...

iface default inet static
address 192.168.0.21
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

iface default-guessnet inet dhcp

iface default-wparoam inet dhcp
Dann meine wpa_supplicant.conf:

Code: Alles auswählen

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="inyourface1"
        scan_ssid=1
        psk="..."
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=TKIP
        group=TKIP WEP104 WEP40
        auth_alg=OPEN
        id_str="inyourface1"
}

network={
        ssid="inyourface2"
        scan_ssid=1
        psk="..."
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=TKIP
        group=TKIP WEP104 WEP40
        auth_alg=OPEN
        id_str="inyourface2"
}

network={
        key_mgmt=NONE
        id_str="inyourface-cable"
}

network={
        key_mgmt=NONE
}
Ein ifup eth1 aktiviert die Karte und ich bekomm eine IP.
Hab ich da irgendwas falsch gemacht?

Antworten