Hallo,
ich habe vor ein paar Tagen Archlinux mit der aktuellen Version neuinstalliert (Diese Batch-Install Iso), danach Wlan (iwl3945) eingerichtet. (iwlwifi-3945-ucode ist installiert)
Jetzt habe ich mit, wie ich das immer schon mache ein Script erstellt welches mir die Wlan-Verbindung zuhaus aufbaut.
root ~ # cat wlan
killall dhcpcd 2> /dev/null;
ifconfig wlan0 192.168.1.1 up ;
iwconfig wlan0 essid mein_netzerwek key mein_key ;
dhcpcd wlan0 ;
root ~ #
Allerdings muss ich das Script genau 3 mal starten bis ich eine Verbindung aufgebaut habe, warum??
Folgende Ausgaben erhalte ich der Reihe nach:
root ~ # ./wlan
err, wlan0: timed out
warn, wlan0: using IPV4LL address 169.254.103.20
root ~ # ./wlan
err, wlan0: dhcpcd already running on pid 4773 (/var/run/dhcpcd-wlan0.pid)
root ~ # ./wlan
root ~ #
Gut, Ausgabe 2 ist klar, aber warum kann er beim 1. mal noch keine Netzwerkverbindung aufbauen?
Wenn ich das ganze von Hand bei einem anderen Netzwerk mache, muss ebenfalls der Vorgang wiederholt werden bis es endlich funktioniert.
Hier mal noch die Netzwerkeinstellungen beim booten:
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="linux"
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)[code]
Und meine (vorerst :P) letze Frage: ist es ok, wenn ich den ipw3945 mit einem ! aus der MODULES=() Liste nehme? Der war schon von der Installation an drin, aber ich brauch den ja eig. nicht weil ich den iwl3945 mit dem aktuellen Kernel verwende?
Danke schonmal,
mfg Max