LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-04-2003, 09:30 PM   #1
ptwobrussell
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Rep: Reputation: 0
Exclamation "dhclient" paralyzes system


Hello,

After a bit of a struggle, I've gotten a driver to compile for an SMC2635 wireless card (same one for admtek 8211) on Mandrake 9.1. To get things going, here's what I do at the prompt:

-modprobe pcmcia_core
-modprobe yenta_socket
-modprobe ds

That much gets the green light on

-insmod 8211.o

That gets the card's driver initialized and the green light blinking.

When I run iwconfig, I can set the ESSID, key, channel etc. All of these settings are fine, and I can pick up my wireless router's MAC with no problems, but here's where the fuzz comes in. The only way I know of to get an IP address from the access point here in my home network is to type in "dhclient eth1" at the prompt.

Once I do that, everything starts to go all to heck on my system. I can't open any files, I can't bring up a new terminal window, and I can't even shut down sometimes. I have noticed, there are problems stopping "alas" (whatever that is) whenever I can shut down...BUT....

If I keep the same terminal window open that I typed "dhclient eth1" into, I can ping any site I want (like yahoo) or I can even run lynx and start to surf the web. So the connection is good, but something about "dhclient" isn't. If I click on mozilla or anything else, it acts like it's going to start, but doesn't.

Is there a bug with dhclient, is there a better way to get an ipaddress, or what? this is nuts.
 
Old 09-05-2003, 12:36 PM   #2
ptwobrussell
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Ok, so I didn't fix whatever the "dhclient" problem was, but I did do a workaround. I *think* the dhclient problem was something to do with my router constantly sending some information to my machine about ip leases, which caused dhclient to constantly fork new processes and eat up my memory, so that nothing else could run correctly (maybe the TTL was way too short in the device driver or somewhere else?) Don't take that as gospel, but, it's the best stab I have at it.

My workaround was to just manually configure a static ip address. In case anyone wants to know how I did that, here's how:

-first made sure card was working and configured (see original post)

-assigned my machine an available static ip address via "ifconfig". NOTE: make sure you're assigning one that your router will allow. My router allows the first 32 addresses on a particular subnet. ie. any address between x.x.y.1 and x.x.y.32 (netmask 255.255.0.0) would have worked so long as another machine on my network didn't already have it.

-added my router as the default gw since it's the only thing between me and the rest of the net with"route"

-specifically, all I did was:
#ifconfig eth1 x.x.1.3
#route add default gw x.x.0.1

-after that, I was able to ping machines both in my network and out of my network. use the man pages and your router's documentation for more information.
 
Old 10-03-2003, 10:08 AM   #3
gordiannii
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
smc2635 under linux

How did you install the pcmcia card? I am trying
this under Gentoo linux with kernel 2.4.20 but I don't know
whether to use kernel pcmcia support or pcmcia-cs to get the
card working....

I tried both pcmcia supports and the green light goes on, but insmod 8211 gives me: init_module: no such device???

can you tell me how to get this card working?

thank you very much

falk
 
Old 10-04-2003, 10:15 AM   #4
ptwobrussell
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Here's my exact script to that I use to get the card working with comments (the best I know how to describe what each step does).

#! /bin/sh

#these first three lines get the green light on
modprobe pcmcia_core
modprobe yenta_socket
modprobe ds

#this line gets the green light blinking
#you have to successfully compile the driver from www.admtek.com
#for this to be successful

insmod /usr/local/bin/ADM8211/8211.o

#need a brief pause before trying to configure the card
sleep 3

#these are universal card settings by default
iwconfig eth1 channel 6 rate 11M

#thest are my personal settings for a DSL connection, but yours
#should be similar. I use a static IP. Never could get DHCP #working

iwconfig eth1 essid [insert your essid]
iwconfig eth1 key [insert your key]
sleep 1

ifconfig eth1 [insert your IP]
route add default gw [insert your default gw

#--------------------------------------------------------------------
once you have it to where you think it should work try pinging yoruself (127.0.0.1), trying pinging other machines in your network, try pinging your default gw, and finally, try pining sites outside your network.

Cheers,
MR
 
Old 10-05-2003, 09:56 AM   #5
gordiannii
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
ok I get it to blink now....I had to switch to kernel 2.4.18 and the adm8211 1.03. Cool so far.

But when I try to set any of the iwconfig stuff, I does not change anything.
I tried reboot, but no help.

The only thing I can change is the nick in the managed mode and I can switch to ad-hoc mode, where the card finds some strange mac-id, which does not
belong to my router (maybe a neighbour with a wlan card?).

What kernel set up are you using?
 
Old 10-05-2003, 12:13 PM   #6
gordiannii
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
after switching to kernel 2.4.22 and using the latest driver from adm (version 1.05) it worked......
 
  


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
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Essential System Administration" or "UNIX System Administration Handbook"? TGWDNGHN Linux - Newbie 3 07-03-2005 08:27 PM
"User" & "System" CPU load difference JJX Linux - General 3 06-06-2004 01:42 AM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-29-2004 11:18 PM
RH "null" beta system freezes right after printing "INIT" markus1982 Linux - Hardware 0 09-09-2002 03:31 PM

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

All times are GMT -5. The time now is 09:10 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