LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 03-17-2004, 01:55 PM   #1
KingofBLASH
Member
 
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:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

#configuration for eth1
IPADDR[1]="192.168.0.1"
NETMASK[1]="255.255.255.255"
USE_DHCP[1]="no"
DHCP_HOSTNAME[1]=""

# configuration for eth2
IPADDR[2]="192.168.1.1"
NETMASK[2]="255.255.255.255"
USE_DHCP[2]="no"
DHCP_HOSTNAME[2]=""

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 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers dev eth0;
# where 1.1.1.1 is the ip of my 3 domain name
# servers, which I found in /etc/resolv.conf
option domain-name-servers 1.1.1.1, 1.1.1.1, 1.1.1.1;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.10 192.168.0.200
}

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.200
}

When I run:

/sbin/dhcpcd -d eth1
or
/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!

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

Rep: Reputation: 46
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.
 
  


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
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


All times are GMT -5. The time now is 01:08 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration