dhdpcd Hanging
I recently setup my laptop for it's ipw2200 chipset. Everything seems to run fine without errors until I run dhcpcd, wich hangs for about 30 seconds and then returns me to a prompt without any output. Iwconfig returns me the essid,ap, and every value seems good. I then run ifconfig eth0(wlan device) up.(Fine again). But when I run dhcpcd, it seems fine but takes a while and simply returns me to a prompt and leaving me without an IP address. I am running slackware 10.1.0 on a Sonoma platform laptop.
Thanks |
|
KERNEL lock-up
Update...
I noticed that there was an unknow symbol when compiling wlan related modules in the kernel. It was crypto_alloc_tfm. So I did some googling and figured out I needed to compile cryptoAPI in the kernel, so thats what I did. It did solve the unknow symbols isue but now instead of dhcpcd hanging(that should have been in my title), I now experience a kernel lock-up. Please anyone... any pointers would help |
Okay, I recompiled the kernel with other options and therefore my kernel does not freeze when I run dhcpcd. I'm back with the same problem.
Here is the output of dmesg | grep ipw2200: ipw2200: no version for "ieee80211_wx_get_encodeext" found: kernel tainted. ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.0.6 ipw2200: Copyright(c) 2003-2004 Intel Corporation ipw2200: Detected Intel PRO/Wireless 2915ABG Network Connection dmesg | grep eth0: eth0: no IPv6 router present eth0: no IPv6 router present I reinstalled the ieee80211 package without any results. I seemed to have compiled cleanly. Any input would be appreciated. |
I think by default dhcpcd doesn't return anything unless you tell it to on the command line. If you include the -d flag it is a little more verbose, but not a lot. I know on my system sometimes I have to run dhcpcd a couple of times before it picks up an IP address.
If dhcpcd really isn't working, you could always just set a static IP address with ifconfig and route. |
Actually dhcpcd works on my gigabit ethernet device, so I don't beleive that is the problem. The line:
ipw2200: no version for "ieee80211_wx_get_encodeext" found: kernel tainted. intrigues me. I can not find what it means, nor how to get rid of it. I did try to set a static address without any successs. thanks you |
Quote:
The "ieee80211" bit intrigues me as well. I did a little googling and the only thing I came up with is a long, rambling thread at the Gentoo forums. The condensed version is that people who were seeing that error message were using a 2.6.13 kernel where apparently the ipw drivers have been added to the kernel source (I'm not using a 2.6.13 kernel so I can't check this). The solution was to NOT use the kernel source, but instead use the ipw drivers from the project pages. Setting the static address should be pretty foolproof as long as you have functional drivers. Could you elaborate a bit more on how you set up a static IP? |
ok, il give you an example of what i did. I first configured my router to give the wireless's device mac a static adress during dhcp. I then ran:
ifconfig eth0 192.168.0.103 netmask 255.255.255.0 broadcast 192.168.0.255 for ifconfig eth0 I get : eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx inet addr:192.168.0.103 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::212:f0ff:fe3e:7935/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:893 errors:0 dropped:26 overruns:0 frame:0 TX packets:52 errors:0 dropped:0 overruns:0 carrier:1 collisions:0 txqueuelen:1000 RX bytes:314771 (307.3 Kb) TX bytes:38307 (37.4 Kb) Interrupt:50 Base address:0xe000 Memory:c8006000-c8006fff I can ping the router but all other hosts are said unaccessible: ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=127 time=1.54 ms 64 bytes from 192.168.0.1: icmp_seq=2 ttl=127 time=1.53 ms 64 bytes from 192.168.0.1: icmp_seq=3 ttl=127 time=1.54 ms 64 bytes from 192.168.0.1: icmp_seq=4 ttl=127 time=1.54 ms ping google.com connect: Network is unreachable Here is my iwconfig output for reference: eth0 IEEE 802.11g ESSID:"jpapp" Nickname:"jaylap" Mode:Managed Frequency:2.437 GHz Access Point: xx:xx:xx:xx:xx:xx Bit Rate=54 Mb/s Tx-Power=20 dBm Retry limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=85/100 Signal level=-45 dBm Noise level=-90 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:26 Missed beacon:1 When I log on the router I can see where the wireless connects but I recently noticed that when run dhcpcd, it is actualy interpreted as a spoof attack. Here's the output: Sep/11/2005 17:50:27 Spoof IP(192.168.0.103), Spoof Port(60489) Sep/11/2005 17:50:27 Spoof Attack fromd MAC(xx-xx-xx-xx-xx-xx) Detect, Sep/11/2005 17:50:27 Target IP(192.168.0.1), Target Port(80) Packet Dropped The outputline about the kernel being tainted is gone since last time I posted. I hope this helps :) |
You missed a step with the static configuration. Everything you did was correct (although I'm not sure what "configured my router to give the wireless's device mac a static adress during dhcp." really means) but you need to set a gateway as well. That is done with the route command:
route add default gw 1.2.3.4 and replace 1.2.3.4 with the IP address of your router. You may also need to edit your /etc/resolv.conf file and add your ISP's DNS servers to the list. You do that by adding a line for each DNS that looks like this: nameserver 1.2.3.4 Only use the actual IP address of your ISP's nameservers. You should be able to find those IP address either from your router or your ISP. |
Solved!
Thanks a lot buddy, it sure worked. You are now my new networking god!
:D |
All times are GMT -5. The time now is 01:55 AM. |