Ich tu mir grad Wlan im Heimnetzwerk an. Auf dem Bastelrouter habe ich ein Vigor510 USB Dongle gesteckt. Die Konfiguration erfolgt beim Laden des Treibers mittels UDEV über die Dateien in /etc/wlan
Code: Alles auswählen
#=======USER MIB SETTINGS=============================
# You can add the assignments for various MIB items
# of your choosing to this variable, separated by
# whitespace. The wlan-ng script will then set each one.
# Just uncomment the variable and set the assignments
# the way you want them.
#USER_MIBS="p2CnfRoamingMode=1 p2CnfShortPreamble=mixed"
#=======WEP===========================================
# [Dis/En]able WEP. Settings only matter if PrivacyInvoked is true
lnxreq_hostWEPEncrypt=true # true|false
lnxreq_hostWEPDecrypt=true # true|false
dot11PrivacyInvoked=true # true|false
dot11WEPDefaultKeyID=0 # 0|1|2|3
dot11ExcludeUnencrypted=true # true|false, in AP this means WEP is required.
# If PRIV_GENSTR is not empty, use PRIV_GENTSTR to generate
# keys (just a convenience)
# add-ons/ in the tarball contains other key generators.
PRIV_GENERATOR=/sbin/nwepgen # nwepgen, Neesus compatible
PRIV_KEY128=false # keylength to generate
PRIV_GENSTR=""
# or set them explicitly. Set genstr or keys, not both.
dot11WEPDefaultKey0=01:02:03:04:05:06:07:08:09:10:11:12:13
dot11WEPDefaultKey1= # xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
dot11WEPDefaultKey2= # e.g. 01:20:03:40:05 or
dot11WEPDefaultKey3= # 01:02:03:04:05:06:07:08:09:0a:0b:0c:0d
#=======SELECT STATION MODE===================
IS_ADHOC=y # y|n, y - adhoc, n - infrastructure
#======= INFRASTRUCTURE STATION ===================
# What kind of authentication?
AuthType="sharedkey" # opensystem | sharedkey (requires WEP)
#======= ADHOC STATION ============================
BCNINT=100 # Beacon interval (in Kus)
CHANNEL=6 # DS channel for BSS (1-14, depends
# on regulatory domain)
BASICRATES="2 4" # Rates for mgmt&ctl frames (in 500Kb/s)
OPRATES="2 4 11 22" # Supported rates in BSS (in 500Kb/s)
Wenn ich das aber in /etc/networc/interfaces eintrage
Code: Alles auswählen
iface wlan0 inet static
address 192.168.2.2
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
wird die Karte resettet und zwar so das man das mittels wlanctl-ng nicht mehr beheben kann. Die Karte wechselt sodann vom ad-hoc in den managed Modus sowie auch die ESSID und versucht sich dann an Nachbers Access Point zu verbinden. Und ab da kann ich es nicht mehr rückgängig machen weil alles mit wlanctl-ng ignoriert wird. Alle Versuche per Hand oder EIntragungen in ~/interfaces bleiben fruchtlos, die Karte will sich an dem fremden Access Point verbinden und es folgt der Neustart. Ohne Eintrag in /etc/network/interfaces klappt es ja mittels ifconfig
Code: Alles auswählen
iface wlan0 inet static
pre-up modprobe prism2-usb
pre-up wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
pre-up wlanctl-ng wlan0 lnxreq_autojoin ssid=linuxheimnetz authtype=sharedkey
pre-up wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKeyID=0
pre-up wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11ExcludeUnencrypted=true
pre-up wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11PrivacyInvoked=true
pre-up wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey0=01:02:03:04:05:06:07:08:09:10:11:12:13
address 192.168.2.2
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255