Page 59 of 98 FirstFirst ... 949575859606169 ... LastLast
Results 581 to 590 of 978

Thread: How To: Manual Network Configuration without the need for Network Manager

  1. #581
    Join Date
    Oct 2007
    Beans
    13

    Re: How To: Manual Network Configuration without the need for Network Manager

    kevdog, I'm not using the wired interface anymore now that the wireless is working, but that may have been the cause of those errors earlier when I was using it.

    Thanks for all your help, kevdog and drpaul. Now it just remains to be seen if I can connect to other networks, but I'll cross that bridge when I come to it

  2. #582
    Join Date
    Jan 2008
    Beans
    72

    Re: How To: Manual Network Configuration without the need for Network Manager

    Quote Originally Posted by drpaul View Post
    I don't know about the password thing, but your output shows that you are connected over wireless [wlan0] and you have been assigned an IP address.

    What more are you trying to do?

    Paul

    OBTW, you could always put the hex key in instead of the password.
    See, it SAYS I'm connected since I tried to connect through System/Admin/Network then unlock it, and click properties on my wireless network, choose WPA (Personal), and enter the password 519. However, as soon as I get out of properties and it refreshes or whatever, and I go back into properties, the password is erased every time and I don't get internet despite what my ifconfig says about my having an IP address.

    Here's the output when I edited the wpa supplicant file with the hex equivalent of 519 (which is %35%31%39, right?)
    Code:
    dan@dan-hp:~$ sudo wpa_supplicant -w -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd 
    Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
    Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
    Reading configuration file '/etc/wpa_supplicant.conf'
    ap_scan=1
    ctrl_interface='/var/run/wpa_supplicant'
    Line: 4 - start of a new network block
    ssid - hexdump_ascii(len=8):
         67 69 72 6c 66 65 73 73                           girlfess        
    scan_ssid=0 (0x0)
    proto: 0x1
    key_mgmt: 0x2
    PSK (ASCII passphrase) - hexdump_ascii(len=9): [REMOVED]
    pairwise: 0x8
    group: 0x8
    PSK (from passphrase) - hexdump(len=32): [REMOVED]
    Priority group 0
       id=0 ssid='girlfess'
    Initializing interface (2) 'wlan0'
    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)=22 WE(source)=18 enc_capa=0xf
      capabilities: key_mgmt 0xf enc 0xf
    WEXT: Operstate: linkmode=1, operstate=5
    Own MAC address: 00:1a:73:a6:9d:b4
    wpa_driver_wext_set_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
    wpa_driver_wext_set_countermeasures
    wpa_driver_wext_set_drop_unencrypted
    Setting scan request: 0 sec 100000 usec
    Using existing control interface directory.
    ctrl_iface bind(PF_UNIX) failed: Address already in use
    ctrl_iface exists and seems to be in use - cannot override it
    Delete '/var/run/wpa_supplicant/wlan0' 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 wlan0
    State: DISCONNECTED -> DISCONNECTED
    wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
    WEXT: Operstate: linkmode=-1, operstate=5
    No keys have been configured - skip key clearing
    EAPOL: External notification - portEnabled=0
    EAPOL: External notification - portValid=0
    wpa_driver_wext_set_wpa
    wpa_driver_wext_set_drop_unencrypted
    wpa_driver_wext_set_countermeasures
    No keys have been configured - skip key clearing
    Cancelling scan request
    Cancelling authentication timeout
    WEXT: Operstate: linkmode=0, operstate=6
    And here's what happens when I enter the the ASCII password into the wpa supplicant file(519):
    Code:
    Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
    Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
    Reading configuration file '/etc/wpa_supplicant.conf'
    ap_scan=1
    ctrl_interface='/var/run/wpa_supplicant'
    Line: 4 - start of a new network block
    ssid - hexdump_ascii(len=8):
         67 69 72 6c 66 65 73 73                           girlfess        
    scan_ssid=0 (0x0)
    proto: 0x1
    key_mgmt: 0x2
    Line 9: Invalid passphrase length 3 (expected: 8..63) '519"'.
    Line 9: failed to parse psk '"519"'.
    pairwise: 0x8
    group: 0x8
    Line 12: WPA-PSK accepted for key management, but no PSK configured.
    Line 12: failed to parse network block.
    Failed to read or parse configuration '/etc/wpa_supplicant.conf'.
    Failed to add interface wlan0
    Cancelling scan request
    Cancelling authentication timeout
    So what gives?
    Last edited by SlingerXL; June 24th, 2008 at 04:17 AM.

  3. #583
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,958
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: How To: Manual Network Configuration without the need for Network Manager

    First I'm really confused by what you are doing. If you are trying to use Network Manager, WICD or any other GUI, thats fine, but you can't do a manual connection and use a GUI at the same time. It would work. So I dont quite understand the things you were saying about System/Admin/Network and such.

    Second if you read your output:

    ctrl_iface bind(PF_UNIX) failed: Address already in use
    ctrl_iface exists and seems to be in use - cannot override it
    Delete '/var/run/wpa_supplicant/wlan0' 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.

    You seem to have a process (a GUI perhaps??) already using the /var/run/wpa_supplicant/wlan0 socket. So you must delete this socket (which can be treated like a file) with:
    sudo rm -rf /var/run/wpa_supplicant

    And just for reference (since a lot of people are responding to this thread all of a sudden and its hard for me to keep people straight) if you could post your wpa_supplicant.conf file along with your commands you are typing that would be great for reference.

  4. #584
    Join Date
    Jun 2008
    Beans
    19

    Re: How To: Manual Network Configuration without the need for Network Manager

    I am following the steps described in this HOWTO to connect to WPA1 encrypted wifi network. But sometimes I am unable to connect to my wifi network(No working leases in persistent database - sleeping). Am using the following script to connect to wifi network.

    Code:
    cat wifi_scripts/wifi_start.sh
    #!/bin/sh
    sudo ifconfig wlan0 down
    sudo dhclient -r wlan0
    sudo wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf 
    sudo ifconfig wlan0 up
    sudo iwconfig wlan0 mode Managed
    sudo dhclient wlan0
    Once in a while ,I am getting the following output while running this script and connection fails ,

    Code:
    #./wifi_start.sh 
    
    Internet Systems Consortium DHCP Client V3.0.6
    Copyright 2004-2007 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    
    Listening on LPF/wlan0/00:16:cf:71:b4:5e
    Sending on   LPF/wlan0/00:16:cf:71:b4:5e
    Sending on   Socket/fallback
    DHCPRELEASE on wlan0 to 10.0.0.1 port 67
    There is already a pid file /var/run/dhclient.pid with pid 134519072
    Internet Systems Consortium DHCP Client V3.0.6
    Copyright 2004-2007 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    
    Listening on LPF/wlan0/00:16:cf:71:b4:5e
    Sending on   LPF/wlan0/00:16:cf:71:b4:5e
    Sending on   Socket/fallback
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
    No DHCPOFFERS received.
    No working leases in persistent database - sleeping.
    When I tried scanning for network at this moment I got the following output,

    Code:
    # sudo iwlist scanning
    [sudo] password for dilip: 
    lo        Interface doesn't support scanning.
    
    wlan0     Scan completed :
              Cell 01 - Address: 00:1B:2F:FE:48:A8
                        ESSID:"CESC"
                        Protocol:IEEE 802.11g
                        Mode:Managed
                        Frequency:2.462 GHz (Channel 11)
                        Quality:100/100  Signal level:-20 dBm  Noise level:-96 dBm
                        Encryption key:on
                        Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                                  11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                                  48 Mb/s; 54 Mb/s
                        Extra:bcn_int=100
                        Extra:atim=0
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (1) : TKIP
                            Authentication Suites (1) : PSK
    
    eth0      Interface doesn't support scanning.
    Can anyone give some pointer regarding how to resolve this problem?

  5. #585
    Join Date
    Jan 2008
    Beans
    72

    Re: How To: Manual Network Configuration without the need for Network Manager

    Quote Originally Posted by kevdog View Post
    First I'm really confused by what you are doing. If you are trying to use Network Manager, WICD or any other GUI, thats fine, but you can't do a manual connection and use a GUI at the same time. It would work. So I dont quite understand the things you were saying about System/Admin/Network and such.
    I'm trying to just get wireless internet to work. Be it through the terminal or through a GUI. I was explaining to Paul why my ifconfig was showing an IP address but I still couldn't get any internet. But since GUI has failed me I guess I'm just trying to connect through the terminal.

    Quote Originally Posted by kevdog View Post
    Second if you read your output:

    ctrl_iface bind(PF_UNIX) failed: Address already in use
    ctrl_iface exists and seems to be in use - cannot override it
    Delete '/var/run/wpa_supplicant/wlan0' 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.

    You seem to have a process (a GUI perhaps??) already using the /var/run/wpa_supplicant/wlan0 socket. So you must delete this socket (which can be treated like a file) with:
    sudo rm -rf /var/run/wpa_supplicant

    And just for reference (since a lot of people are responding to this thread all of a sudden and its hard for me to keep people straight) if you could post your wpa_supplicant.conf file along with your commands you are typing that would be great for reference.
    OK I entered what you told me to enter and how here's my output for:
    sudo wpa_supplicant -w -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd
    Code:
    wpa_driver_wext_set_drop_unencrypted
    State: DISCONNECTED -> ASSOCIATING
    wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
    WEXT: Operstate: linkmode=-1, operstate=5
    wpa_driver_wext_associate
    Setting authentication timeout: 10 sec 0 usec
    EAPOL: External notification - EAP success=0
    EAPOL: External notification - EAP fail=0
    EAPOL: External notification - portControl=Auto
    RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    Wireless event: cmd=0x8b06 len=8
    RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    Wireless event: cmd=0x8b04 len=12
    RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    Wireless event: cmd=0x8b1a len=16
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    Wireless event: cmd=0x8c07 len=96
    AssocReq IE wireless event - hexdump(len=88): 00 08 67 69 72 6c 66 65 73 73 01 08 82 84 8b 96 24 30 48 6c 21 02 08 12 24 02 01 0e 32 04 0c 12 18 60 dd 06 00 40 96 01 01 00 dd 09 00 10 18 02 00 10 00 00 00 dd 07 00 50 f2 02 00 01 00 dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    Wireless event: cmd=0x8c08 len=162
    AssocResp IE wireless event - hexdump(len=154): 01 08 82 84 8b 0c 12 96 18 24 32 04 30 48 60 6c 2d 1a 4c 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3d 16 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 18 00 50 f2 02 01 01 07 00 02 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00 dd 1e 00 90 4c 33 4c 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 1a 00 90 4c 34 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    Wireless event: cmd=0x8b15 len=20
    Wireless event: new AP: 00:1b:63:2d:20:a9
    Association info event
    req_ies - hexdump(len=88): 00 08 67 69 72 6c 66 65 73 73 01 08 82 84 8b 96 24 30 48 6c 21 02 08 12 24 02 01 0e 32 04 0c 12 18 60 dd 06 00 40 96 01 01 00 dd 09 00 10 18 02 00 10 00 00 00 dd 07 00 50 f2 02 00 01 00 dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    resp_ies - hexdump(len=154): 01 08 82 84 8b 0c 12 96 18 24 32 04 30 48 60 6c 2d 1a 4c 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3d 16 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 18 00 50 f2 02 01 01 07 00 02 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00 dd 1e 00 90 4c 33 4c 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 1a 00 90 4c 34 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    WPA: set own WPA/RSN IE - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    State: ASSOCIATING -> ASSOCIATED
    wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
    WEXT: Operstate: linkmode=-1, operstate=5
    Associated to a new BSS: BSSID=00:1b:63:2d:20:a9
    No keys have been configured - skip key clearing
    Associated with 00:1b:63:2d:20:a9
    WPA: Association event - clear replay counter
    EAPOL: External notification - portEnabled=0
    EAPOL: External notification - portValid=0
    EAPOL: External notification - EAP success=0
    EAPOL: External notification - portEnabled=1
    EAPOL: SUPP_PAE entering state CONNECTING
    EAPOL: SUPP_BE entering state IDLE
    Setting authentication timeout: 10 sec 0 usec
    Cancelling scan request
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    Wireless event: cmd=0x8c07 len=96
    AssocReq IE wireless event - hexdump(len=88): 00 08 67 69 72 6c 66 65 73 73 01 08 82 84 8b 96 24 30 48 6c 21 02 08 12 24 02 01 0e 32 04 0c 12 18 60 dd 06 00 40 96 01 01 00 dd 09 00 10 18 02 00 10 00 00 00 dd 07 00 50 f2 02 00 01 00 dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    Wireless event: cmd=0x8c08 len=162
    AssocResp IE wireless event - hexdump(len=154): 01 08 82 84 8b 0c 12 96 18 24 32 04 30 48 60 6c 2d 1a 4c 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3d 16 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 18 00 50 f2 02 01 01 07 00 02 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00 dd 1e 00 90 4c 33 4c 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 1a 00 90 4c 34 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    Wireless event: cmd=0x8b15 len=20
    Wireless event: new AP: 00:1b:63:2d:20:a9
    Association info event
    req_ies - hexdump(len=88): 00 08 67 69 72 6c 66 65 73 73 01 08 82 84 8b 96 24 30 48 6c 21 02 08 12 24 02 01 0e 32 04 0c 12 18 60 dd 06 00 40 96 01 01 00 dd 09 00 10 18 02 00 10 00 00 00 dd 07 00 50 f2 02 00 01 00 dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    resp_ies - hexdump(len=154): 01 08 82 84 8b 0c 12 96 18 24 32 04 30 48 60 6c 2d 1a 4c 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3d 16 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 18 00 50 f2 02 01 01 07 00 02 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00 dd 1e 00 90 4c 33 4c 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 1a 00 90 4c 34 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    WPA: set own WPA/RSN IE - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    State: ASSOCIATED -> ASSOCIATED
    wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
    WEXT: Operstate: linkmode=-1, operstate=5
    Associated with 00:1b:63:2d:20:a9
    WPA: Association event - clear replay counter
    EAPOL: External notification - portEnabled=0
    EAPOL: SUPP_PAE entering state DISCONNECTED
    EAPOL: SUPP_BE entering state INITIALIZE
    EAPOL: External notification - portValid=0
    EAPOL: External notification - EAP success=0
    EAPOL: External notification - portEnabled=1
    EAPOL: SUPP_PAE entering state CONNECTING
    EAPOL: SUPP_BE entering state IDLE
    Setting authentication timeout: 10 sec 0 usec
    Cancelling scan request
    RX EAPOL from 00:1b:63:2d:20:a9
    RX EAPOL - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01 ec 58 bd e8 39 c3 14 f7 a5 51 a9 9d 8c 48 3c ac 06 7b 51 3d 32 61 9f d7 9b 94 8a 11 65 71 65 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Setting authentication timeout: 10 sec 0 usec
    IEEE 802.1X RX: version=1 type=3 length=95
      EAPOL-Key type=254
      key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack)
      key_length=32 key_data_length=0
      replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01
      key_nonce - hexdump(len=32): ec 58 bd e8 39 c3 14 f7 a5 51 a9 9d 8c 48 3c ac 06 7b 51 3d 32 61 9f d7 9b 94 8a 11 65 71 65 10
      key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
      key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
      key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    WPA: RX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01 ec 58 bd e8 39 c3 14 f7 a5 51 a9 9d 8c 48 3c ac 06 7b 51 3d 32 61 9f d7 9b 94 8a 11 65 71 65 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    State: ASSOCIATED -> 4WAY_HANDSHAKE
    WPA: RX message 1 of 4-Way Handshake from 00:1b:63:2d:20:a9 (ver=1)
    WPA: Renewed SNonce - hexdump(len=32): 0f a8 1e 16 53 1c 95 89 d7 a5 35 50 9d 98 d8 c1 fe 27 e8 a3 a5 af ee b5 df 18 91 16 2d dd 27 07
    WPA: PMK - hexdump(len=32): [REMOVED]
    WPA: PTK - hexdump(len=64): [REMOVED]
    WPA: WPA IE for msg 2/4 - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    WPA: Sending EAPOL-Key 2/4
    WPA: TX EAPOL-Key - hexdump(len=125): 01 03 00 79 fe 01 09 00 20 00 00 00 00 00 00 00 01 0f a8 1e 16 53 1c 95 89 d7 a5 35 50 9d 98 d8 c1 fe 27 e8 a3 a5 af ee b5 df 18 91 16 2d dd 27 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 34 9a a0 ce 51 cc fd c2 d9 b0 d6 08 8e d8 9e 25 00 1a dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    Wireless event: cmd=0x8c07 len=96
    AssocReq IE wireless event - hexdump(len=88): 00 08 67 69 72 6c 66 65 73 73 01 08 82 84 8b 96 24 30 48 6c 21 02 08 12 24 02 01 0e 32 04 0c 12 18 60 dd 06 00 40 96 01 01 00 dd 09 00 10 18 02 00 10 00 00 00 dd 07 00 50 f2 02 00 01 00 dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    Wireless event: cmd=0x8c08 len=162
    AssocResp IE wireless event - hexdump(len=154): 01 08 82 84 8b 0c 12 96 18 24 32 04 30 48 60 6c 2d 1a 4c 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3d 16 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 18 00 50 f2 02 01 01 07 00 02 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00 dd 1e 00 90 4c 33 4c 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 1a 00 90 4c 34 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
    Wireless event: cmd=0x8b15 len=20
    Wireless event: new AP: 00:1b:63:2d:20:a9
    Association info event
    req_ies - hexdump(len=88): 00 08 67 69 72 6c 66 65 73 73 01 08 82 84 8b 96 24 30 48 6c 21 02 08 12 24 02 01 0e 32 04 0c 12 18 60 dd 06 00 40 96 01 01 00 dd 09 00 10 18 02 00 10 00 00 00 dd 07 00 50 f2 02 00 01 00 dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    resp_ies - hexdump(len=154): 01 08 82 84 8b 0c 12 96 18 24 32 04 30 48 60 6c 2d 1a 4c 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3d 16 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 18 00 50 f2 02 01 01 07 00 02 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00 dd 1e 00 90 4c 33 4c 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 1a 00 90 4c 34 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    WPA: set own WPA/RSN IE - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    State: 4WAY_HANDSHAKE -> ASSOCIATED
    wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
    WEXT: Operstate: linkmode=-1, operstate=5
    Associated with 00:1b:63:2d:20:a9
    WPA: Association event - clear replay counter
    EAPOL: External notification - portEnabled=0
    EAPOL: SUPP_PAE entering state DISCONNECTED
    EAPOL: SUPP_BE entering state INITIALIZE
    EAPOL: External notification - portValid=0
    EAPOL: External notification - EAP success=0
    EAPOL: External notification - portEnabled=1
    EAPOL: SUPP_PAE entering state CONNECTING
    EAPOL: SUPP_BE entering state IDLE
    Setting authentication timeout: 10 sec 0 usec
    Cancelling scan request
    RX EAPOL from 00:1b:63:2d:20:a9
    RX EAPOL - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01 ec 58 bd e8 39 c3 14 f7 a5 51 a9 9d 8c 48 3c ac 06 7b 51 3d 32 61 9f d7 9b 94 8a 11 65 71 65 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Setting authentication timeout: 10 sec 0 usec
    IEEE 802.1X RX: version=1 type=3 length=95
      EAPOL-Key type=254
      key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack)
      key_length=32 key_data_length=0
      replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01
      key_nonce - hexdump(len=32): ec 58 bd e8 39 c3 14 f7 a5 51 a9 9d 8c 48 3c ac 06 7b 51 3d 32 61 9f d7 9b 94 8a 11 65 71 65 11
      key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
      key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
      key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    WPA: RX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01 ec 58 bd e8 39 c3 14 f7 a5 51 a9 9d 8c 48 3c ac 06 7b 51 3d 32 61 9f d7 9b 94 8a 11 65 71 65 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    State: ASSOCIATED -> 4WAY_HANDSHAKE
    WPA: RX message 1 of 4-Way Handshake from 00:1b:63:2d:20:a9 (ver=1)
    WPA: Renewed SNonce - hexdump(len=32): f6 c0 69 06 e6 9d 8f e2 38 db 4a 7c f1 b5 5b 34 61 19 e1 e4 83 e7 8a b7 8c 33 95 e6 90 96 d4 9f
    WPA: PMK - hexdump(len=32): [REMOVED]
    WPA: PTK - hexdump(len=64): [REMOVED]
    WPA: WPA IE for msg 2/4 - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    WPA: Sending EAPOL-Key 2/4
    WPA: TX EAPOL-Key - hexdump(len=125): 01 03 00 79 fe 01 09 00 20 00 00 00 00 00 00 00 01 f6 c0 69 06 e6 9d 8f e2 38 db 4a 7c f1 b5 5b 34 61 19 e1 e4 83 e7 8a b7 8c 33 95 e6 90 96 d4 9f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 88 b2 91 a7 34 75 be 0b 0b 9f bc 46 10 a5 19 8d 00 1a dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    RX EAPOL from 00:1b:63:2d:20:a9
    RX EAPOL - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01 ec 58 bd e8 39 c3 14 f7 a5 51 a9 9d 8c 48 3c ac 06 7b 51 3d 32 61 9f d7 9b 94 8a 11 65 71 65 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    IEEE 802.1X RX: version=1 type=3 length=95
      EAPOL-Key type=254
      key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack)
      key_length=32 key_data_length=0
      replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01
      key_nonce - hexdump(len=32): ec 58 bd e8 39 c3 14 f7 a5 51 a9 9d 8c 48 3c ac 06 7b 51 3d 32 61 9f d7 9b 94 8a 11 65 71 65 12
      key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
      key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
      key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    WPA: RX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01 ec 58 bd e8 39 c3 14 f7 a5 51 a9 9d 8c 48 3c ac 06 7b 51 3d 32 61 9f d7 9b 94 8a 11 65 71 65 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
    WPA: RX message 1 of 4-Way Handshake from 00:1b:63:2d:20:a9 (ver=1)
    WPA: PMK - hexdump(len=32): [REMOVED]
    WPA: PTK - hexdump(len=64): [REMOVED]
    WPA: WPA IE for msg 2/4 - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    WPA: Sending EAPOL-Key 2/4
    WPA: TX EAPOL-Key - hexdump(len=125): 01 03 00 79 fe 01 09 00 20 00 00 00 00 00 00 00 01 f6 c0 69 06 e6 9d 8f e2 38 db 4a 7c f1 b5 5b 34 61 19 e1 e4 83 e7 8a b7 8c 33 95 e6 90 96 d4 9f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a9 2e 00 eb a6 73 ea 12 58 e4 e8 79 ca fc 25 d7 00 1a dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
    EAPOL: startWhen --> 0
    EAPOL: SUPP_PAE entering state CONNECTING
    EAPOL: txStart
    WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
    I dont know where it starts and stops, because it just keeps going. It never gives me a chance to go on to the next step since it seems to be stuck in some loop.

    Here's my wpa supplicant file:
    Code:
    ap_scan=1
    ctrl_interface=/var/run/wpa_supplicant 
    
    network={
            ssid="girlfess"
            scan_ssid=0
            proto=WPA
            key_mgmt=WPA-PSK
            psk="%35%31%39"
            pairwise=TKIP
            group=TKIP
    }
    Last edited by SlingerXL; June 24th, 2008 at 08:08 PM.

  6. #586
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,958
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: How To: Manual Network Configuration without the need for Network Manager

    Try doing the following b/c it looks like things are working

    Instead of this:
    sudo wpa_supplicant -w -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd

    Do this:
    sudo wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf

    You will not get any debug parameters with the second command since it will be run in the background (hence the B flag). It looked like your debug output was positive from the previous post, so you might be in luck.

  7. #587
    Join Date
    Jan 2008
    Beans
    72

    Re: How To: Manual Network Configuration without the need for Network Manager

    Quote Originally Posted by kevdog View Post
    Try doing the following b/c it looks like things are working

    Instead of this:
    sudo wpa_supplicant -w -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd

    Do this:
    sudo wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf

    You will not get any debug parameters with the second command since it will be run in the background (hence the B flag). It looked like your debug output was positive from the previous post, so you might be in luck.
    Thanks a lot for helping me out so much. I'd be completely at a loss without your help.

    OK so this is what happened when I tried to connect via command line:
    Code:
    dan@dan-hp:~$ sudo ifconfig wlan0 down
    [sudo] password for dan: 
    Sorry, try again.
    [sudo] password for dan: 
    dan@dan-hp:~$ sudo dhclient -r wlan0
    There is already a pid file /var/run/dhclient.pid with pid 8612
    killed old client process, removed PID file
    Internet Systems Consortium DHCP Client V3.0.6
    Copyright 2004-2007 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    
    Listening on LPF/wlan0/00:1a:73:a6:9d:b4
    Sending on   LPF/wlan0/00:1a:73:a6:9d:b4
    Sending on   Socket/fallback
    dan@dan-hp:~$ sudo wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
    dan@dan-hp:~$ sudo ifconfig wlan0 up
    dan@dan-hp:~$ sudo iwconfig wlan0 mode Managed
    dan@dan-hp:~$ sudo dhclient wlan0
    There is already a pid file /var/run/dhclient.pid with pid 134519072
    Internet Systems Consortium DHCP Client V3.0.6
    Copyright 2004-2007 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    
    Listening on LPF/wlan0/00:1a:73:a6:9d:b4
    Sending on   LPF/wlan0/00:1a:73:a6:9d:b4
    Sending on   Socket/fallback
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
    No DHCPOFFERS received.
    No working leases in persistent database - sleeping.
    I'm excited because this is as far as I've got in my 2 week long quest for wireless! It's like a puzzle that I just have to solve. Unfortunately, I'm not there yet. Do you know what went wrong this time? What's a pid?
    Last edited by SlingerXL; June 25th, 2008 at 02:55 AM.

  8. #588
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,958
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: How To: Manual Network Configuration without the need for Network Manager

    OK

    Do the following:

    1. Change the wpa password to only contain letter or numbers -- no funky stuff -- this sometimes is a problem -- make it really simple for right now!

    2. Pop open two command windows

    Window #1:
    sudo ifconfig wlan0 down
    sudo dhclient -r wlan0
    sudo wpa_supplicant -w -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd

    The output in this window will likely not stop

    Stop with Cntl-C when need be but run commands in Window#2 while output is going in Window#1

    Window #2:
    sudo ifconfig wlan0 up
    sudo iwconfig wlan0 mode Managed
    sudo dhclient wlan0

    Can you lastly check dmesg for me. I don't want you to post the entire file. dmesg is a long file. Probably best checked right after boot since its a lot smaller, but it doesnt matter. Scan the output (dmesg | more -- use spacebar to get next page) and look for wlan0 or something about your network card. Make sure you see specifically that wpa is supported by your wireless driver, and there are no errors associated with your card -- read carefully -- they are easy to miss).

    Lastly post
    iwlist scan

  9. #589
    Join Date
    Jan 2008
    Beans
    72

    Re: How To: Manual Network Configuration without the need for Network Manager

    Quote Originally Posted by kevdog View Post
    OK

    Do the following:

    1. Change the wpa password to only contain letter or numbers -- no funky stuff -- this sometimes is a problem -- make it really simple for right now!

    2. Pop open two command windows

    Window #1:
    sudo ifconfig wlan0 down
    sudo dhclient -r wlan0
    sudo wpa_supplicant -w -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd

    The output in this window will likely not stop

    Stop with Cntl-C when need be but run commands in Window#2 while output is going in Window#1

    Window #2:
    sudo ifconfig wlan0 up
    sudo iwconfig wlan0 mode Managed
    sudo dhclient wlan0
    Output for this method was the same as my last post where I added -Bw.Ended in:
    Code:
    No DHCPOFFERS received.
    No working leases in persistent database - sleeping.
    Quote Originally Posted by kevdog View Post
    Can you lastly check dmesg for me. I don't want you to post the entire file. dmesg is a long file. Probably best checked right after boot since its a lot smaller, but it doesnt matter. Scan the output (dmesg | more -- use spacebar to get next page) and look for wlan0 or something about your network card. Make sure you see specifically that wpa is supported by your wireless driver, and there are no errors associated with your card -- read carefully -- they are easy to miss).
    Here's what I found:
    Code:
    [  205.710420] ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [  208.955590] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [  217.832023] wlan0: no IPv6 routers present
    Code:
    [   42.736342] ndiswrapper: using IRQ 16
    [   42.869532] wlan0: ethernet device 00:1a:73:a6:9d:b4 using NDIS driver: bcmwl5, version: 0x4640f05, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 14E4:4311.5.conf
    [   42.869559] wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
    Code:
    [   42.578544] wlan0: ethernet device 00:1a:73:a6:9d:b4 using NDIS driver: bcmwl5, version: 0x4640f05, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 14E4:4311.5.conf
    
    [   42.578959] wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
    [   42.585328] usbcore: registered new interface driver ndiswrapper
    [   42.649247] ndiswrapper: device wlan0 removed
    Code:
    [   42.578544] wlan0: ethernet device 00:1a:73:a6:9d:b4 using NDIS driver: bcmwl5, version: 0x4640f05, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 14E4:4311.5.conf
    Quote Originally Posted by kevdog View Post
    Lastly post
    iwlist scan
    OK

    Code:
    Usage: iwlist [interface] scanning [essid NNN] [last]
                  [interface] frequency 
                  [interface] channel 
                  [interface] bitrate 
                  [interface] rate 
                  [interface] encryption 
                  [interface] keys 
                  [interface] power 
                  [interface] txpower 
                  [interface] retry 
                  [interface] ap 
                  [interface] accesspoints 
                  [interface] peers 
                  [interface] event 
                  [interface] auth 
                  [interface] wpakeys 
                  [interface] genie 
                  [interface] modulation
    Last edited by SlingerXL; June 25th, 2008 at 10:07 PM.

  10. #590
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,958
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: How To: Manual Network Configuration without the need for Network Manager

    Thanks -- just post
    iwlist scan

Page 59 of 98 FirstFirst ... 949575859606169 ... LastLast

Tags for this Thread

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
  •