LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-01-2012, 02:37 AM   #1
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Rep: Reputation: 32
dhcpd, read into a file for defining ip address


I have a file that contained a list of allowed mac addresses and its IP with ";" separator between mac and the IP address (/etc/dhcpd/src_group1)

how to configure dhcpd to look into that file before giving the IP address? ..

any advise would be greatly appreciated..

many thanks in advance

Regards
Winanjaya
 
Old 02-01-2012, 12:48 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I don't think dhcpd will do that for you, however, it shouldn't be too difficult to transform what you have into a proper dhcpd configuration file. It sounds like you want to assign IPs uniquely keyed to MACs, and the dhcpd config file accommodates this nicely. For example (using ISC DHCP):
Code:
host yourdhcpclientname {
    hardware ethernet   00:e0:66:00:df:f7;
    fixed-address       192.168.0.2;
    next-server         192.168.0.1;
}
Consult the dhcpd docs for full details.

--- rod.

Last edited by theNbomr; 02-01-2012 at 12:50 PM.
 
  


Reply



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
Blocking dhcpd address lease for specific MAC address kulman Linux - Server 8 03-30-2013 01:51 PM
Defining new dhcpd options failed zelycorn Linux - Software 5 07-11-2011 08:04 AM
how to do dhcpd to give a certain ip address based on mac address robertjinx Linux - Server 11 11-27-2010 05:57 AM
Defining IP address and host name to an old Red Hat distribution Micik Red Hat 2 06-25-2009 12:48 AM
help with dhcpd.config file to assign address's to clients on another subnet ccammack Linux - Networking 2 10-03-2005 09:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:00 AM.

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
Open Source Consulting | Domain Registration