LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-28-2011, 12:29 PM   #1
mandyapenguin
Member
 
Registered: Nov 2011
Location: India
Distribution: RedHat, Cent OS, Fedora, Debian, Ubuntu
Posts: 106

Rep: Reputation: Disabled
Fixing MAC with particular IP in dhcpd.conf


Hi..everybody,
I am using ubuntu 11.04 and configured dhcp server. I want to reserve approximately 40 systems with specific IP address. I fixed MAC and IP in the dhcpd.conf file as below
Code:
host username {
  hardware ethernet 08:00:27:f2:5d:88;
  fixed-address 192.168.0.200;
}
host username {
  hardware ethernet 00:E0:4F:D9:19:50;
  fixed-address 192.168.0.225;
}
host username {
  hardware ethernet 08:00:27:FC:5D:55;
  fixed-address 192.168.0.227;
}
host username {
  hardware ethernet 08:00:27:21:A7:2D;
  fixed-address 192.168.0.230;
It is fine, now our dhcp server is able to assign only particular IP with particular MAC address. But in future if the time comes to fix the IPs with particular MACs for whole subnet then the reservation entries will be going very long in dhcpd.conf file.
So it would be much better if I could show this entries in a file. So is there any way do this?
 
Old 11-28-2011, 05:38 PM   #2
ccolumbu
Member
 
Registered: Oct 2009
Posts: 37

Rep: Reputation: 4
I did a quick google search for "dhcpd how to include a config file"

I found a link to the man page at:
http://linux.die.net/man/5/dhcpd.conf

It indicates you can include a file like so:
include "/etc/dhcpd.master";

Please try google yourself in the future.
 
  


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
Delete leases from dhcpd.leases when remove a subnet from dhcpd.conf phongnh Linux - Server 2 10-12-2010 05:49 AM
How to re-invoke dhcpd after changes were made to dhcpd.conf file. Azazwa Linux - Newbie 3 03-30-2009 05:44 AM
/etc/dhcpd.conf or /ltsp/dhcpd.conf ? maxsanders Ubuntu 1 07-07-2007 07:32 AM
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 11:32 AM
dhcpd.master or dhcpd.conf rickg Linux - Networking 0 04-11-2002 04:34 PM


All times are GMT -5. The time now is 04:24 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration