USB wifi adapter can't connect AP

  • Hey guys,I'm new here,forgive my poor english,I'm Chinese.
    One problem almost drive me crazy is that:my omv can't use any NIC.
    My motherboard is Asrock B85M-ITX which embedded a Atheros ar8171/8175 ethernet which can't be recognised in installation of OMV 1.0.20.
    So,I plugged in a usb rtl8187 wifi adapter,and it works well in installation.
    Well,here comes the problem


    Input:

    Code
    ifconfig -a


    it only shows the eth0--ar8187,it dosen't matter ,for it has no driver
    The point is,it doesn't show the usb wifi adapter.
    I thought it has no driver,but after a while ,I think of that this usb wifi adapter works in installation,so it must have drivers.IT' NOT A DRIVER PROBLEM!
    I Googled,found that I can do this to active it

    Code
    ifconfig wlan0 up


    Now input ifconfig -a,it shows wlan0.


    I just went on.

    Code
    iwconfig wlan0 scanning


    shows a lot wifi signals.


    Just input

    Code
    iwconfig wlan0 essid "la0wei" key "w0123456789"


    and then

    Code
    dhclient wlan0


    It shows

    Code
    Sending on Socket/fallbackDHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 20DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5No DHCPOFFERS received.No working leases in persistent database - sleeping.


    Googled agian,it says to modify the

    Code
    /etc/network/interfaces


    like this

    Code
    auto wlan0 
    iface wlan0 inet dhcp
    wpa-ssid la0wei
    wpa-psk w0123456789

    (I'm using a wpa2 router)
    bu it claimed this should work with wpa-suppliant.
    I searched,no this tool installed.


    I just wonderring why the wifi can be used in installation without wpa-suppliant but not after ?


    Hoping for your help :)

  • Hy,
    I don't think it's a good idea to manage a nas server under wifi connection......but it's own personal choice
    if lsusb command shows your usb wifi key and drivers managed by kernel just please check with some moderator if wpasupplicant conf file is managing the wifi connection ( it's so on my raspberry.......based on Debian ); in this case please find below a configuration that is working for me on my Raspberry:


    ========>/etc/network/interfaces
    auto lo


    iface lo inet loopback
    iface eth0 inet static
    address 192.168.0.14
    netmask 255.255.255.0
    gateway 192.168.0.1


    #auto wlan0
    allow-hotplug wlan0
    iface wlan0 inet manual
    wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
    iface default inet static
    address 192.168.0.11
    gateway 192.168.0.1
    netmask 255.255.255.0
    post-up iwconfig wlan0 power off


    ========>wpasupplicant.conf file


    network={
    ssid="wifinetname"
    scan_ssid=1
    psk="wifipassword"


    # Protocol type can be: RSN (for WP2) and WPA (for WPA1)
    # proto=RSN


    # Key management type can be: WPA-PSK or WPA-EAP (Pre-Shared or Enterprise)
    # key_mgmt=WPA-PSK


    # Pairwise can be CCMP or TKIP (for WPA2 or WPA1)
    # pairwise=CCMP


    # Authorization option should be OPEN for both WPA1/WPA2 (in less commonly used are SHARED and LEAP)
    # auth_alg=OPEN
    }

  • <p><span style="line-height:1.28">[quote='latimeria','http://forums.openmediavault.org/index.php/Thread/5757-USB-wifi-adapter-can-t-connect-AP/?postID=52176#post52176']</span></p>


    <p><span style="font-size:12px"><span style="line-height:1.28">Thanks.</span></span></p>


    <p><span style="font-size:12px"><span style="line-height:1.28">I mean I'am in a </span><span style="font-family:arial">endless loop.</span></span></p>


    <p><span style="font-size:12px"><span style="font-family:arial">I have to connect to internet to install wpasupplicant.</span></span></p>


    <p><span style="font-size:20px"><span style="font-family:arial">I'm wondering WHY in installation can use wifi.after installation can not.</span></span></p>

  • Can't you hook up a network cable temporarily? Or put the OS Disk into another pc with network for the installation of the additional packages?


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!