Results 1 to 10 of 10

Thread: DHCP Error - Laptop not connecting to AP - Please Help

  1. #1

    Default DHCP Error - Laptop not connecting to AP - Please Help

    Hello everybody,

    Ive been using BT for a while now, I am not a noob, yet not an expert either as I have a seriously bad memory ;-) (garbage in/garbage out kind of memory).

    I have been using BT with no problems for a long time, I do run into problems a lot and try to fix them myself by using these forums and Google-Fu the error codes.

    I have hit a brick wall. When I load up BackTrack3 on my USB install (Thanks Balding_Parrot for your USB-HD install tutorial), I usually enter the following to connect to my AP:

    Code:
    bt ~ # ifconfig rausb0 down
    At this point I need to pull out my RT73 Edimax card and insert it again
    bt ~ # macchanger --mac 00:11:22:33:44:55 rausb0
    bt ~ # ifconfig rausb0 up
    bt ~ # iwconfig rausb0 mode managed channel 11 essid "MY_NETWORK" key 1234567890
    bt ~ # dhcpcd rausb0
    It worked all the time, I have not made any alteration to my ap/gateway settings.

    My problem is now it will not connect to my AP, my card see's it, tries to connect to it and then fails. So I ran the command: (to get error details)

    Code:
    bt ~ # wlassistant
    And the output of that command was:

    Code:
    bt ~ # wlassistant
    Loaded application options.
    All interfaces: eth0, rausb0
    Wireless interface(s): rausb0
    Permissions checked.
    DHCP Client: dhcpcd
    All executables found.
    scan: sbin/iwlist rausb0 scan
    Networks found: 3
    ACTION: CONNECT.
    No DHCP client running.
    No pre-connection command specified.
    iwconfig_set: sbin/iwconfig rausb0 mode managed channel 11 key open xxxxxxxxxx essid MY_NETWORK
    iwconfig_ap: /sbin/iwconfig rausb0 ap 00:18:F8:2B:C6:61
    ifconfig_dhcp: /sbin/dhcpcd -nd rausb0
    No DHCP client running.
    CONNECTION FAILED.
    disconnect: /sbin/iwconfig rausb0 mode managed key off ap off essid off
    Application options saved.
    Kernel socket closed.
    I also fired up my other wireless routers and can not even connect to them on either WPA or OPEN. I think it is something to do with my DHCP settings, although I even tried to set my IP and subnet manually - still no successful connection.

    I am running BackTrack 3 Final (no upgrades, except Fast-Track upgrades), I installed it to my 4GB USB datastick/flashdrive with changes. This has only been happening to me this last 10 hours.

    Any ideas?

    Thanks.

  2. #2
    Very good friend of the forum killadaninja's Avatar
    Join Date
    Oct 2007
    Location
    London, United Kingdom.
    Posts
    526

    Default

    No DHCP client running.
    No pre-connection command specified.

    It is telling you there is no dhcp client try

    rm /etc/dhcpc/*
    airmon-ng stop rausb0
    ifconfig rausb0 up
    iwconfig rausb0 ap (bssid)
    iwconfig rausb0 key (wep key)
    dhcpcd rausb0
    Sometimes I try to fit a 16-character string into an 8–byte space, on purpose.

  3. #3

    Default

    Quote Originally Posted by killadaninja View Post
    No DHCP client running.
    No pre-connection command specified.

    It is telling you there is no dhcp client try

    rm /etc/dhcpc/*
    airmon-ng stop rausb0
    ifconfig rausb0 up
    iwconfig rausb0 ap (bssid)
    iwconfig rausb0 key (wep key)
    dhcpcd rausb0
    Hi, thanks for replying. I tried that but it didn't work. I had a DHCP client running, I ran:

    Code:
    "bt ~ # dhclient"
    Tried to gain a DHCP response from the AP, still hit with the same error. It's as if it cant find or see my DHCP settings; even though dhclient is running.

    Any ideas? I have searched many forums for answers but nobody seems to know; on the Ubuntu forms at the end of the thread the OP states "its ok, its working now, don't know how". He doesn't say how he got it working. It's seriously doing my head in, I have even searched my "Linux for Dummies" book [command reference] and I cant even find an answer in there.

    I am still using the rt8187 drivers that came pre-packed with BT3, although I see on the forums here in a few threads that the "Edimax EW-7318US" (rausb0) drivers pre-packed on BT have been having difficulties? Would you recommend that I update my rt8187 drivers? I already uninstalled them and done a "modprobe r8187", still no joy.


    Thanks

    Quote Originally Posted by killadaninja View Post
    No DHCP client running.
    No pre-connection command specified.

    It is telling you there is no dhcp client try

    rm /etc/dhcpc/*
    airmon-ng stop rausb0
    ifconfig rausb0 up
    iwconfig rausb0 ap (bssid)
    iwconfig rausb0 key (wep key)
    dhcpcd rausb0
    Hello, I was off to make a cup of tea. I came back, started repeating the process of trying my best to get connected to my gateway on BT3 when this error got spat all over my screen (filled all my shells, plus a KWrite box loaded up with it too). The Kernel Panicked.:

    Code:
    Message from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: Oops: 0000 [#1]
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: SMP 
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: CPU:    0
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: EIP:    0060:[<00000001>]    Not tainted VLI
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: EFLAGS: 00010202   (2.6.21.5 #4)
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: eax: db080000   ebx: 00000029   ecx: db08773c   edx: db08773c
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: esi: db08050c   edi: db0805a4   ebp: db0805b0   esp: c280bfb4
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: ds: 007b   es: 007b   fs: 00d8  gs: 0000  ss: 0068
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: Process rt73 (pid: 10975, ti=c280a000 task=df68cab0 task.ti=c280a000)
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: Stack: e0cc2229 db080000 00000283 e0cc773c db08773c db080000 00000000 00000000 
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: EIP is at 0x1
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel:        00000000 e0cc18d7 e0ceb83d e0cc1860 c0103c57 db080000 00000000 00000000 
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: Call Trace:
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel:  [<e0cc2229>] StateMachinePerformAction+0x19/0x20 [rt73]
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel:        00000000 00000000 00000000 
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel:  [<e0cc773c>] MlmeHandler+0x16c/0x190 [rt73]
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel:  [<e0cc18d7>] MlmeThread+0x77/0xa0 [rt73]
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel:  [<e0cc1860>] MlmeThread+0x0/0xa0 [rt73]
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel:  [<c0103c57>] kernel_thread_helper+0x7/0x10
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel:  =======================
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: Code:  Bad EIP value.
    
    ssage from syslogd@(none) at Sat Jan 24 23:24:45 2009 ...
    (none) kernel: EIP: [<00000001>] 0x1 SS:ESP 0068:c280bfb4
    Bad EIP value.

    I think, my driver keeps thinking my USB Edimax is unplugged. Maybe this could be the entire reason people are getting these bugs for the Edimax USB within the BT3final distro?

    Any ideas? Would this be whats going wrong? Should I update to the latest drivers for my Edimax?

    I can SCAN for APs, I can see them; but can't connect to anything .

    Thanks in advance

    Update: I have used my new Alfa USB WiFi card to connect to my AP and my other crappy Aps I have for pentesting, it works. So this is making me think that the drivers are SERIOUSLY bad for the Edimax USB WiFi card.

    I will use my Alfa until Backtrack 4 is out, but this error still stands unsolved and would be useful for bug testing or something for the dev's of the rt8187 driver.

    ----------------

    I made a tutorial for getting Compiz to work on a BT3f USB install (since Compiz is showing that its there, but missing text on the xorg.conf file). Compiz worked on the Live DVD, same files used for USB install and when I installed BT3f to the USB Compiz was there, yet it didn't work. I have a fully working xorg.conf file now and will share it with the community once I have the rights to post elsewhere on the forum. (Its for the Intel chipset btw).


    Regards,

  4. #4
    Very good friend of the forum killadaninja's Avatar
    Join Date
    Oct 2007
    Location
    London, United Kingdom.
    Posts
    526

    Default

    Sounds like a syncing problem, just try leaving out the card and inserting it after boot up?
    Sometimes I try to fit a 16-character string into an 8–byte space, on purpose.

  5. #5

    Default

    Quote Originally Posted by killadaninja View Post
    Sounds like a syncing problem, just try leaving out the card and inserting it after boot up?
    Yeah I have tried that several times. I think it might be the drivers as my Alfa works 100%, whereas my Edimax has hiccups (see's Aps/Clients, although can not connect to anything).

    I wonder if any of the Mods would have an idea of whats going on?

  6. #6
    Very good friend of the forum killadaninja's Avatar
    Join Date
    Oct 2007
    Location
    London, United Kingdom.
    Posts
    526

    Default

    Is the card injecting?

    Okay try leaving the adapter out to after boot up then,

    modprobe rt73

    Plug your adapter back in then,

    ifconfig rausb0 up

    iwpriv rausb0 forceprism 1

    iwpriv rausb0 rfmontx 1

    iwconfig rausb0 mode monitor

    airmon-ng start rausb0

    airplay-ng --test rausb0

    If this successfully injects then try,

    rm /etc/dhcpc/*

    airmon-ng stop rausb0

    iwconfig rausb0 up

    iwconfig rausb0 mode managed

    iwconfig rausb0 ap (bssid)

    iwconfig rausb0 key (wep key)

    dhcpcd rausb0

    Leave it 30 seconds and try opening your browser, if this does not work and your sure dhcp is running then yes it is time for a driver upgrade
    Sometimes I try to fit a 16-character string into an 8–byte space, on purpose.

  7. #7

    Default Thanks

    Quote Originally Posted by killadaninja View Post
    Is the card injecting?

    Okay try leaving the adapter out to after boot up then,

    modprobe rt73

    Plug your adapter back in then,

    ifconfig rausb0 up

    iwpriv rausb0 forceprism 1

    iwpriv rausb0 rfmontx 1

    iwconfig rausb0 mode monitor

    airmon-ng start rausb0

    airplay-ng --test rausb0

    If this successfully injects then try,

    rm /etc/dhcpc/*

    airmon-ng stop rausb0

    iwconfig rausb0 up

    iwconfig rausb0 mode managed

    iwconfig rausb0 ap (bssid)

    iwconfig rausb0 key (wep key)

    dhcpcd rausb0

    Leave it 30 seconds and try opening your browser, if this does not work and your sure dhcp is running then yes it is time for a driver upgrade
    Thanks killadaninja, I will try this as soon as my other laptop downloads the file I am currently downloading, then I will boot up BT3 and load in the Edimax. I think this will work, the commands seem promising.

    Cheers mate.

  8. #8
    Very good friend of the forum Virchanza's Avatar
    Join Date
    Jan 2010
    Posts
    863

    Default

    Have you used Wireshark to see if you're able to send and receive frames? First set yourself up manually:

    1: Connect to the Layer 2 network (i.e. Ethernet network)

    iwconfig wlan0 essid CHOCO key 123413421

    2: Give yourself an IP address

    ifconfig wlan0 192.168.1.123 netmask 255.255.255.0

    3: Set your default gateway

    route add default gateway 192.168.1.1

    4: Set your DNS server

    echo "nameserver 208.67.222.222" > /etc/resolv.conf

    Next, just ping the router, and see if Wireshark picks up any traffic:

    ping 192.168.1.1
    Ask questions on the open forums, that way everybody benefits from the solution, and everybody can be corrected when they make mistakes. Don't send me private messages asking questions that should be asked on the open forums, I won't respond. I decline all "Friend Requests".

  9. #9

    Smile

    Quote Originally Posted by killadaninja View Post
    Is the card injecting?

    Okay try leaving the adapter out to after boot up then,

    modprobe rt73...<snip>
    First of all thanks for typing out all that and trying to help me
    I tried the commands that you gave me, no joy with them at all...I am thinking either the card needs new drivers or I have physically broken it.

    I I did break it, it must be a loose 'sma' connector due to the heavy adapter/yagi converter pulling on it all the time...although the card does pick up APs, so it must be the drivers.

    Cheers anyway, I appreciated the help

    Quote Originally Posted by Virchanza View Post
    Have you used Wireshark to see if you're able to send and receive frames? First set yourself up manually:

    1: Connect to the Layer 2 network (i.e. Ethernet network)

    iwconfig wlan0 essid CHOCO key 123413421

    2: Give yourself an IP address

    ifconfig wlan0 192.168.1.123 netmask 255.255.255.0

    3: Set your default gateway

    route add default gateway 192.168.1.1

    4: Set your DNS server

    echo "nameserver 208.67.222.222" > /etc/resolv.conf

    Next, just ping the router, and see if Wireshark picks up any traffic:

    ping 192.168.1.1
    Yeah I have no problem accessing the gateway over the wire, I can still access the gateway using my other wifi card (Alfa 500mW). I don't think the problem is on the gateway as I think my Edimax is either in need of some serious updated drivers or it's been over used. I have been using that Edimax since they were released over a year ago (Maybe even 2, I forget I have gone through about 5 cards over the years).

    Thanks everybody for the support, this forum has always been helpful from the very beginning. I have mainly been a "reader" for about 3 years on these forums and never signed up before this month as my life has been very on edge with all sorts of various real life interruptions - many of you will understand this.

    Again, thanks...it is highly appreciated, nothing went to waste here as now we all know that if this error ever happens to any of us in the future we know what to do

    (Thank God I have my Alfa)!!

  10. #10
    Very good friend of the forum killadaninja's Avatar
    Join Date
    Oct 2007
    Location
    London, United Kingdom.
    Posts
    526

    Default

    Quote Originally Posted by Anti-NewWorldOrder View Post
    (Thank God I have my Alfa)!!
    Aymen, nice to hear appreciation and welcome
    Sometimes I try to fit a 16-character string into an 8–byte space, on purpose.

Posting Permissions

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