Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-17-2004, 01:55 PM   #1
Registered: Sep 2003
Distribution: Just upgraded to Slackware 10.0
Posts: 91

Rep: Reputation: 15
DHCP server problems -- can't get my box to work as a router

I am trying to turn a slackware box into a router and general purpose server. I have gotten stuck setting up the DHCP server.

The box has 3 ethernet cards, Intel EtherExpress Pro 10/100 PCIs. eth0 is connected to my cable modem, and eth1 and eth2 are connected via crossover cables to the other computers on my network.

I set up my Slackware /etc/rc.d/rc.inet1.conf to the following:

# Configuration for eth0:

#configuration for eth1

# configuration for eth2

I the created the dhcpd.conf file in /etc/ to have the following values:

max-lease-time 172800;
default-lease-time 86400;
ddns-update-style ad-hoc;
option subnet-mask;
option broadcast-address;
option routers dev eth0;
# where is the ip of my 3 domain name
# servers, which I found in /etc/resolv.conf
option domain-name-servers,,;
subnet netmask {

subnet netmask {

When I run:

/sbin/dhcpcd -d eth1
/sbin/dhcpcd -d eth2

It spits out:

MAC ADDRESS 00:00:00

Where 00:00:00 is the actual MAC address of the interface.

Then, inexplicably, it dies. ps -aux | grep dhcpcd doesn't show any running servers -- so it didn't fork into the background -- and it takes the interface down -- i.e. if I /sbin/ifconfig the interface is no longer up with the IP address it's assigned. I've checked /var/log/messages and there's no debug info.

Anybody know where I'm screwing up?

Many thanks in advance!

Old 03-21-2004, 07:19 AM   #2
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Some programs need you to pass an argument before they load as a daemon. For instance /sbin/dhcpd -daemon eth1 eth2.

<edit> Sorry I had to remove the part of my post that makes me look really stupid.

Last edited by /bin/bash; 03-21-2004 at 07:27 AM.


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
Best distro for router/server box antken Linux - Distributions 3 05-26-2005 09:20 PM
router box - unable to configure DHCP server BrianNJ Linux - Networking 1 06-09-2004 08:11 AM
Can't get my slackware router box to work rude_reality Linux - Networking 3 02-04-2004 01:50 PM
static ip machine attached to dhcp router? will this work? herron Linux - Networking 7 04-16-2003 07:52 PM
RH8 as router for win98 box - DHCP question d33pdream Linux - Networking 13 03-14-2003 04:49 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:55 AM.

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