How is it possible to use network-profiles when you use con.d/wireless???
Why would you use conf.d/wireless? It's deprecated by the network profiles. The relevant bits of my rc.conf are:
lo="lo 127.0.0.1"
INTERFACES=(lo)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
NET_PROFILES=(name_of_profile)
Simple.
]]>Here is one of my profiles:
#
# Network Profile
#
DESCRIPTION="Bean Wifi"
# Network Settings
INTERFACE=wlan0
HOSTNAME=heaton
# Interface Settings (use IFOPTS="dhcp" for DHCP)
IFOPTS="dhcp"
#GATEWAY=192.168.0.1
# DNS Settings (optional)
#DOMAIN=localdomain
#DNS1=192.168.0.1
#DNS2=
# Wireless Settings (optional)
ESSID=anessid
CHANNEL=6
#KEY=awepkey
IWOPTS="mode managed essid $ESSID channel $CHANNEL"
#WIFI_INTERFACE=wlan0 # use this if you have a special wireless interface
# that is linked to the real $INTERFACE
I also use a udev rule to control what my interface is called:
[~]: cat /etc/udev/rules.d/Z0-custom.rules
# network interface rules
KERNEL="eth*", SYSFS{address}="00:AA:b4:00:00:00", NAME="wlan0"
You can read more about that on the wiki: udev
]]>don't have any ideas what I could try. :?:
So does anyone have some advice for my how to set it up.
Thanks
McQuack
]]>HOSTNAME="myhost"
lo="lo 127.0.0.1"
ath0="dhcp"
INTERFACES=(lo !eth0 ath0)
wlan_ath0="ath0 mode managed essid MYESSID key MYKEY"
its what works for me i only connect at home almost always that is unless
im on vacation which i just go in manually do scan then set mode stuff
I managed to install arch on my old laptop (celeron 500 128MB) and the most things work like they should. Only my wireless network doesn't start at boottime.
i have a Netgaer WG511T PCMCIA card with Atheros chipset, so i installed the madwifi drivers.
when I start manually with
ifconfig ath0 up
Iwconfig ath0 essid MYESSID
iwconfig ath0 key MYKEY
dhcpcd ath
everythig works fine, but when i try to do it on bootup networksetup fails.
so here are my files:
/etc/rc.conf
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/unimaps
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="de_DE.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Berlin"
KEYMAP="de-latin1-nodeadkeys"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
#
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by udev
MOD_BLACKLIST=()
#
# Modules to load at boot-up (in this order)
# - prefix a module with a ! to blacklist it
#
MODULES=(ath_pci snd-intel8x0)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="myhost"
#
# 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
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
ath0="dhcp"
INTERFACES=(lo !eth0 ath0)
#
# 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-profiles
#
#NET_PROFILES=(WLAN-home-WEP)
#
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng !hotplug hwd !pcmcia netfs crond network)
# End of file
/etc/conf.d/wireless
#
# Settings for wireless cards
#
# For each wireless interface declared in INTERFACES (in rc.conf), declare
# a wlan_${IF} variable that contains the arguments to be passed to
# iwconfig(8). Then list the original interface name in the
# WLAN_INTERFACES array.
#
#wlan_eth0="eth0 mode managed essid default"
#WLAN_INTERFACES=(eth0)
wlan_ath0="ath0 mode managed essid MYESSID key MYKEY"
WLAN_INTERFACE=(ath0)
Where is the mistake?
what do i have to change?
thanks for your support
McQuack
]]>