You are not logged in.

#1 2008-07-15 12:53:33

aka_hans
Member
Registered: 2008-03-13
Posts: 17

network doesn't connect at boot

I have three wireless profiles: one for my wireless at home (called 'mike'), one for the university ('tue') and one for my parents' house wireless ('thuis'). They all connect fine when using the netcfg2 "profile" command.

In my rc.conf I have:

NETWORKS=(auto-wireless ath0)

Now both 'mike' and 'tue' are connected at boot, but 'thuis' isn't.

I tried archassistant today, when I use it to connect 'thuis' I get: 'error issuing netcfg command.' Connecting with netcfg2 gives no errors.
Using the following also works fine:

wpa_supplicant -c/etc/wpa_supplicant.conf -Dmadwifi -iath0 -Bw
dhcpcd ath0 &

Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg
Profile 'thuis':

CONNECTION="wireless"
DESCRIPTION="SpeedTouchFA41A8"
HOSTNAME=s061368
INTERFACE=ath0
SCAN="yes"
SECURITY="wpa-config"
ESSID="SpeedTouchFA41A8"
WPA_OPTS="-Dmadwifi"
WPA_CONF=/etc/wpa_supplicant.conf
IP="dhcp"
TIMEOUT=10

I have no idea what is wrong. Anyone?

Offline

#2 2008-07-15 14:10:07

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: network doesn't connect at boot

what's the result after ifconfig?

R

edit: Oh! I just noticed that you state that the other two are working.

Last edited by ralvez (2008-07-15 14:21:32)

Offline

#3 2008-07-20 10:00:43

grandmasterb
Member
From: Poland
Registered: 2008-03-12
Posts: 26

Re: network doesn't connect at boot

hi. i have also have this problem i have one profile but it doesn't connect at bootup, i have "net-profiles" in /etc/rc.conf.
to connect to my wirless i have to connect then disconnect and then connect again to get it work. my essid is hidden maybe thats why?

my profile config:

CONNECTION="wireless"
DESCRIPTION="connection using static ip"
INTERFACE=ath0
SCAN="yes"
ESSID="wifihome"
IP="static"
IFOPTS="10.22.0.30 netmask 255.255.255.0 broadcast 10.22.0.255"
GATEWAY="10.22.0.10"

i have atheros wifi card

Last edited by grandmasterb (2008-07-20 10:13:30)

Offline

#4 2008-07-20 13:57:34

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: network doesn't connect at boot

How have you configured your /etc/rc.conf
In mine I have:
INETRFACES = (lo)    <-- notice I have nothing else here,no wlan0 or whatever else

then:

# With netcfg2 network profile is found in /etc/netowrk.d
    NETWORKS=(renegade.default wlan0 renegade.eth0 renegade.humber)  <-- those are the profiles

finally this is one of my profiles:

CONNECTION="wireless"
INTERFACE="wlan0"
HOSTNAME=renegade

# Use DHCP
#IP="dhcp"
#DHCP_TIMEOUT=20

# Use Static IP

IP="static"
IFOPTS="192.168.1.22 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY="192.168.1.1"

# Standard wireless settings
ESSID="ITTwo-wifi"
SECURITY="wpa"
KEY="bbR:)3daiek3i3"
IWOPTS="mode managed essid $ESSID key restricted $KEY"

#Scan network before connecting
SCAN="YES"
TIMEOUT="20"

Notice that to use dhcp we only delete the references to the static ip and uncomment  #Use DHCP and the two lines that follow.

Hope this helps.

R.

Last edited by ralvez (2008-07-20 13:58:14)

Offline

#5 2008-08-22 19:43:43

grandmasterb
Member
From: Poland
Registered: 2008-03-12
Posts: 26

Re: network doesn't connect at boot

hi. just won't to tell what solved the problem. i setup SCAN="no" and it connects at the boot time:)
thanks for help anyway:)

Offline

Board footer

Powered by FluxBB