Help on DHCP


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help on DHCP
# 1  
Old 10-17-2011
Help on DHCP

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.
# 2  
Old 10-17-2011
Dummy check : copy/paste the output of "ifconfig eth0:1". Alternatively, run "ip addr" (but ignore this if it doesnt work)
# 3  
Old 10-17-2011
Unless you need a large-scale dhcp server I don't see any need to torture yourself with ISC DHCPD, dnsmasq has simpler configuration.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Dhcp

I have a DHCP thing on my HP printer. How can I find information on numbers for that? (2 Replies)
Discussion started by: teak
2 Replies

2. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | 192.168.99.1 | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies

3. IP Networking

Can't get DHCP IP

Dear Experts, I have a TI DM8148 EVM board REV C, the EZSDK5.05 SW package, and DVRRDK1.09 SW package. EZSDK5.05, DVRRDK1.09 both use Linux2.6.37, however, there are some modifications between these two kernels. When I use uImage of DVRRDK1.09 to boot up EVM board, this board can be given a... (0 Replies)
Discussion started by: oobin168
0 Replies

4. IP Networking

dhcp

can I request for an ipaddress through dhcp client by sending ipaddress as input during the invokation of dhcpclient so that it requests the server for the same,instead of depending on the configuration file . (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies

5. Solaris

DHCP help

Can someone help me with this please. I am new to this: I am trying to install Solaris 8 over the network using my DHCP. After I type the comman: ./add_install_client -d -e 8:0:20:7e:97:51 I would get something like this: cleaning up preexisting install client "8:0:20:7e:97:51"... (0 Replies)
Discussion started by: aliban83
0 Replies

6. UNIX for Advanced & Expert Users

Dhcp

Last question for today!! :rolleyes: In what file does the DHCP server keep its list of leases? THANKS!!! :) Maria from Maria (2 Replies)
Discussion started by: marjeg
2 Replies

7. UNIX for Dummies Questions & Answers

Dhcp

HI, New to Unix and I inherited a network that runs DHCP in manual configuration mode. Basically, in order for a machine to get an IP it has to have an entry in dhcpd.conf with its MAC address mapped to a hostname (the hostname then maps to an IP address listed in the DNS db file). If there is... (2 Replies)
Discussion started by: NJay
2 Replies

8. UNIX for Advanced & Expert Users

Dhcp

Hi you all. I'm trying to enable DHCP in a Sun Utra 5 runing Solaris 8 but during the boot process it sends me the message : "Device not in appropiate status" Do anyone have enabled DHCP on solaris 8? Any Procedure? The DHCP server is an NT I guess. (2 Replies)
Discussion started by: alex blanco
2 Replies

9. UNIX for Dummies Questions & Answers

Dhcp

When using DHCP how can I can my hostname. I vi all the hosts file and if still didn't work. So now my hostname is unknown and I want to change it. So if anyone out there can help me. Thank You (6 Replies)
Discussion started by: aojmoj
6 Replies

10. IP Networking

Dhcp

Hello all, I have this Intel Pentium 233/128 running Solaris 8. I also have a dhcp/router/dns running SuSElinux 7.2.(Sorry if it is out of topic here) My problem is that the Solaris box when it tries to configure the interface (elxl0) via dhcp it fails. It appears, according to the... (1 Reply)
Discussion started by: jdevarie
1 Replies
Login or Register to Ask a Question