You are not logged in.

#1 2008-02-15 10:16:36

synthead
Member
Registered: 2006-05-09
Posts: 1,337

[solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

When I try to run netcfg jml_extreme with this script (key censored) ...

#
# Network Profile
#

DESCRIPTION="Default Network Profile"
**************************
# Network Settings
INTERFACE=wlan0
HOSTNAME=pwn

# 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="JML EXTREME"
KEY=**************************
#IWOPTS="mode managed essid $ESSID key restricted $KEY"

#WIFI_INTERFACE=wlan0   # use this if you have a special wireless interface
                        # that is linked to the real $INTERFACE

#WIFI_WAIT=2            # seconds to wait for the wireless card to
                        # associate before bringing the interface up
#USEWPA="yes"           # start wpa_supplicant with the profile
#WPAOPTS=""             # use "" for normal operation or specify additional
                        # options (eg, "-D ipw")
                        # see /etc/wpa_supplicant.conf for configuration
#AUTOWPA="yes"          # automatically configure WPA
#PASSKEY=""             # wpa passkey/phrase. for use with AUTOWPA

#ath0="ath0 192.168.###.### netmask 255.255.###.### broadcast 192.168.###.###"
#ath0="ath0 dhcp"
#wlan_ath0="ath0 essid ###### key ######"
#WLAN_INTERFACES=(ath0)
#INTERFACES=(lo ath0)

... I get an error that dhcpcd has timed out and it gives me an IPV4LL address.  However, if I simply go to the command line and enter as root ...

iwconfig wlan0 essid JML\ EXTREME key **************************
dhcpcd wlan0

... it springs to life and my network is active.

What am I missing?

Last edited by synthead (2008-03-06 07:35:36)

Offline

#2 2008-02-17 20:32:06

wizzard
Member
From: PA, US
Registered: 2006-10-17
Posts: 33

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

You need to uncomment the following line:

#IWOPTS="mode managed essid $ESSID key restricted $KEY"

You set ESSID and KEY, but that information is only used to fill in the field IWOPTS, which you currently have commented out.

Offline

#3 2008-02-18 23:09:35

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

Ahhh ... that would be a problem now, wouldn't it? big_smile

But now, with the line uncommented, I get this error:

[max@pwn network-profiles]$ sudo netcfg jml_extreme
:: Shutting down interface: wlan0                                        [DONE] 
:: Starting network profile: jml_extreme                                 [BUSY]
iwconfig: unknown command "EXTREME"
                                                                         [FAIL]

Last edited by synthead (2008-02-18 23:09:52)

Offline

#4 2008-02-19 08:02:00

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

Use netcfg2: http://bbs.archlinux.org/viewtopic.php?id=43863

Last edited by iphitus (2008-02-19 08:18:26)

Offline

#5 2008-02-19 13:34:15

cu3edweb
Member
From: USA
Registered: 2007-10-07
Posts: 291

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

1+ netcfg2 works great for me.

Offline

#6 2008-02-25 19:43:25

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

I am running netcfg2 now which gets around that problem great.  I love the new scripts, they make a lot more sense and work really well.  Except ... it takes a couple times to get an IP.  If I run netfcg2 jml_extreme, it will usually fail to get an IP a couple of times and I have to repeatedly run the command until it gets one.  Is there a cure for this?  Here's my entry in network.d ...

CONNECTION="wireless"
DESCRIPTION="Home"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wep"
ESSID="JML EXTREME"
KEY="**************************"
IP="dhcp"

Offline

#7 2008-02-25 20:14:38

HyperBaton
Member
From: Belgium
Registered: 2008-01-18
Posts: 207

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

Maybe set the TIMEOUT variable to a high value and see if that fixes your problem?

Offline

#8 2008-02-26 09:40:34

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

And how is the connectivity from where you are connecting? Through Conky I see my wlan0 from my desk as '42%' and I get an IP in 1 or 2 seconds.

Zl.

Offline

#9 2008-02-26 20:06:49

stefan1975
Member
From: 53 6e 65 65 6b
Registered: 2007-04-16
Posts: 195

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

synthead wrote:

I am running netcfg2 now which gets around that problem great.  I love the new scripts, they make a lot more sense and work really well.  Except ... it takes a couple times to get an IP.  If I run netfcg2 jml_extreme, it will usually fail to get an IP a couple of times and I have to repeatedly run the command until it gets one.  Is there a cure for this?  Here's my entry in network.d

same here. my ipw3945 always fails to connect at boot time. however giving it one or two extra attempts afterwards always solves this problem. My connection is Excellent, i have no encryption (just MAC filtering).

CONNECTION="wireless"
DESCRIPTION="Stefan Home Wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY=
ESSID="wireless"
KEY=
IP="dhcp"

Maybe set the TIMEOUT variable to a high value and see if that fixes your problem?

so what is a "high" value and where do i put it?

thx,
stefan

Last edited by stefan1975 (2008-02-26 20:08:00)


"root# su - bofh"
OS: F10_x64, Arch, Centos5.3, RHEL4.7, RHEL5.3
Desktop Hardware: Dell Precision M65 laptop, core2duo, 2gb, 80gb 7200rpm
Registered linux user #459910 since 1998

Offline

#10 2008-02-27 08:14:40

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

stefan1975 wrote:

my ipw3945 always fails to connect at boot time.

Same problem with iwl3945?

TIMEOUT="30" will make netcfg2 try for 30 seconds to obtain an IP-address.

Zl.

Offline

#11 2008-03-01 09:38:40

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

How do I reconnect to a network with netcfg2?  I added the timeout, but if I try to connect again to test it, it says I'm already connected.

edit - got it, /etc/rc.d/net-profiles start/stop/restart

It looks as if adding the long timeout solved the problem 100% here!  If anything quirky happens, Ill post again, but I think this is pretty well solved.

PS - What a great forum!

edit - still doing the same thing ... it was just a fluke that it was working tongue

Last edited by synthead (2008-03-02 02:39:43)

Offline

#12 2008-03-06 07:35:20

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

I turned my router over to WPA and it works now.  I don't know why it matters, but I needed to move to WPA anyway.  It was really easy to do too, I was very surprised of the simplicity of netcfg2!

Offline

#13 2008-03-06 10:25:45

HyperBaton
Member
From: Belgium
Registered: 2008-01-18
Posts: 207

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

Yeah, it's been the best network manager for me as well so far.

Offline

#14 2008-03-06 11:52:19

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

good to hear.

for future reference, TIMEOUT is wireless association, DHCP_TIMEOUT is the dhcp timeout. Each are separate timeouts.

Offline

#15 2008-03-08 08:09:00

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: [solved] iwl3945 and netcfg ... problems obtaining an IP via DHCP

Ahh, good to know, thanks!  Probably would have helped with the WEP setup I was running wink

Offline

Board footer

Powered by FluxBB