Hi All,
I am trying to configure dhcp server on a linux host with eth0:1 which is using 192.168.1.10
I also want to restrict my DHCP client to just one Host adcnew222.
DHCP Server Host name - adcnew111
DHCP client name - adcnew222
My conf file is as follows on dhcp server :
In /etc/dhcpd.conf
=======
ddns-update-style interim;
ignore client-updates;
interface eth0:1;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.128 192.168.1.254; # Range of IP addresses to be issued to DHCP clients
option subnet-mask 255.255.255.0; # Default subnet mask to be used by DHCP clients
option broadcast-address 192.168.1.255; # Default broadcastaddress to be used by DHCP clients
option routers 192.168.1.10; # Default gateway to be used by DHCP clients
option domain-name "us.domain.com";
option domain-name-servers 144.20.110.70, 138.22.202.15, 130.53.242.41; # Default DNS to be used by DHCP clients
default-lease-time 21600;
max-lease-time 43200;
host adcnew222 {
adcnew222.us.oracle.com;
hardware ethernet 00:16:3E:48:E1:3E;
}
}
=====
Please correct me on what i am doing wrong
Thanks,
Sriram
---------- Post updated at 06:43 AM ---------- Previous update was at 06:25 AM ----------
One quick question , how to start dhcp server to listen on eth0:1
---------- Post updated at 07:49 AM ---------- Previous update was at 06:43 AM ----------
Hi Guys ,
I am now getting :
dhcpd eth0:1
Internet Systems Consortium DHCP Server V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit
DHCP | Internet Systems Consortium
Wrote 0 leases to leases file.
No subnet declaration for eth0:1 (0.0.0.0).
** Ignoring requests on eth0:1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth0:1 is attached. **
Not configured to listen on any interfaces!
If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.
If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the
dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.
Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.