Results 1 to 8 of 8

Thread: No open access point after WPA from command line

Threaded View

  1. #1
    Join Date
    Mar 2012
    Beans
    3

    No open access point after WPA from command line

    Hi All,

    I am using Ubuntu 10.04 and I want to use the command line to configure the wireless.
    This is as a test so I can use the same commands later on a similar system without possibility to access the Network Manager.
    It seems to be going OK and I am possible of connecting to wpa, wpa2, open and WEP protected access points.

    However, after using wpa supplicant to connect to wifi, when I want to connect to open wifi, with the same commands that worked before, I don't receive an access point.
    As I have an electronics background, I tried hitting the machine, but it didn't seem to help.

    I know that it is possible to do this because with the Network Manager it also works.
    I am relatively new to Linux so maybe I made some mistake(s).

    The commands I am using are these:

    Code:
     
    root@gr-phu-0516:/home/gr-phu# ifconfig wlan0 down
    root@gr-phu-0516:/home/gr-phu# killall wpa_supplicant
    root@gr-phu-0516:/home/gr-phu# killall dhclient
    root@gr-phu-0516:/home/gr-phu# wpa_passphrase "aaaaaaaa" aaaaaaaa > /etc/wpa_supplicant.conf
    root@gr-phu-0516:/home/gr-phu# wpa_supplicant -B -Dwext -i wlan0 -c/etc/wpa_supplicant.conf -qq
    root@gr-phu-0516:/home/gr-phu# iwconfig  wlan0 ap auto mode managed essid "aaaaaaaa" channel 6 key off
    root@gr-phu-0516:/home/gr-phu# ifconfig  wlan0 up
    root@gr-phu-0516:/home/gr-phu# dhclient  wlan0
    This seems all successful as I can access this forum and get the message:

    Code:
    There is already a pid file /var/run/dhclient.pid with pid 3651
    killed old client process, removed PID file
    Internet Systems Consortium DHCP Client V3.1.3
    Copyright 2004-2009 Internet Systems Consortium.
    All rights reserved.
    For info, please visit https://www.isc.org/software/dhcp/
     
    Listening on LPF/wlan0/00:24:b2:dc:fb:77
    Sending on   LPF/wlan0/00:24:b2:dc:fb:77
    Sending on   Socket/fallback
    DHCPREQUEST of 192.168.43.81 on wlan0 to 255.255.255.255 port 67
    DHCPACK of 192.168.43.81 from 192.168.43.1
    bound to 192.168.43.81 -- renewal in 1535 seconds.
    Then I try to connect to another connection with open wifi (in this case it is physically the same Access Point, but that doesn't seem to make a difference):

    Code:
     
    root@gr-phu-0516:/home/gr-phu# ifconfig wlan0 down
    root@gr-phu-0516:/home/gr-phu# killall wpa_supplicant
    root@gr-phu-0516:/home/gr-phu# killall dhclient
    root@gr-phu-0516:/home/gr-phu# iwconfig  wlan0 ap auto mode managed essid "aaaaaaa" channel 6 key open
    root@gr-phu-0516:/home/gr-phu# ifconfig  wlan0 up
    root@gr-phu-0516:/home/gr-phu# dhclient wlan0
    Internet Systems Consortium DHCP Client V3.1.3
    Copyright 2004-2009 Internet Systems Consortium.
    All rights reserved.
    For info, please visit https://www.isc.org/software/dhcp/
     
    Listening on LPF/wlan0/00:24:b2:dc:fb:77
    Sending on   LPF/wlan0/00:24:b2:dc:fb:77
    Sending on   Socket/fallback
    DHCPREQUEST of 192.168.1.75 on wlan0 to 255.255.255.255 port 67
    DHCPREQUEST of 192.168.1.75 on wlan0 to 255.255.255.255 port 67
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
    No DHCPOFFERS received.
    Trying recorded lease 192.168.43.81
    PING 192.168.43.1 (192.168.43.1) 56(84) bytes of data.
     
    --- 192.168.43.1 ping statistics ---
    1 packets transmitted, 0 received, 100% packet loss, time 0ms
    I am using an Atheros USB stick as hardware.

    Maybe some other useful information:

    Code:
     
    root@gr-phu-0516:/home/gr-phu# iwconfig 
    lo        no wireless extensions.
     
    eth0      no wireless extensions.
     
    wlan0     IEEE 802.11bg  ESSID:"aaaaaaa"  
              Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated   
              Tx-Power=27 dBm   
              Retry  long limit:7   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:off
     
    root@gr-phu-0516:/home/gr-phu# ifconfig 
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:28 errors:0 dropped:0 overruns:0 frame:0
              TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:2512 (2.5 KB)  TX bytes:2512 (2.5 KB)
     
    wlan0     Link encap:Ethernet  HWaddr 00:24:b2:dc:fb:77  
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:2961 errors:0 dropped:0 overruns:0 frame:0
              TX packets:2482 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:2365908 (2.3 MB)  TX bytes:516367 (516.3 KB)
     
    root@gr-phu-0516:/home/gr-phu# iwlist wlan0 scan
    wlan0     Scan completed :
     (...)
              Cell 04 - Address: 98:0C:82:92:F5:48
                        Channel:6
                        Frequency:2.437 GHz (Channel 6)
                        Quality=70/70  Signal level=-16 dBm  
                        Encryption key:off
                        ESSID:"aaaaaaa"
                        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
                        Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                        Mode:Master
                        Extra:tsf=00000000200991ac
                        Extra: Last beacon: 608ms ago
                        IE: Unknown: 000761616161616161
                        IE: Unknown: 010882848B962430486C
                        IE: Unknown: 030106
                        IE: Unknown: 2A0100
                        IE: Unknown: 2F0100
                        IE: Unknown: 32040C121860
                        IE: Unknown: 2D1A0C1019FF00000000000000000000000000000000000000000000
                        IE: Unknown: 3D1606080000000000000000000000000000000000000000
                        IE: Unknown: DD09001018020000000000
     (...)
    When I remove the USB stick between the operations, I do get an Access Point and ip-address, so I suspect that some process is still running somewhere (?). However, to eject and insert the stick is not really an option.

    Connecting to WEP and WPA protected Access Points is not a problem, only open has this issue.

    Thanks in advance,

    pim
    Last edited by pimpimpim; March 21st, 2012 at 04:28 PM. Reason: typo

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
  •