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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-09-2006, 01:26 PM
|
#1
|
Member
Registered: Mar 2006
Distribution: Slackware since 1997
Posts: 89
Rep:
|
network init script bug?
I have what may be a possible bug in Slackware network init scripts, the result being multiple dhcp clients for a single interface. I came across this while trying to debug a named issue at boot, and have not resolved either problem. I have 4 machines running Slackware, 3 on 10.2, 1 on 10.1.
2 of the 10.2, and the 10.1 machines show multiple dhcpcd clients running for a single interface. 2 of those boxes have two nics, with eth0 being dhcp, and eth1 being statically assigned. All machines were recently upgraded to 2.6.16 from 2.4.x, and all are kept up to date patch-wise. I don't recall if the multiple dhcp client for one interface issue showed up under 2.4.x, so I don't know if this is a kernel issue, or an rc.inet1 script bug...
Anyone else experience the multiple dhcp client for a single interface issue, or know of a fix?
This machine has two nics, eth1 is static IP:
root@dev:~#cat /etc/slackware-version && ps ax|grep dhcp|grep -v grep
Slackware 10.2.0
1241 ? S<s 0:00 /sbin/dhcpcd -t 30 -R -d eth0
1245 ? Ss 0:00 /sbin/dhcpcd -t 30 -R -d eth0
This machine has one nic:
root@ws:~# cat /etc/slackware-version && ps ax|grep dhcp|grep -v grep
Slackware 10.2.0
1460 ? S<s 3:02 /sbin/dhcpcd -d -t 60 eth0
1464 ? Ss 1:22 /sbin/dhcpcd -d -t 60 eth0
This machine has one nic:
root@daw1:/boot# cat /etc/slackware-version && ps ax|grep dhcp|grep -v grep
Slackware 10.2.0
1344 ? S<s 0:00 /sbin/dhcpcd -d -t 10 eth0
(The only odd one of the 4 that seems to work correctly, diffing rc.inet1 with the other 10.2 boxes revealed nothing untoward)
This machine has two nics, eth1 is static IP:
root@rdb:/etc# cat /etc/slackware-version && ps ax|grep dhcp|grep -v grep
Slackware 10.1.0
1223 ? S<s 0:00 /sbin/dhcpcd -R -d -t 10 eth0
1232 ? Ss 0:00 /sbin/dhcpcd -R -d -t 10 eth0
This last machine I've added lines to rc.inet1 at the bottom of the script to start a dhcp server on eth1, and network init seems to start the dhcp server twice, which made me think there's a problem in the logic or for loop used by rc.inet1, but as I've mentioned above, this all seems to have started when moving from 2.4.x kernel to 2.6.x
Thanks
|
|
|
05-09-2006, 04:25 PM
|
#2
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
you could look at the logger message in /var/log/messages
to see if they are started at the same time.
( you'll need the log from the time the pc booted)
if so, the script might start it twice.
( don't know if that's possible).
egag
|
|
|
05-09-2006, 05:05 PM
|
#3
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
I am running Slackware current with kernel 2.6.12, and I only see one DHCP process for my NIC. I don't have any machines running straight 10.2 to test on, though.
Though this topic does remind me of an apparent DHCP bug I saw in Slackware current on my laptop. At shutdown, I would sometimes get a few errors saying something like "Cannot execute /etc/dhcpc/dhcpcd.exe: permission denied".
|
|
|
05-10-2006, 06:45 PM
|
#4
|
Member
Registered: Mar 2006
Distribution: Slackware since 1997
Posts: 89
Original Poster
Rep:
|
Thanks for responding, but none of this helps, perhaps I'll look elsewhere....
|
|
|
05-10-2006, 06:59 PM
|
#5
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Quote:
Originally Posted by MS3FGX
Though this topic does remind me of an apparent DHCP bug I saw in Slackware current on my laptop. At shutdown, I would sometimes get a few errors saying something like "Cannot execute /etc/dhcpc/dhcpcd.exe: permission denied".
|
I get thesame thing, on occasion. Not always, but about 80% of the time.
Looking into the rc.inet1 ans rc.inet1.conf files to resolve a different issue, also. Get a "eth_up" error too.
|
|
|
05-11-2006, 01:43 AM
|
#6
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Quote:
Though this topic does remind me of an apparent DHCP bug I saw in Slackware current on my laptop. At shutdown, I would sometimes get a few errors saying something like "Cannot execute /etc/dhcpc/dhcpcd.exe: permission denied".
I get thesame thing, on occasion. Not always, but about 80% of the time.
|
I have a working set of files that you can dump into the /etc/dhcpc/ directory at http://www.slackware.com/~alien/dhcpc/
Quote:
Looking into the rc.inet1 ans rc.inet1.conf files to resolve a different issue, also. Get a "eth_up" error too.
|
That sounds like a messed-up upgrade from Slackware-10.1 ... or an installed 3rd party package that overwrote rc.inet1 perhaps? The "eth_up" function call was present in rc.inet1 until slackware 10.2 where it got replaced with "if_up".
Eric
|
|
|
05-11-2006, 01:59 AM
|
#7
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
No, Eric, straight from your rc.inet1 ,rc.inet1.conf, rc.wireless, and rc.wireless.conf files....
I'm gonna look into it, see what happened, but this is a 'clean' install from 'current', never had 10.1 even waving nearby....
|
|
|
05-11-2006, 02:03 AM
|
#8
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Just looked at rc.inet1, and lo and behold, something put "eth1 up" in there....
A mystery.....Cleaned it out. Now hunky dory for that....Now for dhcpcd weirdness at init 6....
|
|
|
05-11-2006, 02:08 AM
|
#9
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
If only I could remember where I saw it mentioned before... there is a 3rd party package that edits rc.inet1 when you install it, and writes eth_up in there. Can you check
Code:
ls -lrt /var/log/packages
to see what you installed after slackware-current? Must be a network related package. A wireless network manager perhaps?
Eric
|
|
|
All times are GMT -5. The time now is 03:57 AM.
|
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
|
|