[KLUG Members] dhcp problem

members@kalamazoolinux.org members@kalamazoolinux.org
Tue, 8 Jan 2002 08:54:18 -0500


Here's my situation:

1) I'm new to Linux

2) Just installed RH 7.2 all packages onto a new pc at home to work with
Linux in an attempt to get Oracle up and running and understand how servers
and networking works in general. I'm going to try to install Oracle 8.1.7
on this box.

3) Would like to get dhcp set up so I can log into this server from my work
laptop that uses dhcp at work

4) The network side of things is working okay - can telnet into the server
when I use a static IP address on the laptop of 192.168.0.2. Here's the
ifconfig from my server named galileo:

[root@galileo etc]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:A0:CC:55:0A:2E
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3996 errors:2 dropped:0 overruns:0 frame:2
          TX packets:712 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          RX bytes:1157152 (1.1 Mb)  TX bytes:68117 (66.5 Kb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:100 errors:0 dropped:0 overruns:0 frame:0
          TX packets:100 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          RX bytes:7108 (6.9 Kb)  TX bytes:7108 (6.9 Kb)

5) I tried configuring a dhcpd.conf file and am getting errors when I run
"dhcpd start":

[root@galileo etc]# ./init.d/dhcpd start
Starting dhcpd: Internet Software Consortium DHCP Server 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html

/etc/dhcpd.conf line 6: range declaration not allowed here.
range
^
Configuration file errors encountered -- exiting
exiting.
                                                           [FAILED]
[root@galileo etc]#

6) Here's my dhcpd.conf file:

# file: /etc/dhcpd.conf
default-lease-time 720;
max-lease-time 350000;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
range 192.168.0.2 192.168.0.5;

7) Since this is a home machine, I'm at work today so it'll be a 12 hour
delay before I can test out any changes

Thanks in advance for any ideas -

Chad Heidema
Holland, MI