Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-15-2004, 03:57 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2004
Location: Seoul
Distribution: slackware
Posts: 10
Rep:
|
slackware 10 dhcpcd problem solved yet?
Hey, I'm really dying to know what is going on here. I have used slackware 9.1 without any problem for a while and recently I have upgraded to slackware 10, which gives me a dhcp problem.
I'm using RealTek RTL8139 card and configured the dhcp using netconfig. After reinstalling slackware three times and sleepless nights I found that rc.inet1 starts dhcpcd OK during booting process, but after I log in network just doesn't work. If I check the network with ifconfig, my eth0 looks OK. When I tried a new rc.inet1 file (short one from tldp.org's DHCP mini HOWTO), then it worked for a couple bootings and stopped working? I also tried to put dhcpcd in rc.local and almost everything I could think of, but it doesn't work.
The only way to use network is to do the following everytime I log in (which I don't want to):
> su
> dhcpcd -k (kill dhcpcd)
> dhcpcd
Then dhcpcd starts and works fine with no problem. I really don't understand how this is possible! I tried FC and Mandrake to check and they worked just fine (But, I want to use slackware!) I found the similar posts in this forum with no solution. If somebody knows what could be a problem, please let us know. I'm willing to try anything now.
Last edited by taek; 08-15-2004 at 06:14 AM.
|
|
|
|
08-15-2004, 07:38 AM
|
#2
|
|
Senior Member
Registered: Oct 2003
Posts: 2,280
Rep: 
|
Quote:
The only way to use network is to do the following everytime I log in (which I don't want to):
> su
> dhcpcd -k (kill dhcpcd)
> dhcpcd
|
You should be able to reproduce the above net effect of those commands by placing this in rc.local:
/sbin/dhcpcd -k
/sbin/dhcpcd
If that doesn't work(not clear whether you already tried it) then something starting after rc.local runs is causing the trouble. If your using kde you can make a little bash script to run those commands(dhcpcd -k and dhcpcd), have it run with suid root permissions and put the script in your ~/.kde/Autostart directory.
|
|
|
|
08-15-2004, 07:59 AM
|
#3
|
|
LQ Newbie
Registered: Aug 2004
Location: Seoul
Distribution: slackware
Posts: 10
Original Poster
Rep:
|
Thanks for a quick reply. I tried to put those two lines in rc.local, but didn't work. I'm not sure what is starting after rc.local. When I didn't use X, it didn't work either (so not startx or gdm I'm using). I thought about writing a short script, but don't know how (and it's best if I didn't have to do that). I would appreciate if you could let me know how to write a script. Thanks again!
|
|
|
|
08-15-2004, 08:22 AM
|
#4
|
|
Senior Member
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,244
Rep:
|
I had a similar problem at one point. Hotplug wanted to load the wrong module for my nic card. It kept loading tulip rather than what mine actually needed. The symptoms were similar to yours. I would have to kill dhcpcd and restart. Sometimes it would just sort of die after a time period. I had to add tulip to the blacklist for hotplug. YMMV.
|
|
|
|
08-15-2004, 10:08 AM
|
#5
|
|
LQ Newbie
Registered: Aug 2004
Location: Seoul
Distribution: slackware
Posts: 10
Original Poster
Rep:
|
Finally I found out my problem! It turns out that dhcpcd was not killed correctly (?) at shutdown. I commented the following second line and added the last line in /etc/rc.d/rc.6 and now it works just fine:
# Try to kill dhcpcd so the DHCP leases can be returned:
#killall -15 dhcpcd 1> /dev/null 2> /dev/null
/sbin/dhcpcd -k
I don't know why the second line doesn't do its job yet, but I don't really care anymore. Thank you for your help!
|
|
|
|
08-15-2004, 10:44 AM
|
#6
|
|
LQ Newbie
Registered: Feb 2004
Location: Puebla, Mexico
Distribution: Fedora Core
Posts: 3
Rep:
|
me too
i alredy installed slackware 10, but it appears a message that say, that appear i have not any ethernet adapter, i use two realtek 8139, and it doesn't work, what sould i do?,
one nic to internet via dhcp
and the another for home net
thanks....
(i have to use mandrake 10 CD, and it works perfect)
|
|
|
|
08-15-2004, 07:01 PM
|
#7
|
|
LQ Newbie
Registered: Aug 2004
Location: Seoul
Distribution: slackware
Posts: 10
Original Poster
Rep:
|
I'm using hotplug (I installed hotplug package, and chmod a+x /etc/rc.d/rc.hotplug) and it is detecting network card correctly (8139too) during the booting process. Or, could it be tcpip package that may not be installed in your system? I'm not sure if this helps.
|
|
|
|
08-16-2004, 12:55 AM
|
#8
|
|
Member
Registered: Oct 2003
Location: Hamilton,ON
Distribution: LFS
Posts: 46
Rep:
|
for dhcp, I use the kernel level autoconfiguration in kernel 2.6.7
Just check the network options.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:00 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|