You are not logged in.
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
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
Ahhh ... that would be a problem now, wouldn't it?
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
Use netcfg2: http://bbs.archlinux.org/viewtopic.php?id=43863
Last edited by iphitus (2008-02-19 08:18:26)
Offline
Use netcfg2: http://bbs.archlinux.org/viewtopic.php?id=43863
1+ netcfg2 works great for me.
Offline
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
Maybe set the TIMEOUT variable to a high value and see if that fixes your problem?
Offline
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
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
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
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
Last edited by synthead (2008-03-02 02:39:43)
Offline
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
Yeah, it's been the best network manager for me as well so far.
Offline
good to hear.
for future reference, TIMEOUT is wireless association, DHCP_TIMEOUT is the dhcp timeout. Each are separate timeouts.
Offline
Ahh, good to know, thanks! Probably would have helped with the WEP setup I was running
Offline