You are not logged in.

#26 2011-12-21 11:40:06

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: (SOLVED) Adding wlan0

No. You enter it as "The Network". Quotes included. And if it's WPA2, you won't be able to connect with iwconfig, you need to use wpa_supplicant.

However, if you get no scan results, there's a problem somewhere. The thing is, ipw2200 actually does not use the rfkill interface. So your radio could still be off. If your laptop has a hardware switch for wifi, flick that switch, wait like five seconds, scan again.

Edit: Ok, I just figured out ipw2200 actually does use the rfkill interface. I made a new kernel with it included, and the hardware switch does change the output of rfkill list accordingly. Still if you don't get scan results, there's a problem somewhere.

Last edited by Gusar (2011-12-21 19:20:28)

Offline

#27 2011-12-21 15:28:33

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: (SOLVED) Adding wlan0

mcduling wrote:

I presume when entering the name of my ESSID, if it has more than one word in its name, like The Network, I enter it thus: The_Network.

Why would you presume that? Why not find the right solution, instead of presuming the wrong one?

You said you had already read this page - as you can see, all the examples there enclose the name of the essid in double quotes, as advised above by Gusar.

Offline

#28 2011-12-21 22:07:11

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

I got my info from this:

Classic method: /etc/wpa_supplicant.conf
The specified SSID and passphrase for your WPA encrypted wireless network must be encoded into a hexadecimal string. Achieving this is quite simple, by utilizing the wpa_passphrase utility, which is supplied as part of the wpa_supplicant package. Use the syntax wpa_passphrase [ssid] "[passphrase]"
An example exercise:
# wpa_passphrase mywireless_ssid "secretpassphrase"

When I type in my ESSID (which has three separate words), I get the response that the passphrase must be 8..63 characters. So I presumed I need to link the words up with a _. But I must be wrong, or the above instruction is misleading.

Offline

#29 2011-12-21 22:36:41

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

I am working my way through the wpa supplicant instruction manual. So far so good but I have hit a snag. When I enter sudo ip adds show wlan0, it tells me I have no carrier. I have made sure the laptops wi fi switch is on. When I do a iwlist wlan0 scan, it does bring up all the local networks, including mine. Any suggestions?

Last edited by mcduling (2011-12-22 00:32:27)

Offline

#30 2011-12-22 10:18:04

bkadoctaj
Member
Registered: 2010-05-02
Posts: 52

Re: (SOLVED) Adding wlan0

Hi mcduling,

I'm pretty sure that if you can now see your network, all you need to do are the following steps, all listed in the Wiki:

1.

$ sudo ip link set wlan0 up

2.

$ sudo iwlist wlan0 scan

3.

$ sudo mv /etc/wpa_supplicant.conf /etc/wpa_supplicant.conf.original

4.

$ sudo wpa_passphrase "The Network" "put_your_passphrase_inside_these_quotes" > /etc/wpa_supplicant.conf

5.

$ sudo chmod 0600 /etc/wpa_supplicant.conf

6.

$ sudo wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf

7. Now check whether your wlan0 interface is connected to ESSID "The Network":

$ sudo iwconfig wlan0

Your result should be like this:

wlan0     IEEE 802.11bgn  ESSID:"The Network" 
          Mode:Managed  Frequency:2.447 GHz  Access Point: 20:8E:34:D5:45:7A   
          Bit Rate=25 Mb/s   Tx-Power=14 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          Link Quality=70/70  Signal level=-64 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:6  Invalid misc:21   Missed beacon:0

8. Final step - set up DHCP - get IP address - you must get an IP address or else you will not be connected fully!

$ sudo dhcpcd wlan0

You can

$ ping -c 3 www.google.com

to see if it resolves!  big_smile

Offline

#31 2011-12-22 23:11:43

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

Thanks for this. I have done it and found: step 4 I had to su to get this to accept. Sudo didn't work, but only for this one. The ping produced: host www.google.com unknown. But it looks like all else worked fine. Must be  some little step somewhere not quite right now. I will hunt around a little more. I tried the web browser and got the message that Firefox couldn't find the server. I think I am getting very close now to getting this pesky thing working.

Last edited by mcduling (2011-12-22 23:22:54)

Offline

#32 2011-12-22 23:28:21

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: (SOLVED) Adding wlan0

Just to be clear, since there's no mention of it in this thread: You did install the firmware, right?

Offline

#33 2011-12-22 23:45:46

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

I looked in /etc/rc.conf under network and saw that only eth0 was there so I added wlan0 using the IP address but copied the others (netmask, broadcast and gateway as with eth0. Is that correct?

Offline

#34 2011-12-22 23:55:13

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: (SOLVED) Adding wlan0

mcduling wrote:

Is that correct?

No, rc.conf is just for a wired connection.

You'll need to give us more info. bkadoctaj gave all the steps to make a manual connection. Do you get a connection (point 6 and 7)? And after that, does dhcpcd give you an ip? Pay attention to what's happening. Because right now you're just doing random stuff without having the slightest idea what exactly it is you're actually doing. This is not productive.

Offline

#35 2011-12-23 01:59:06

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

Step 5 I get cannot access '/etc/wpa_supplicant.conf. No such file or directory.

Offline

#36 2011-12-23 02:13:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: (SOLVED) Adding wlan0

mcduling, the community is providing you an inordinate amount of assistance, you might reciprocate by investing a proportionate amount of time and effort in following up on the suggestions provided and actively trying to solve this issue...

Arch Wiki wrote:

If you are configuring your wireless functionality after, and not during, Arch Linux installation, simply ensure the required packages are installed with pacman, (driver, firmware if needed, wireless_tools, wpa_supplicant, etc.) and follow the guidelines below.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#37 2011-12-23 02:51:12

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

If only you knew how much time I am investing in this! But it isn't easy. And I am trying to learn as I go. Things work one minute then not the next. I have spa_supplicant installed. I will now reinstall and start all over again.

Offline

#38 2011-12-23 04:11:31

bkadoctaj
Member
Registered: 2010-05-02
Posts: 52

Re: (SOLVED) Adding wlan0

mcduling wrote:

If only you knew how much time I am investing in this! But it isn't easy. And I am trying to learn as I go. Things work one minute then not the next. I have spa_supplicant installed. I will now reinstall and start all over again.

wpa_supplicant is a part of the wireless_tools package, I believe.  Make sure to download that via ethernet first with sudo pacman -S wireless_tools

Offline

#39 2011-12-23 04:26:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: (SOLVED) Adding wlan0

┌─[Archer][~]
└─╼ pkgfile wpa_supplicant
core/wpa_supplicant

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB