Page 10 of 16 FirstFirst ... 89101112 ... LastLast
Results 91 to 100 of 155

Thread: HowTo: WPA with wpa_supplicant

  1. #91
    Join Date
    Feb 2007
    Location
    Highlands Ranch, CO
    Beans
    3
    Distro
    Ubuntu 6.10 Edgy

    Re: HowTo: WPA with wpa_supplicant

    Luca... thank you so much!! I made my wireless work (Intel 2915abg work on XPS m170 laptop) doing everything outlined in your how-to. The last few suggestions did the trick for me after a quick reboot. Again thank you!!!! I have looked at a ton of other forum entries and yours did the trick!

    Ciao,
    Alex

  2. #92
    Join Date
    Sep 2006
    Beans
    15

    Re: HowTo: WPA with wpa_supplicant

    hi, i´m using a laptop with a broadcom wireless card, 4318, after trying first with ndiswrapper and was working fine, now i use bcm43xx-fwcutter and works +-, worst than ndiswrapper, but i was unable to activate wpa with ndiswrappper.

    well, on Kubuntu, every time i boot my laptop i have to make 2 things to have wireless working and connected to my wpa protected home lan.

    first: run kwlan, and wait for a message that says: "eth1 is connected"
    second: after that message, run in terminal "sudo dhclient eth1".

    i have to make those steps every boot.

    there is any way to get always eth1 connected?, and get ip from dhcp automatically?

    thx

  3. #93
    Join Date
    Feb 2007
    Beans
    1

    Question Re: HowTo: WPA with wpa_supplicant

    Question:

    How do I set this up on a laptop (HP NC6220) with IPW2200 (Intel 2915ABG), but I have to use a certificate file vs PSK?

  4. #94
    Join Date
    Feb 2007
    Beans
    25

    Re: HowTo: WPA with wpa_supplicant

    I read somewhere that ctrl_interface does not work well with wpa_supplicant and you can probably sidestep the problem by removing the lines at the beginning of the config that start with ctrl_interface.

    Hope that helps.

  5. #95
    Join Date
    Mar 2007
    Beans
    5

    Re: HowTo: WPA with wpa_supplicant

    Sorry, I just recently switched to Ubuntu. I think I can connect to my network, or at least wpa_supplicant tells me I can but I'm still unable to access the internet for some odd reason. Any tips?

  6. #96
    Join Date
    Mar 2007
    Beans
    2

    Re: HowTo: WPA with wpa_supplicant

    Quote Originally Posted by somegayname View Post
    First off, thanks Luca. I used your previous how-to for an install about a year ago, and this one has me close to wireless. My last problem is that for some reason it keeps dropping and picking up the access point
    Code:
    iablt:/home/iab# iwevent
    Waiting for Wireless Events from interfaces...
    23:25:57.780616   eth2     New Access Point/Cell address:Not-Associated
    23:25:57.780856   eth2     New Access Point/Cell address:Not-Associated
    23:26:00.882024   eth2     Set Mode:Managed
    23:26:00.882091   eth2     Set ESSID:"WiFabu"
    23:26:01.086865   eth2     New Access Point/Cell address:00:14:BF:39:40:EE
    23:26:05.052726   eth2     New Access Point/Cell address:Not-Associated
    23:26:05.053576   eth2     New Access Point/Cell address:Not-Associated
    23:26:08.154450   eth2     Set Mode:Managed
    23:26:08.154474   eth2     Set ESSID:"WiFabu"
    23:26:08.333068   eth2     New Access Point/Cell address:00:14:BF:39:40:EE
    23:26:12.296069   eth2     New Access Point/Cell address:Not-Associated
    23:26:12.296097   eth2     New Access Point/Cell address:Not-Associated
    23:26:15.399157   eth2     Set Mode:Managed
    23:26:15.399184   eth2     Set ESSID:"WiFabu"
    23:26:15.588405   eth2     New Access Point/Cell address:00:14:BF:39:40:EE
    23:26:19.546805   eth2     New Access Point/Cell address:Not-Associated
    23:26:19.547655   eth2     New Access Point/Cell address:Not-Associated
    a similar symptom is seen with random hits from iwconfig:
    Code:
    iablt:/home/iab# iwconfig
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    eth1      no wireless extensions.
    
    eth2      unassociated  ESSID:"WiFabu"
              Mode:Managed  Channel=0  Access Point: 00:14:BF:39:40:EE
              Bit Rate=0 kb/s   Tx-Power=20 dBm   Sensitivity=8/0
              Retry limit:7   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:off
              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
    
    sit0      no wireless extensions.
    
    iablt:/home/iab# iwconfig
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    eth1      no wireless extensions.
    
    eth2      IEEE 802.11g  ESSID:"WiFabu"
              Mode:Managed  Frequency:2.437 GHz  Access Point: 00:14:BF:39:40:EE
              Bit Rate=54 Mb/s   Tx-Power=20 dBm   Sensitivity=8/0
              Retry limit:7   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:off
              Link Quality=98/100  Signal level=-28 dBm  Noise level=-80 dBm
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:0   Missed beacon:0
    
    sit0      no wireless extensions.
    You can see the Bit rate, signal level, noise level and the associated channel 0 then have values.

    My wpa_supplicant.conf and interface files are cut and paste from your how-to, excepting for my ssid and psk. The machine has a Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)
    I don't think this *should* make any difference, but I am running debian etch with kernel 2.6.17 Any ideas?
    I have the same problem. Mine is a PCMCIA SMC card, and i'm using ndiswrapper.
    Any idea what is causing the disconnections?

  7. #97
    Join Date
    Sep 2006
    Beans
    3

    Re: HowTo: WPA with wpa_supplicant

    I have exactly the same problem. I'm using IBM R50e laptop, Kubuntu 6.10, ipw2200 with latest drivers (1.2.1) and firmware (3.0).

    I'm connecting to Linksys WRT54GS, firmware 1.5.2.

    I tried manually configuring wpa_supplicant and KNetworkManager. Same problem.

    My Ralink card (desktop) connects just fine to my router using WPA, and my laptop connects without a problem to an open AP.

    It seems the card associates and then tries to associate again, gets an error and disconnects.

  8. #98
    Join Date
    Sep 2006
    Location
    Maryland, USA
    Beans
    260
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HowTo: WPA with wpa_supplicant

    I was having the same problem with an ipw card. Network Manager now comes with 6.1, and I finally fixed the problem by going to /etc/network/interfaces file and commenting out everything except for lo - then ran network manager and it worked like a champ!

  9. #99
    Join Date
    Feb 2007
    Beans
    60

    Re: HowTo: WPA with wpa_supplicant

    This guide gets me up and running for a short time in Edgy, then nothing after any period of inactivity. My network manager applet shows a "wired network RaLink RT2561/RT61 802.11g pc", or did before I implemented the things in the first post of this thread. The card is actually a Linksys PCI card, WMP54g. I drop after a few minutes of inactivity and can't figure out why or how to restore connection without restarting the machine.

    interfaces:
    Code:
    auto wlan0
    iface wlan0 inet dhcp
    wireless-essid thisismyhouse
    gateway 192.168.0.1
    pre-up wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
    post-down killall -q wpa_supplicant
    wpa_supplicant:
    Code:
    ctrl_interface=/var/run/wpa_supplicant
    #ap_scan=2
    
    network={
           ssid="thisismyhouse"
           scan_ssid=1
           proto=WPA RSN
           key_mgmt=WPA-PSK
           pairwise=CCMP TKIP
           group=CCMP TKIP
    psk=404b8fb415XXXXXXXX90504acd10dbfcf
    }
    Code:
    chip@Metallo:~$ iwconfig
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    wmaster0  IEEE 802.11g  Frequency:2.412 GHz  
              RTS thr:off   Fragment thr=2346 B   
              
    wlan0     IEEE 802.11g  ESSID:"thisismyhouse"  
              Mode:Managed  Frequency:2.412 GHz  Access Point: 00:13:46:A3:D1:E4   
              RTS thr:off   Fragment thr=2346 B   
              
    sit0      no wireless extensions.
    
    chip@Metallo:~$ sudo lshw
    Password:
    metallo                   
        description: Desktop Computer
        product: VT8367-8235
        vendor: VIA Technologies, Inc.
        width: 32 bits
        capabilities: smbios-2.2 dmi-2.2
        configuration: boot=normal chassis=desktop
      *-core
           description: Motherboard
           product: VT8367-8235
           physical id: 0
           slot: PS/2 Mouse
         *-firmware
              description: BIOS
              vendor: Phoenix Technologies, LTD
              physical id: 0
              version: 6.00 PG (09/10/2003)
              size: 128KB
              capacity: 192KB
              capabilities: isa pci pnp apm upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb agp ls120boot zipboot
         *-cpu
              description: CPU
              product: AMD Athlon(tm) processor
              vendor: Advanced Micro Devices [AMD]
              physical id: 4
              bus info: cpu@0
              version: 6.4.4
              slot: Socket A
              size: 1333MHz
              capacity: 1500MHz
              width: 32 bits
              clock: 133MHz
              capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 
            *-network:1
                 description: Ethernet interface
                 product: VT6102 [Rhine-II]
                 vendor: VIA Technologies, Inc.
                 physical id: 12
                 bus info: pci@00:12.0
                 logical name: eth0
                 version: 74
                 serial: 00:0d:87:aa:42:96
                 size: 10MB/s
                 capacity: 100MB/s
                 width: 32 bits
                 clock: 33MHz
                 capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegociation
                 configuration: autonegociation=on broadcast=yes driver=via-rhine driverversion=1.2.0-2.6 duplex=half link=no multicast=yes port=MII speed=10MB/s
                 resources: ioport:e000-e0ff iomemory:ee10a000-ee10a0ff irq:11
    chip@Metallo:~$ sudo iwlist wlan0 scan
    wlan0     Scan completed :
              Cell 01 - Address: 00:13:46:A3:D1:E4
                        ESSID:"thisismyhouse"
                        Mode:Master
                        Frequency:2.412 GHz
                        Encryption key:on
                        Extra:wpa_ie=dd160050f201010000XXX
                        Extra:tsf=000000c6053221ca
    
    chip@Metallo:~$ sudo dhclient wlan0
    Internet Systems Consortium DHCP Client V3.0.4
    Copyright 2004-2006 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    
    wmaster0: unknown hardware address type 801
    wmaster0: unknown hardware address type 801
    Listening on LPF/wlan0/00:18:f8:2d:fa:01
    Sending on   LPF/wlan0/00:18:f8:2d:fa:01
    Sending on   Socket/fallback
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
    DHCPOFFER from 192.168.0.1
    DHCPREQUEST on wlan0 to 255.255.255.255 port 67
    DHCPACK from 192.168.0.1
    bound to 192.168.0.101 -- renewal in 301942 seconds.
    Any ideas?

  10. #100
    Join Date
    Apr 2007
    Beans
    6

    Re: HowTo: WPA with wpa_supplicant

    I tried the instructions and no joy at all with wpa_supplicant

    I have a lot of questions about these instructions. I will go step by step

    1. Ran the following in terminal window:
    Code:
    wpa_passphrase 'MYSSID' 'MY_PSK'
    Where 'MYSSID' and 'MY_PSK' correspond with that of my wireless router.

    I got the resultant psk string and copied it

    2. Ran
    Code:
    sudo gedit /etc/wpa_supplicant.conf
    A blank file opened. Is that normal? I followed the instructions adding the following to the .conf file:

    ctrl_interface=/var/run/wpa_supplicant
    #ap_scan=2

    network={
    ssid='MYSSID'
    scan_ssid=1
    proto=WPA RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP TKIP
    group=CCMP TKIP
    psk='MY_PSK_STRING'
    }
    I saved this file.

    3. I ran
    Code:
    sudo gedit /etc/network/interfaces
    Here is where things got kind of confusing. What you see below is what I currently have in that file. I placed what the instructions said under 'auto eth0' originally but that immediately dropped my wired connection when I ran wpa_supplicant in the final step. So I fixed it by placing the info from the instructions under auto eth1 since that is my wireless card when I run iwconfig. I am also using ndiswrapper to install my Windows driver so I changed that too.:

    auto lo
    iface lo inet loopback

    auto eth0
    iface eth0 inet dhcp

    auto eth1
    iface eth1 inet dhcp
    wireless-essid "XBOXWAP"
    pre-up wpa_supplicant -Bw -Dndiswrapper -ieth1 -c/etc/wpa_supplicant.conf
    post-down killall -q wpa_supplicant

    auto eth2
    iface eth2 inet dhcp

    auto ath0
    iface ath0 inet dhcp

    auto wlan0
    iface wlan0 inet dhcp
    4. when I run
    Code:
    sudo wpa_supplicant -Bw -Dndiswrapper -i eth1 -c/etc/wpa_supplicant.conf
    ... nothing happens. Here are the results when I run it with the -dd switch

    joe@UbuntuLaptop:~$ sudo wpa_supplicant -Dndiswrapper -i eth1 -c/etc/wpa_supplicant.conf -dd
    Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ndiswrapper' ctrl_interface 'N/A' bridge 'N/A'
    Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
    Reading configuration file '/etc/wpa_supplicant.conf'
    ctrl_interface='/var/run/wpa_supplicant'
    Line: 4 - start of a new network block
    ssid - hexdump_ascii(len=7):
    58 42 4f 58 57 41 50 XBOXWAP
    scan_ssid=1 (0x1)
    proto: 0x3
    key_mgmt: 0x2
    pairwise: 0x18
    group: 0x18
    PSK - hexdump(len=32): [REMOVED]
    Priority group 0
    id=0 ssid='XBOXWAP'
    Initializing interface (2) 'eth1'
    EAPOL: SUPP_PAE entering state DISCONNECTED
    EAPOL: KEY_RX entering state NO_KEY_RECEIVE
    EAPOL: SUPP_BE entering state INITIALIZE
    EAP: EAP entering state DISABLED
    EAPOL: External notification - portEnabled=0
    EAPOL: External notification - portValid=0
    SIOCGIWRANGE: WE(compiled)=20 WE(source)=18 enc_capa=0xf
    capabilities: key_mgmt 0xf enc 0xf
    WEXT: Operstate: linkmode=1, operstate=5
    Own MAC address: 00:90:4b:b3:d6:d0
    Driver does not support WPA.
    wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
    wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
    wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
    wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
    Setting scan request: 0 sec 100000 usec
    Using existing control interface directory.
    bind(PF_UNIX): Address already in use
    ctrl_iface exists and seems to be in use - cannot override it
    Delete '/var/run/wpa_supplicant/eth1' manually if it is not used anymore
    Failed to initialize control interface '/var/run/wpa_supplicant'.
    You may have another wpa_supplicant process already running or the file was
    left by an unclean termination of wpa_supplicant in which case you will need
    to manually remove this file before starting wpa_supplicant again.

    Failed to add interface eth1
    State: DISCONNECTED -> DISCONNECTED
    WEXT: Operstate: linkmode=-1, operstate=5
    No keys have been configured - skip key clearing
    EAPOL: External notification - portEnabled=0
    EAPOL: External notification - portValid=0
    Failed to disable WPA in the driver.
    No keys have been configured - skip key clearing
    WEXT: Operstate: linkmode=0, operstate=6
    Cancelling scan request
    Anyone? I'm a total noob, so I may need some rudimentary instruction.

    As another note, I have wifi radar running and it is at least seeing my neighbor's networks so I think the driver is working on some level.

    Also, my SSID is hidden, if that is complicating things (??)

    And the driver does support WPA. At least in Windows it does.

Page 10 of 16 FirstFirst ... 89101112 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •