Click to See Complete Forum and Search --> : DHCPD for home lan


Kaazool
04-04-2002, 06:12 PM
I'm trying to get dhcpd to run on eth1 nic in Progeny/Debian. It is a linksys card. So I did the update-modules->modprobe thing and the
module gets loaded at boot:lsmod
Module Size Used by
parport_probe 3632 0 (autoclean)
parport_pc 7536 1 (autoclean)
lp 6192 0 (autoclean) (unused)
parport 7968 1 (autoclean) [parport_probe parport_pc lp]
tulip 30384 1 (autoclean)
mousedev 3776 0 (unused)
es1371 26112 0
soundcore 3056 4 [es1371]
ide-scsi 7728 0
3c509 6816 1

I also modified /etc/network/interfaces:

### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

auto lo eth0

# The loopback interface
iface lo inet loopback

# The ethernet interface, configured by etherconf
iface eth0 inet dhcp
hostname c1850084-a


### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.

# Second ethernet interface
auto eth1

iface eth1 inet static
address 192.168.x.1
netmask 255.255.255.0
#gateway 192.168.x.1
broadcast 192.168.x.255

As per the instructions in the mini-howto I then added to the route tables the 255.255.255.255 route:route -e
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
255.255.255.255 * 255.255.255.255 UH 0 0 0 eth1
192.168.x.0 * 255.255.255.0 U 0 0 0 eth1
12.245.168.0 * 255.255.254.0 U 0 0 0 eth0
default 12-245-168-1.cl 0.0.0.0 UG 0 0 0 eth0

Oh and I made sure my dhcpd.conf was right:
# /etc/dhcpd.conf
default-lease-time 6000;
max-lease-time 72000;
option broadcast-address 192.168.x.255;
option broadcast-address 192.168.x.254;
option subnet-mask 255.255.255.0;
options domain-name-servers 63.240.x.x, 204.127.x.x;

subnet 192.168.x.0 255.255.255.0 {

range 192.168.x.20 192.168.x.200;
options domain-name-servers 63.240.76.4, 204.127.198.4;
options broadcast-address 192.168.x.255;
default-lease-time 6000;
max-lease-time 72000;
}

The DNS entries are the ones from /etc/resolv.conf that ATTBI gives me.

But when I run /usr/sbin/dhcpd eth1 -d -f I get nothing: I mean it doesn't even go to the foreground in the terminal. ps -ef | grep "dhcpd" shows that it isn't running.

Clues? I'm really at wits end.

jumpedintothefire
04-04-2002, 06:49 PM
try changing from:
subnet 192.168.x.0 255.255.255.0 {

to:

subnet 192.168.x.0 netmask 255.255.255.0 {