You are not logged in.

#1 2008-05-26 14:43:46

Kardell
Member
From: London a new Babylon
Registered: 2007-02-20
Posts: 225

netcfg2 thing

I`m connecting with my wifi router using:

02:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)

by iwl3945 driver, because even ipw3945 got better detection is unexpectedly losing connection caused by some hardware failure described here: http://bbs.archlinux.org/viewtopic.php?id=44941.

I`ve got 2 profiles stored in /etc/network.d/:

CONNECTION="wireless"
DESCRIPTION="A wep encrypted wireless connection using static ip"
INTERFACE="wlan0"
SCAN="no"
IP="static"
IFOPTS="192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
GATEWAY="192.168.0.1"
DNS1="62.30.112.39"
DNS2="194.117.134.19"
TIMEOUT="10"
SECURITY="WEP"
ESSID="lol"
KEY="<censored>"

1st one is hidden, ESSID is not broadcasted by the router.

CONNECTION="wireless"
DESCRIPTION="A wep encrypted wireless connection using dhcp"
INTERFACE="wlan0"
SCAN="yes"
IP="dhcp"
TIMEOUT="20"
ESSID="lol2"
SECURITY="WEP"
KEY="<censored>"

I was using netcfg2 several times, but I had to use KWifiManager as well to connect.
The problem is that I always have to go to /opt/kde/bin/kcmshell - kcmwifi and press Start on choosed wifi configuration, otherwise KWifiManager will never assign ESSID, HWaddr, IP and key.
Besides I have to add gateway (route add) myself when I want to connect using 1st static profile.

I`m on the way to try ArchAssistant right now, but it uses netcfg2.

I`ve got no net hook in my kernel.
Does deamon order influence on the settings? I got net-profiles after network deamon.

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/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="pl_PL.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Warsaw"
KEYMAP="-u pl2"
CONSOLEFONT="lat2-16"
CONSOLEMAP=
USECOLOR="yes"
#Polonizacja
LC_ALL="pl_PL.UTF-8"
LC_COLLATE="PL"

#
# -----------------------------------------------------------------------
# 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=(acpi-cpufreq cpufreq_powersave !speedstep-centrino r8169 iwl3945 !ipw3945 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore evdev psmouse kqemu)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="skywalker"
#
# 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
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
#lo="lo 127.0.0.1"
#eth1="dhcp"
#wlan0="dhcp"
eth0="eth0 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255"
wlan0="wlan0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth1="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#wlan0="wlan0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255"
#wlan0="wlan0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#WLAN_INTERFACES=(wlan0)
#INTERFACES=(!lo eth0 wlan0)
INTERFACES=()
#
# Routes to start at boot-up (in this order)1
# 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
#
NETWORKS=("auto-wireless wlan0" wifi)

#
# -----------------------------------------------------------------------
# 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=(acpid cpudyn syslog-ng cpufreq hal iptables !ipw3945d network net-profiles netfs crond alsa kdm !fam sensors !wifi-radar wicd httpd mysqld samba lisa proftpd)

# End of file

"Those who don't know history are doomed to repeat it." Edmund Burke

Offline

#2 2008-05-26 15:18:45

Kardell
Member
From: London a new Babylon
Registered: 2007-02-20
Posts: 225

Re: netcfg2 thing

I`ve corrected profiles spelling and after replacement INTERFACE="wlan" to wlan, SECURITY="WEP" to "wep" and TIMEOUT="10" to 10 the problem of connection reanimation dissapeared. How silly-simple?!
There is only problem with dhcp of my neighbour hub, as I see especially with DNS assigning.


"Those who don't know history are doomed to repeat it." Edmund Burke

Offline

Board footer

Powered by FluxBB