LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-24-2009, 04:37 PM   #1
pejobe
LQ Newbie
 
Registered: Nov 2009
Posts: 21

Rep: Reputation: 3
iwlist finds networks but iwconfig can not connect-slackware 13 on Dell xps 1330


Hi,

Two days ago I switched from Ubuntu Karmic to Slackware 13 so I'm a newbie on how to tweak the wireless settings.

I have read http://alien.slackbook.org/dokuwiki/...ckware:network
to get help but I can't solve this.

I want to connect to a network with no encryption key on.

-iwlist scan finds several networks e.g;

Cell 04 - Address: 00:16:B6:B8:14:B9
ESSID:"Draco"
Mode:Master
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=30/100 Signal level:-91 dBm Noise level=-127 dBm
Encryption keyff
IE: Unknown: 0005447261636F
IE: Unknown: 010882848B962430486C
IE: Unknown: 03010B
IE: Unknown: 2A0104
IE: Unknown: 2F0104
IE: Unknown: 32040C121860
IE: Unknown: DD09001018020015000000
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extra:tsf=000001eca06bb511
Extra: Last beacon: 534ms ago
Now
# iwconfig wlan0 essid Draco
#

-nothing... Firefox is dead

-output from iwconfig:

wlan0 IEEE 802.11abgn ESSID:"Draco"
Mode:Managed Frequency:2.462 GHz Access Point: Not-Associated
Tx-Power=15 dBm
Retry min limit:7 RTS thrff Fragment thr=2352 B
Encryption keyff
Power Managementff
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


-Shouldn't Power Managementff , be 'on' instead?


#lspci gives;
0c:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)


Any suggestions on how I should proceed?
Thanks.
 
Old 11-24-2009, 05:10 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
after connecting to the AP, you should ask for IP by running
Code:
/sbin/dhcpcd -d -t 20 wlan0
 
Old 11-25-2009, 09:51 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

If you followed the wiki then how did you setup the device? Static or dhcp?

Please post your '/etc/rc.d/rc.inet1.conf'.
 
Old 11-25-2009, 03:10 PM   #4
pejobe
LQ Newbie
 
Registered: Nov 2009
Posts: 21

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by willysr View Post
after connecting to the AP, you should ask for IP by running
Code:
/sbin/dhcpcd -d -t 20 wlan0
-Running that:

# /sbin/dhcpcd -d -t 20 wlan0
info, wlan0: dhcpcd 3.2.3 starting
info, wlan0: hardware address = 00:1f:3b:41:c6:ed
info, wlan0: DUID = 00:01:00:01:12:9d:2c:59:00:1d:09:3f:ec:43
info, wlan0: broadcasting for a lease
debug, wlan0: sending DHCP_DISCOVER with xid 0x1f188c66
debug, wlan0: waiting for 20 seconds
debug, wlan0: sending DHCP_DISCOVER with xid 0x1f188c66
debug, wlan0: sending DHCP_DISCOVER with xid 0x1f188c66
debug, wlan0: sending DHCP_DISCOVER with xid 0x1f188c66
debug, wlan0: sending DHCP_DISCOVER with xid 0x1f188c66
debug, wlan0: sending DHCP_DISCOVER with xid 0x1f188c66
debug, wlan0: sending DHCP_DISCOVER with xid 0x1f188c66
err, wlan0: timed out
info, wlan0: trying to use old lease in `/etc/dhcpc/dhcpcd-wlan0.info'
debug, wlan0: sending ARP probe #1
debug, wlan0: sending ARP probe #2
debug, wlan0: sending ARP probe #3
debug, wlan0: sending ARP claim #1
debug, wlan0: sending ARP claim #2
warn, wlan0: using IPV4LL address 169.254.89.237
info, wlan0: adding IP address 169.254.89.237/16
debug, wlan0: no dns information to write
debug, wlan0: forking to background
info, wlan0: exiting

-now iwconfig gives:

wlan0 IEEE 802.11abgn ESSID:"Guglielmo"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=15 dBm
Retry min limit:7 RTS thrff Fragment thr=2352 B
Encryption keyff
Power Managementff
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
 
Old 11-25-2009, 03:48 PM   #5
pejobe
LQ Newbie
 
Registered: Nov 2009
Posts: 21

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by onebuck View Post
Hi,

If you followed the wiki then how did you setup the device? Static or dhcp?

Please post your '/etc/rc.d/rc.inet1.conf'.
Hi,
I put; USE_DHCP[4]="yes"
in '/etc/rc.d/rc.inet1.conf'

I have been editing the file rc.inet1.conf to connect to a static encrypted access point and to a access point with no encryption key on. I quess I have messed it up...

Thanks for helping me.


less /etc/rc.d/rc.inet1.conf ;
...

# =============================================================================

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY=""

# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="yes"

## Example config information for wlan0. Uncomment the lines you need and fill
## in your info. (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=BARRIER05
#WLAN_ESSID[4]=Guglielmo
#WLAN_MODE[4]=Managed
##WLAN_RATE[4]="54M auto"
WLAN_RATE[4]="54M auto"
##WLAN_CHANNEL[4]="auto"
WLAN_CHANNEL[4]="auto"
##WLAN_KEY[4]="D5AD1F04ACF048EC2D0B1C80C7"
##WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
##WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="ndiswrapper"
##WLAN_WPADRIVER[4]="wext"
WLAN_WPAWAIT[4]=30

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0" # Use a different interface name nstead of
# the default 'eth4'
#HWADDR[4]="00:01:23:45:67:89" # Overrule the card's hardware MAC address
#MTU[4]="" # The default MTU is 1500, but you might need
# 1360 when you use NAT'ed IPSec traffic.
#DHCP_KEEPRESOLV[4]="yes" # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes" # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes" # If you don't want the DHCP server to change
# your default gateway
#DHCP_IPADDR[4]="" # Request a specific IP address from the DHCP
# server
#WLAN_ESSID[4]=DARKSTAR # Here, you can override _any_ parameter
# defined in rc.wireless.conf, by prepending
# 'WLAN_' to the parameter's name. Useful for
# those with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
# Some drivers require a private ioctl to be
# set through the iwpriv command. If more than
# one is required, you can place them in the
# IWPRIV parameter (separated with the pipe (|)
# character, see the example).
 
Old 11-25-2009, 05:27 PM   #6
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
There are a couple of red flags in your first post:

Quality=30/100 Signal level:-91 dBm Noise level=-127 dBm
That's poor. One of my neighbors four houses down shows up better than that. How far are you from your wireless router?

Mode:Managed Frequency:2.462 GHz Access Point: Not-Associated
You won't get anywhere until you're associated. Has anything changed in the router since you switched from Ubuntu? You're not using MAC address filtering or anything?

Later, you mention:
-now iwconfig gives:

wlan0 IEEE 802.11abgn ESSID:"Guglielmo"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated

Different wireless network. Which one is yours?

Once you successfully associate with the correct SSID, try bringing up the interface before starting the dhcp daemon:

# ifconfig wlan0 up
# dhcpcd wlan0

Then worry about inet1.conf.
 
Old 11-26-2009, 01:21 PM   #7
pejobe
LQ Newbie
 
Registered: Nov 2009
Posts: 21

Original Poster
Rep: Reputation: 3
I write this with my wireless connected to an open Access Point.

Quote:
Originally Posted by 2Gnu View Post
How far are you from your wireless router?
I don't know. Today it works with equally low Link Quality on Slackware.
Quote:
Originally Posted by 2Gnu View Post
Different wireless network. Which one is yours?
None. The purpose was to find an open access point and connect to that one.
Sorry for pasting in two different ones; which made my message
unclear.
Quote:
Originally Posted by 2Gnu View Post
# ifconfig wlan0 up
# dhcpcd wlan0
This is how I do to get connected to an open AP:
#iwlist wlan0 scan
%register essid from the AP with encryption key off
#iwconfig wlan0 essid "essis_with_encrypt_key_off"

#ifconfig % just to see the wlan interface got an IP address

#dhclient wlan0
OR
#dhcpcd wlan0

both seems to work.

Thanks!

Last edited by pejobe; 11-26-2009 at 01:23 PM.
 
Old 11-27-2009, 09:09 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Do you own these 'AP'?

If so then what is the distance and how are you connecting?

You should post your long list or data output within the vbcode tags, # or quote. The # is at the top of the reply window and the quote is the balloon to the left.
 
Old 11-28-2009, 03:26 AM   #9
pejobe
LQ Newbie
 
Registered: Nov 2009
Posts: 21

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by onebuck View Post
Hi,

Do you own these 'AP'?

If so then what is the distance and how are you connecting?

You should post your long list or data output within the vbcode tags, # or quote. The # is at the top of the reply window and the quote is the balloon to the left.
Hi,
No I don't own these AP. Here in Sweden there are several open WiFi routers and public WiFi hotspots. I don't know the distance to the AP I use.
To connect you first need to find the Access Point:
Code:
iwlist [interface] scan
where [interface] is for example wlan0 or ethN, N=0,1.
for more info:
Code:
man iwlist

Use the AP with no encryption key and note the ESSID for that AP, here denoted X.
Configure a wireless network interface:
Code:
iwconfig [interface] essid X
more info at:
Code:
man iwconfig
Request an IP address:
Code:
dhcpcd [interface]
Or use:
Code:
dhclient [interface]
more info at:
Code:
man dhclient
Code:
man dhcpcd
As you can see I found the # but where is the balloon to the left for the quote?

Last edited by pejobe; 11-28-2009 at 03:28 AM.
 
Old 02-19-2010, 11:20 AM   #10
W34p0n-X
LQ Newbie
 
Registered: Feb 2010
Posts: 18

Rep: Reputation: 0
Having same problem with me.

anybody help
 
Old 02-19-2010, 11:21 AM   #11
W34p0n-X
LQ Newbie
 
Registered: Feb 2010
Posts: 18

Rep: Reputation: 0
In my case instead of AP it is an ad-hoc network and uses wep encryption
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
startx is not working when i installed rhel5 in dell xps 1330 laptop popvij Linux - Newbie 4 05-11-2009 07:57 AM
Dell XPS 1330 Wireless Card Not working KinnowGrower Linux - Laptop and Netbook 6 10-12-2008 04:26 PM
Sound via loud speackers on dell xps 1330 PocketSam SUSE / openSUSE 2 04-24-2008 01:48 AM
iwlist eth0 scanning picks wireless networks but imy browser can connect java Linux - Newbie 4 04-08-2008 02:06 AM
Slackware installation on dell xps m140 bijit1709 Slackware 9 06-08-2007 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration