Networking Forums

Networking Forums > Computer Networking > Linux Networking > Is there any lvie human being who was able to set up WPA

Reply
Thread Tools Display Modes

Is there any lvie human being who was able to set up WPA

 
 
Ignoramus2932
Guest
Posts: n/a

 
      09-21-2007, 03:57 AM
If so, how did you do it. No matter what I do, this shit does not work
and gives incomprehensible details like

ioctl[SIOCGIFADDR]: Cannot assign requested address

I spent 2 days and read a shitload of howtos. None help.

i
 
Reply With Quote
 
 
 
 
Larry Finger
Guest
Posts: n/a

 
      09-21-2007, 04:30 AM
Ignoramus2932 wrote:
> If so, how did you do it. No matter what I do, this shit does not work
> and gives incomprehensible details like
>
> ioctl[SIOCGIFADDR]: Cannot assign requested address
>
> I spent 2 days and read a shitload of howtos. None help.
>
> i


Could you please give more information? Are you using ifconfig? Do you have wpa_supplicant installed?

If the answers to the above questions are all "yes", then you need to prepare two files. The first
is /etc/sysconfig/network/ifcfg-XXXXX, where XXXXX is the name of your wireless interface such as
wlan0 or eth1, etc. The folder for your system may be different. The contents of this file should be
as follows:

BOOTPROTO='dhcp'
STARTMODE='ifplugd'
USERCONTROL='yes'
WIRELESS_AUTH_MODE='psk'
WIRELESS_BITRATE='auto'
WIRELESS_DEFAULT_KEY='0'
WIRELESS_ESSID='<your AP's essid>'
WIRELESS_KEY_LENGTH='128'
WIRELESS_MODE='Managed'
WIRELESS_POWER='yes'
WIRELESS_WPA_PSK='<your psk secret>'

The second file you need is /etc/wpa_supplicant.conf and it should contain the following:

ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=1
ssid="<your AP's essid>"
key_mgmt=WPA-PSK
psk="<your PSK secret>"
}

Larry



 
Reply With Quote
 
Ignoramus2932
Guest
Posts: n/a

 
      09-21-2007, 05:09 AM
On Fri, 21 Sep 2007 04:30:01 GMT, Larry Finger <(E-Mail Removed)> wrote:
> Ignoramus2932 wrote:
>> If so, how did you do it. No matter what I do, this shit does not work
>> and gives incomprehensible details like
>>
>> ioctl[SIOCGIFADDR]: Cannot assign requested address
>>
>> I spent 2 days and read a shitload of howtos. None help.
>>
>> i

>
> Could you please give more information? Are you using ifconfig? Do you have wpa_supplicant installed?


I can give you any information you might request.

I am using ifconfig and wpa_supplicant.

>
> If the answers to the above questions are all "yes", then you need to prepare two files. The first
> is /etc/sysconfig/network/ifcfg-XXXXX, where XXXXX is the name of your wireless interface such as
> wlan0 or eth1, etc. The folder for your system may be different. The contents of this file should be
> as follows:
>
> BOOTPROTO='dhcp'
> STARTMODE='ifplugd'
> USERCONTROL='yes'
> WIRELESS_AUTH_MODE='psk'
> WIRELESS_BITRATE='auto'
> WIRELESS_DEFAULT_KEY='0'
> WIRELESS_ESSID='<your AP's essid>'
> WIRELESS_KEY_LENGTH='128'
> WIRELESS_MODE='Managed'
> WIRELESS_POWER='yes'
> WIRELESS_WPA_PSK='<your psk secret>'
>
> The second file you need is /etc/wpa_supplicant.conf and it should contain the following:
>
> ctrl_interface=/var/run/wpa_supplicant
> network={
> scan_ssid=1
> ssid="<your AP's essid>"
> key_mgmt=WPA-PSK
> psk="<your PSK secret>"
> }
>


Here's my file /etc/sysconfig/networking/devices/ifcfg-ath0

DEVICE=ath0
ONBOOT=no
BOOTPROTO=dhcp
HWADDR=00:19:7d:84:df:06
NETMASK=
DHCP_HOSTNAME=
IPADDR=
DOMAIN=
TYPE=Wireless
ESSID=susliki
CHANNEL=1
MODE=Master
RATE=Auto
USERCTL=no
IPV6INIT=no
PEERDNS=yes

WIRELESS_AUTH_MODE='psk'
WIRELESS_BITRATE='auto'
WIRELESS_DEFAULT_KEY='0'
WIRELESS_ESSID='susliki'
WIRELESS_KEY_LENGTH='128'
WIRELESS_MODE='Managed'
WIRELESS_POWER='yes'
WIRELESS_WPA_PSK='mypasswd'

Here's my /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

#network={
# ssid="any"
# key_mgmt=NONE
#}

# run wpa_passphrase susliki 2mp84e2z, and get:

network={
ssid="susliki"
scan_ssid=1
#proto=WPA RSN
key_mgmt=WPA-PSK
#pairwise=TKIP
#group=TKIP
#psk="2mp84e2z"
psk=832d68c995fc26db1eef2e3bebebc1c39409bc8e673f2e 69ebfd8a99bdce8be0
}


Now what do I run?

i
 
Reply With Quote
 
Ignoramus2932
Guest
Posts: n/a

 
      09-21-2007, 05:16 AM
Not to distract from the issue at hand, but I have a question. The way
my wife set up her Windows XP laptop to use my WEP access point was as
follows:

0) she scanned the network
1) She picked the network (ESSID) from the scanned networks list
2) She said that it is using WEP and DHCP
3) She typed in the WEP password.

It (gasp) worked.

I do not really understand what is there to the issue that could not
be addressed by proper scripts that detect networks, figure out the
drivers, tell this goddamn supplicant to do what is necessary,
properly report status and errors, and then run dhclient.

Why do I have to go through this?

A bunch of "guis" that I tried either crash outright, or do not work
and give me no clue as to what could be wrong.

My biggest problem is that all those programs basically do not have
proper documentation and do not properly report what is going on.

I used to use WEP, tried switching to WPA before, it did not work, now
I have Fedora 7, WEP is beyond obsolete, so I am trying again.

i
 
Reply With Quote
 
Ignoramus2932
Guest
Posts: n/a

 
      09-21-2007, 05:16 AM
On Fri, 21 Sep 2007 00:16:20 -0500, Ignoramus2932 <(E-Mail Removed)> wrote:
> Not to distract from the issue at hand, but I have a question. The way
> my wife set up her Windows XP laptop to use my WEP access point was as
> follows:
>
> 0) she scanned the network
> 1) She picked the network (ESSID) from the scanned networks list
> 2) She said that it is using WEP and DHCP
> 3) She typed in the WEP password.


replace WEP with WPA.

i

> It (gasp) worked.
>
> I do not really understand what is there to the issue that could not
> be addressed by proper scripts that detect networks, figure out the
> drivers, tell this goddamn supplicant to do what is necessary,
> properly report status and errors, and then run dhclient.
>
> Why do I have to go through this?
>
> A bunch of "guis" that I tried either crash outright, or do not work
> and give me no clue as to what could be wrong.
>
> My biggest problem is that all those programs basically do not have
> proper documentation and do not properly report what is going on.
>
> I used to use WEP, tried switching to WPA before, it did not work, now
> I have Fedora 7, WEP is beyond obsolete, so I am trying again.
>
> i

 
Reply With Quote
 
Guillermo Antonio Amaral Bastidas
Guest
Posts: n/a

 
      09-21-2007, 05:37 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ignoramus2932 wrote:

> I used to use WEP, tried switching to WPA before, it did not work, now
> I have Fedora 7, WEP is beyond obsolete, so I am trying again.


Try looking up wpa_supplicant, it's quite easy to setup using it, I have
no idea how to do it in Fedora ( since I use Gentoo ).

Cheers,
gamaral

- --
Guillermo Antonio Amaral Bastidas (gamaral)
# Free & Open-source Software Advocate
# KDE Developer: gamaral
@ http://blog.guillermoamaral.com/
$ irc: gamaral@freenode pgp: 0x5D297B74

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFG81iIxxxW3F0pe3QRAtliAJ9xzgAcDRZdrex4dOYQpo oooY3rnwCdEbI2
iiYkZ0wMb0MH+RuJDEIQZjA=
=f+s5
-----END PGP SIGNATURE-----
 
Reply With Quote
 
Joerg
Guest
Posts: n/a

 
      09-21-2007, 07:44 AM
Ignoramus2932 wrote:

> Here's my file /etc/sysconfig/networking/devices/ifcfg-ath0
>
> DEVICE=ath0
> ONBOOT=no
> BOOTPROTO=dhcp
> HWADDR=00:19:7d:84:df:06
> NETMASK=
> DHCP_HOSTNAME=
> IPADDR=
> DOMAIN=
> TYPE=Wireless
> ESSID=susliki
> CHANNEL=1
> MODE=Master
> RATE=Auto
> USERCTL=no
> IPV6INIT=no
> PEERDNS=yes
>
> WIRELESS_AUTH_MODE='psk'
> WIRELESS_BITRATE='auto'
> WIRELESS_DEFAULT_KEY='0'
> WIRELESS_ESSID='susliki'
> WIRELESS_KEY_LENGTH='128'
> WIRELESS_MODE='Managed'
> WIRELESS_POWER='yes'
> WIRELESS_WPA_PSK='mypasswd'

First thng that comes to mind ^^^:
That should match your entry in wpa_supplicant.conf.

>
> Here's my /etc/wpa_supplicant/wpa_supplicant.conf
>
> ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=wheel
>
> #network={
> # ssid="any"
> # key_mgmt=NONE
> #}
>
> # run wpa_passphrase susliki 2mp84e2z, Â*and get:
>
> network={
> ssid="susliki"
> scan_ssid=1
> #proto=WPA RSN
> key_mgmt=WPA-PSK
> #pairwise=TKIP
> #group=TKIP
> #psk="2mp84e2z"
>

psk=832d68c995fc26db1eef2e3bebebc1c39409bc8e673f2e 69ebfd8a99bdce8be0
> }
>
>
> Now what do I run?


Well, you have to run wpa_supplicant from somewhere and then bring
your interface up. I do it actually w/o using the network scripts
from my distro (slack). I do it from rc.local:

#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
/usr/bin/wlanconfig ath0 create wlandev wifi0 wlanmode sta
/sbin/iwpriv ath0 mode 3
/sbin/iwpriv ath0 turbo 1
/sbin/iwpriv ath0 keymgtalgs 2
/sbin/iwconfig ath0 essid Bellson nick pocaro channel 6 rate
54Mbps
/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant.conf -i ath0 -d -D
madwifi -B

All you have to do now is to bring the inteface up or down:

Up:

#!/bin/sh
/sbin/ifconfig ath0 mtu 1492 192.168.1.110 up
/sbin/route add default gw 192.168.1.1

Down:

#!/bin/sh
/sbin/ifconfig ath0 down

I don't use dhcp, but you can easily modify the up script for
dhcp.

HTH
Joerg
--
For email use g m x d o t n e t
 
Reply With Quote
 
Ignoramus25943
Guest
Posts: n/a

 
      09-21-2007, 12:21 PM
On Thu, 20 Sep 2007 22:37:08 -0700, Guillermo Antonio Amaral Bastidas <(E-Mail Removed)> wrote:
>
> Ignoramus2932 wrote:
>
>> I used to use WEP, tried switching to WPA before, it did not work, now
>> I have Fedora 7, WEP is beyond obsolete, so I am trying again.

>
> Try looking up wpa_supplicant, it's quite easy to setup using it, I have
> no idea how to do it in Fedora ( since I use Gentoo ).


I did "look it up", and spent two days trying to make it work. It
would not work, it would change state from
DISCONNECTED-ASSOCIATING-ASSOCIATED-DISCONNECTED ands so on.

i
 
Reply With Quote
 
Ignoramus25943
Guest
Posts: n/a

 
      09-21-2007, 12:22 PM
On Fri, 21 Sep 2007 09:44:56 +0200, Joerg <jstadermann@see_signature.net> wrote:
> Ignoramus2932 wrote:
>
>> Here's my file /etc/sysconfig/networking/devices/ifcfg-ath0
>>
>> DEVICE=ath0
>> ONBOOT=no
>> BOOTPROTO=dhcp
>> HWADDR=00:19:7d:84:df:06
>> NETMASK=
>> DHCP_HOSTNAME=
>> IPADDR=
>> DOMAIN=
>> TYPE=Wireless
>> ESSID=susliki
>> CHANNEL=1
>> MODE=Master
>> RATE=Auto
>> USERCTL=no
>> IPV6INIT=no
>> PEERDNS=yes
>>
>> WIRELESS_AUTH_MODE='psk'
>> WIRELESS_BITRATE='auto'
>> WIRELESS_DEFAULT_KEY='0'
>> WIRELESS_ESSID='susliki'
>> WIRELESS_KEY_LENGTH='128'
>> WIRELESS_MODE='Managed'
>> WIRELESS_POWER='yes'
>> WIRELESS_WPA_PSK='mypasswd'

> First thng that comes to mind ^^^:
> That should match your entry in wpa_supplicant.conf.
>
>>
>> Here's my /etc/wpa_supplicant/wpa_supplicant.conf
>>
>> ctrl_interface=/var/run/wpa_supplicant
>> ctrl_interface_group=wheel
>>
>> #network={
>> # ssid="any"
>> # key_mgmt=NONE
>> #}
>>
>> # run wpa_passphrase susliki 2mp84e2z, *and get:
>>
>> network={
>> ssid="susliki"
>> scan_ssid=1
>> #proto=WPA RSN
>> key_mgmt=WPA-PSK
>> #pairwise=TKIP
>> #group=TKIP
>> #psk="2mp84e2z"
>>

> psk=832d68c995fc26db1eef2e3bebebc1c39409bc8e673f2e 69ebfd8a99bdce8be0
>> }
>>
>>
>> Now what do I run?

>
> Well, you have to run wpa_supplicant from somewhere and then bring
> your interface up. I do it actually w/o using the network scripts
> from my distro (slack). I do it from rc.local:
>
> #!/bin/sh
> #
> # /etc/rc.d/rc.local: Local system initialization script.
> #
> # Put any local setup commands in here:
> /usr/bin/wlanconfig ath0 create wlandev wifi0 wlanmode sta
> /sbin/iwpriv ath0 mode 3
> /sbin/iwpriv ath0 turbo 1
> /sbin/iwpriv ath0 keymgtalgs 2
> /sbin/iwconfig ath0 essid Bellson nick pocaro channel 6 rate
> 54Mbps
> /usr/sbin/wpa_supplicant -c /etc/wpa_supplicant.conf -i ath0 -d -D
> madwifi -B
>
> All you have to do now is to bring the inteface up or down:
>
> Up:
>
> #!/bin/sh
> /sbin/ifconfig ath0 mtu 1492 192.168.1.110 up
> /sbin/route add default gw 192.168.1.1
>
> Down:
>
> #!/bin/sh
> /sbin/ifconfig ath0 down
>
> I don't use dhcp, but you can easily modify the up script for
> dhcp.
>
> HTH
> Joerg


Joerg, this is a good start, and I like the script approach since I
use it elsewhere. I will try it tonight.

i
 
Reply With Quote
 
Scott Hemphill
Guest
Posts: n/a

 
      09-21-2007, 01:52 PM
Ignoramus2932 <(E-Mail Removed)> writes:

> Not to distract from the issue at hand, but I have a question. The way
> my wife set up her Windows XP laptop to use my WEP access point was as
> follows:
>
> 0) she scanned the network
> 1) She picked the network (ESSID) from the scanned networks list
> 2) She said that it is using WEP and DHCP
> 3) She typed in the WEP password.
>
> It (gasp) worked.
>
> I do not really understand what is there to the issue that could not
> be addressed by proper scripts that detect networks, figure out the
> drivers, tell this goddamn supplicant to do what is necessary,
> properly report status and errors, and then run dhclient.
>
> Why do I have to go through this?
>
> A bunch of "guis" that I tried either crash outright, or do not work
> and give me no clue as to what could be wrong.
>
> My biggest problem is that all those programs basically do not have
> proper documentation and do not properly report what is going on.
>
> I used to use WEP, tried switching to WPA before, it did not work, now
> I have Fedora 7, WEP is beyond obsolete, so I am trying again.


If you have Fedora 7, just use NetworkManager along with
NetworkManagerDispatcher. Don't edit scripts--just choose the network
and enter the password.

Scott
--
Scott Hemphill (E-Mail Removed)
"This isn't flying. This is falling, with style." -- Buzz Lightyear
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network security through human engineering ... Bert Hyman Wireless Internet 2 01-03-2006 08:52 AM
Human contact with OneTel required Derrick Fawsitt Broadband 20 01-28-2005 07:21 PM



1 2 3 4 5 6 7 8 9 10 11