You are not logged in.

#1 2007-05-20 19:12:00

p_schott
Member
Registered: 2006-11-23
Posts: 54

[SOLVED] Wireless network at startup

As I had some troubles with network-manager, I have decided to configure my WPA wireless network following the wiki (http://wiki.archlinux.org/index.php/Wireless and http://wiki.archlinux.org/index.php/Ndi … supplicant). It is  close to working, excepted that network connection won't start automatically during boot : I get an error such as "host name lookup failure" and network doesn't work before I launch manually "dhcpcd ath0" as root.

Here is part of my rc.conf :

HOSTNAME="arch"
lo="lo 127.0.0.1"
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0="dhcp"
#ath0="dhcp"
INTERFACES=(lo)

#gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

NET_PROFILES=(ath0)

DAEMONS=(syslog-ng hal network netfs crond alsa cups splashy gdm)

I have unsuccessfully  tried  to add "dhcpcd" in the daemons list.

Any ideas someone ?

Last edited by p_schott (2007-05-21 15:22:33)

Offline

#2 2007-05-20 19:18:20

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] Wireless network at startup

Uncomment the ath0 line and add it to the INTERFACES array?

Offline

#3 2007-05-20 19:29:22

p_schott
Member
Registered: 2006-11-23
Posts: 54

Re: [SOLVED] Wireless network at startup

Already tried, but it doesn't work. Moreover the wiki related to wpa_supplicant states :

If you had configured normal networking, you will now configure it differently using network profiles. Therefore, comment out the lines and make sure interfaces only shows the lo (loopback), my examples below:

lo="lo 127.0.0.1"
#eth0="eth0 10.1.1.3 netmask 255.255.255.0 broadcast 10.1.1.255"
#wlan0="wlan0 10.1.1.4 netmask 255.255.255.0 broadcast 10.1.1.255"
INTERFACES=(lo)

Also, uncomment the network profiles line, as shown below:

NET_PROFILES=(wlan0)

Offline

#4 2007-05-20 19:32:42

p_schott
Member
Registered: 2006-11-23
Posts: 54

Re: [SOLVED] Wireless network at startup

Of course I have created /etc/network-profiles/ath0 :

DESCRIPTION="Wireless Profile"

INTERFACE=ath0
HOSTNAME=HP_Pavilion

IFOPTS="dchp"

# GATEWAY=10.1.1.1

ESSID=Cornafion
IWOPTS="mode managed essid $ESSID"

WIFI_INTERFACE=ath0

WIFI_WAIT=5

USEWPA="yes"
WPAOPTS="-D madwifi"

Offline

#5 2007-05-21 00:08:16

reader
Member
Registered: 2007-05-18
Posts: 3

Re: [SOLVED] Wireless network at startup

HOSTNAME="arch"
lo="lo 127.0.0.1"
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0="dhcp"
#ath0="dhcp"              -------------------->       have to be without # only ath0
INTERFACES=(lo)     -------------------->       have to be with    INTERFACE=(lo ath0)

#gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

NET_PROFILES=(ath0)

DAEMONS=(syslog-ng hal network netfs crond alsa cups splashy gdm)

Offline

#6 2007-05-21 00:14:21

reader
Member
Registered: 2007-05-18
Posts: 3

Re: [SOLVED] Wireless network at startup

BTW if you IFOPTS="dchp" in /etc/network-profiles/ath0: write IFOPTS=dhcp   
and DAEMONS there have to be your ath0 driver before "network" for example   DAEMONS=(syslog-ng hal ipw3945 network crond alsa cups splashy gdm)               
                                                                                                                                                                            ipw3945 --- > only for  example (wifi card)
and th last thing what you should do is /etc/rc.conf and module (mii ipw3945) again ipw3945 only example
wink

Offline

#7 2007-05-21 14:47:33

p_schott
Member
Registered: 2006-11-23
Posts: 54

Re: [SOLVED] Wireless network at startup

Thank you reader. So I tried again without success to add ath0 to INTERFACES.
I then tried to add madwifi to MODULES and DAEMONS as it is the driver for my card (so far as I now). It didn't work neither : madwifi is not recognized as a module, not as a daemon. How can I guess what module is to add and what daemon is to launch ?

Offline

#8 2007-05-21 15:06:32

p_schott
Member
Registered: 2006-11-23
Posts: 54

Re: [SOLVED] Wireless network at startup

Oups... module name was in the wiki : it is ath_pci. Unfortunately it doesn't change anything to add it in rc.conf sad.

Offline

#9 2007-05-21 15:22:09

p_schott
Member
Registered: 2006-11-23
Posts: 54

Re: [SOLVED] Wireless network at startup

reader wrote:

BTW if you IFOPTS="dchp" in /etc/network-profiles/ath0: write IFOPTS=dhcp

Oups again... I didn't notice the "dhcp" instead of "dchp". Now it works fine, ath0 in nterface, force module and extra daemon were not necessary in my case. Thank you very much, reader big_smile.

Offline

Board footer

Powered by FluxBB