Page 40 of 99 FirstFirst ... 3038394041425090 ... LastLast
Results 391 to 400 of 981

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

  1. #391
    Join Date
    Jun 2007
    Beans
    692

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

    Quote Originally Posted by kevdog View Post
    imdano

    Isn't that what differentiates ifconfig <interface> up vs ifup <interface>?? Doesn't the latter command ifup read the network interfaces file when bringing up the interface and use this file as a configuration file to set the parameters?? This is what I always believed. So I guess if you needed to bring up the interface you would us ifup rather than ifconfig up.

    Am I wrong in this assumption?
    Yes, that is the difference. Didn't think about that, but using ifup would probably work just as well.

  2. #392
    Join Date
    Jan 2008
    Beans
    13

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

    Quote Originally Posted by imdano View Post
    What commands are you using to load the cuervo driver manually? Reading his site it looks like it relys on commands getting executed in /etc/network/interfaces. NetworkManager makes use of that file to determine which interfaces to use, and what commands to run when bringing them up/down. Without NM running, those commands won't get executed unless you run them, which means the driver won't load correctly. I'm not an expert on the inner-workings of NM, but from what I've read of their source code they don't mess around with anything at the driver level. They just make use of what's already there.
    The driver directory has a wlan0up script, so that is the one I use, manually. The /etc/network/interfaces file has no wlan0 entry on my machine, NM does not depend on it. If I disable the driver, start NM, NM does not show wlan0. If I then load the driver, NM shows wlan0. So NM spots the interfaces when they become available (without needing the /etc/network/interfaces file).

    I guess we are going of topic

  3. #393
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,554
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Guess I'll have to redownload the driver and take a look at that script.

  4. #394
    Join Date
    Mar 2006
    Beans
    21

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

    Firs of all thank you kevdog for your quick reply.
    Today after reinstalling and changing 100 configuration files I get the following output
    Code:
    wadi@wadi-laptop:~$ sudo wpa_supplicant -w -Dwext -ieth1 -c /etc/wpa_supplicant.conf
    l2_packet_receive - recvfrom: Network is down
    ioctl[SIOCSIWSCAN]: No such device
    Failed to initiate AP scan.
    ioctl[SIOCGIWSCAN]: No such device
    ioctl[SIOCSIWSCAN]: No such device
    Failed to initiate AP scan.
    CTRL-EVENT-TERMINATING - signal 2 received
    This is my /etc/wpa_suplicant.conf file

    Code:
    ctrl_interface=/var/run/wpa_supplicant
    
    network={
            ssid="aco"
            psk="pepe"
            key_mgmt=WPA-PSK
            proto=RSN
            pairwise=CCMP
    }

    Regarding to the command sudo wpa_supplicant -w -Dwext -ieth1 -c /etc/wpa_supplicant.conf -dd the output is the following:

    Code:
    Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
    Reading configuration file '/etc/wpa_supplicant.conf'
    ctrl_interface='/var/run/wpa_supplicant'
    Line: 3 - start of a new network block
    ssid - hexdump_ascii(len=3):
         61 63 6f                                          aco             
    PSK (ASCII passphrase) - hexdump_ascii(len=9): [REMOVED]
    key_mgmt: 0x2
    proto: 0x2
    pairwise: 0x10
    PSK (from passphrase) - hexdump(len=32): [REMOVED]
    Priority group 0
       id=0 ssid='aco'
    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)=22 WE(source)=16 enc_capa=0xf
      capabilities: key_mgmt 0xf enc 0xf
    WEXT: Operstate: linkmode=1, operstate=5
    Own MAC address: 00:1c:bf:13:b5:5b
    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
    Added interface eth1
    RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    Wireless event: cmd=0x8b06 len=12
    State: DISCONNECTED -> SCANNING
    Starting AP scan (broadcast SSID)
    Trying to get current scan results first without requesting a new scan to speed up initial association
    Received 651 bytes of scan results (2 BSSes)
    Scan results: 2
    Selecting BSS from priority group 0
    Try to find WPA-enabled AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip RSN IE - PTK cipher mismatch
    1: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - no WPA/RSN IE
    Try to find non-WPA AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip - non-WPA network not allowed
    1: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    No suitable AP found.
    Setting scan request: 0 sec 0 usec
    Starting AP scan (broadcast SSID)
    Scan timeout - try to get results
    Received 980 bytes of scan results (3 BSSes)
    Scan results: 3
    Selecting BSS from priority group 0
    Try to find WPA-enabled AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip RSN IE - PTK cipher mismatch
    1: 00:1a:70:5e:3a:4c ssid='elzefiro' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    2: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - no WPA/RSN IE
    Try to find non-WPA AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip - non-WPA network not allowed
    1: 00:1a:70:5e:3a:4c ssid='elzefiro' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    2: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    No suitable AP found.
    Setting scan request: 5 sec 0 usec
    Starting AP scan (broadcast SSID)
    Scan timeout - try to get results
    Received 1273 bytes of scan results (4 BSSes)
    Scan results: 4
    Selecting BSS from priority group 0
    Try to find WPA-enabled AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip RSN IE - PTK cipher mismatch
    1: 00:1a:70:5e:3a:4c ssid='elzefiro' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    2: 00:16:cf:56:d7:b1 ssid='Wi-Fi Arnet' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - no WPA/RSN IE
    3: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - no WPA/RSN IE
    Try to find non-WPA AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip - non-WPA network not allowed
    1: 00:1a:70:5e:3a:4c ssid='elzefiro' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    2: 00:16:cf:56:d7:b1 ssid='Wi-Fi Arnet' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    3: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    No suitable AP found.
    Setting scan request: 5 sec 0 usec
    Starting AP scan (broadcast SSID)
    Scan timeout - try to get results
    Received 943 bytes of scan results (3 BSSes)
    Scan results: 3
    Selecting BSS from priority group 0
    Try to find WPA-enabled AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip RSN IE - PTK cipher mismatch
    1: 00:16:cf:56:d7:b1 ssid='Wi-Fi Arnet' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - no WPA/RSN IE
    2: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - no WPA/RSN IE
    Try to find non-WPA AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip - non-WPA network not allowed
    1: 00:16:cf:56:d7:b1 ssid='Wi-Fi Arnet' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    2: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    No suitable AP found.
    Setting scan request: 5 sec 0 usec
    Starting AP scan (broadcast SSID)
    Scan timeout - try to get results
    Received 651 bytes of scan results (2 BSSes)
    Scan results: 2
    Selecting BSS from priority group 0
    Try to find WPA-enabled AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip RSN IE - PTK cipher mismatch
    1: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - no WPA/RSN IE
    Try to find non-WPA AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip - non-WPA network not allowed
    1: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    No suitable AP found.
    Setting scan request: 5 sec 0 usec
    Starting AP scan (broadcast SSID)
    Scan timeout - try to get results
    Received 650 bytes of scan results (2 BSSes)
    Scan results: 2
    Selecting BSS from priority group 0
    Try to find WPA-enabled AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip RSN IE - PTK cipher mismatch
    1: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - no WPA/RSN IE
    Try to find non-WPA AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip - non-WPA network not allowed
    1: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    No suitable AP found.
    Setting scan request: 5 sec 0 usec
    Starting AP scan (broadcast SSID)
    Scan timeout - try to get results
    Received 651 bytes of scan results (2 BSSes)
    Scan results: 2
    Selecting BSS from priority group 0
    Try to find WPA-enabled AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip RSN IE - PTK cipher mismatch
    1: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - no WPA/RSN IE
    Try to find non-WPA AP
    0: 00:1b:11:d3:b8:89 ssid='aco' wpa_ie_len=24 rsn_ie_len=22 caps=0x11
       skip - non-WPA network not allowed
    1: 00:02:72:55:9b:fb ssid='HectorWiFi' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
       skip - SSID mismatch
    No suitable AP found.
    Setting scan request: 5 sec 0 usec
    Thanks in advance,
    Regards,
    Wadi

  5. #395
    Join Date
    Jan 2008
    Location
    Croatia
    Beans
    22

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

    Quote Originally Posted by kevdog View Post
    Code:
    ap_scan=1
    ctrl_interface=/var/run/wpa_supplicant
    ctrl_interface_group=0
    eapol_version=1
    ap_scan=0
    network={
    key_mgmt=IEEE8021X
    eap=TTLS
    anonymous_identity="xxx@yyy.yy"
    phase2="auth=PAP"
    identitctrl_interface=/var/run/wpa_supplicant
    ctrl_interfy="xxx@yyy.yy"
    password="xxx"
    }
    
    ctrl_interface=/var/run/wpa_supplicant
    ctrl_interface_group=0
    eapol_version=1
    ap_scan=1
    network={
    ssid="eduroam"
    proto=WPA WPA2
    key_mgmt=WPA-EAP
    group=CCMP TKIP
    eap=TTLS
    anonymous_identity="xxx@yyy.yy"
    phase2="auth=PAP"
    identity="xxx@yyy.yy"
    password="xxx"
    }
    Do you need to repeat the following information:
    ctrl_interface=/var/run/wpa_supplicant
    ctrl_interface_group=0
    eapol_version=1
    ap_scan=1

    I don't have a lot of experience with TTLS, EAP.
    here's the output:
    (attachment)
    Attached Files Attached Files

  6. #396
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,554
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Ok,

    First post
    lshw -C network
    iwlist scan
    ifconfig

    And modify the wpa_supplicant.conf file to connect to only one AP for now. Lets just go with the basics. Can you connect to an unencrypted network?

  7. #397
    Join Date
    Jan 2008
    Location
    Croatia
    Beans
    22

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

    Quote Originally Posted by kevdog View Post
    Ok,

    First post
    lshw -C network
    iwlist scan
    ifconfig

    And modify the wpa_supplicant.conf file to connect to only one AP for now. Lets just go with the basics. Can you connect to an unencrypted network?
    thank you for your help, but i solved it with: http://ubuntuforums.org/showthread.p...48#post4410798

  8. #398
    Join Date
    Mar 2008
    Beans
    4

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

    Quote Originally Posted by kevdog View Post
    Just an idea since I see that you like the gui network manager gives you (a lot of people do). Uninstall network manager and try WICD. This provides a GUI, and I bet you will find this much more reliable.
    Thank's kevdog. Wireless networking is playing with me... as soon
    as I post that I have problems again, it starts working. It's been
    working fine so far. If it fails again, I'll try WICD.

  9. #399
    Join Date
    Jan 2008
    Location
    Christchurch, New Zealand
    Beans
    26
    Distro
    Ubuntu 8.10 Intrepid Ibex

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

    hi, im using a macbook with madwifi, and am connecting to a WPA1 network..

    connecting via network manager doesnt seem to work...
    so i tried what you said...

    and it was all going fine untill i entered this command:

    sudo wpa_supplicant -w -D madwifi -i wifi0 -c/etc/wpa_supplicant.conf -dd

    and then got this:::

    PHP Code:
    Initializing interface 'wifi0' conf '/etc/wpa_supplicant.conf' driver 'madwifi' 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'
    Linestart of a new network block
    ssid 
    hexdump_ascii(len=3):
         
    56 56 56                                          VVV             
    scan_ssid
    =(0x0)
    proto0x1
    key_mgmt
    0x2
    PSK 
    (ASCII passphrase) - hexdump_ascii(len=9): [REMOVED]
    pairwise0x8
    group
    0x8
    PSK 
    (from passphrase) - hexdump(len=32): [REMOVED]
    Priority group 0
       id
    =0 ssid='VVV'
    Initializing interface (2'wifi0'
    EAPOLSUPP_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
    ioctl
    [SIOCSIWMODE]: Operation not supported
    Could not configure driver to 
    use managed mode
    ioctl
    [SIOCGIWRANGE]: Operation not supported
    WEXT
    Operstatelinkmode=1operstate=5
    ioctl
    [IEEE80211_IOCTL_SETPARAM]: Operation not supported
    wpa_driver_madwifi_init
    failed to set wpa_supplicant-based roaming
    ioctl
    [SIOCSIWAP]: Operation not supported
    WEXT
    Operstatelinkmode=0operstate=6
    Failed to initialize driver 
    interface
    Failed to add interface wifi0
    Cancelling scan request
    Cancelling authentication timeout 
    any help would be great... as i am unable to connect via anything other than a cable.

  10. #400
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,554
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    This line:
    sudo wpa_supplicant -w -D madwifi -i wifi0 -c/etc/wpa_supplicant.conf -dd

    is likely supposed to be:
    sudo wpa_supplicant -w -D madwifi -i ath0 -c/etc/wpa_supplicant.conf -dd

Page 40 of 99 FirstFirst ... 3038394041425090 ... 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
  •