LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 09-09-2005, 05:17 PM   #1
jplev22
Member
 
Registered: Dec 2003
Location: New Brunswick, Canada
Distribution: Debian 10 Buster
Posts: 85

Rep: Reputation: 16
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

Last edited by jplev22; 09-10-2005 at 11:59 AM.
 
Old 09-09-2005, 07:18 PM   #2
jplev22
Member
 
Registered: Dec 2003
Location: New Brunswick, Canada
Distribution: Debian 10 Buster
Posts: 85

Original Poster
Rep: Reputation: 16


Last edited by jplev22; 09-10-2005 at 12:00 PM.
 
Old 09-10-2005, 11:57 AM   #3
jplev22
Member
 
Registered: Dec 2003
Location: New Brunswick, Canada
Distribution: Debian 10 Buster
Posts: 85

Original Poster
Rep: Reputation: 16
Angry 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
 
Old 09-10-2005, 05:24 PM   #4
jplev22
Member
 
Registered: Dec 2003
Location: New Brunswick, Canada
Distribution: Debian 10 Buster
Posts: 85

Original Poster
Rep: Reputation: 16
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.
 
Old 09-11-2005, 09:09 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
Old 09-11-2005, 01:21 PM   #6
jplev22
Member
 
Registered: Dec 2003
Location: New Brunswick, Canada
Distribution: Debian 10 Buster
Posts: 85

Original Poster
Rep: Reputation: 16
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
 
Old 09-11-2005, 03:43 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
ipw2200: no version for "ieee80211_wx_get_encodeext" found: kernel tainted.
It looks to me like there are two things going on with that message. The "kernel tainted" bit is easy. That just means that the ipw2200 driver your using isn't using the same open source license as the kernel. No biggie.


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?
 
Old 09-11-2005, 04:59 PM   #8
jplev22
Member
 
Registered: Dec 2003
Location: New Brunswick, Canada
Distribution: Debian 10 Buster
Posts: 85

Original Poster
Rep: Reputation: 16
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 thrff Fragment thrff
Encryption keyff
Power Managementff
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
 
Old 09-12-2005, 06:54 AM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
Old 09-12-2005, 02:30 PM   #10
jplev22
Member
 
Registered: Dec 2003
Location: New Brunswick, Canada
Distribution: Debian 10 Buster
Posts: 85

Original Poster
Rep: Reputation: 16
Thumbs up Solved!

Thanks a lot buddy, it sure worked. You are now my new networking god!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Timing issues eagle683 Programming 4 06-01-2005 01:35 PM
kudzu Keeps Timing Out timswim78 Linux - Software 1 02-19-2005 01:11 PM
timing a function saajii Programming 1 10-25-2004 02:37 AM
mencoder timing delos Linux - Software 1 09-27-2004 02:24 PM
timing in c++ deveraux83 Programming 2 04-20-2004 05:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration