LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-07-2004, 03:34 AM   #1
tiger3090
LQ Newbie
 
Registered: Dec 2004
Location: Netherlands
Posts: 2

Rep: Reputation: 0
DHCP + Mac address


Hi,

I've just setup 2 dhcp-servers. Everything works fine. But now i want to secure a little bit. I have a list (text-file) with all mac-addresses of our organization.

Is it possible to setup the dhcp-server that only the addresses in the list get an ip-address (not a fixed one by dhcp).

The system is RH Linux 3.0 ES with dhcp-server 3 (i thought).

Kind Regards,

Michiel
 
Old 12-07-2004, 08:13 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
basically you only want known systems to be given an address, but that address doesn't need to be static or anything?

define a group in bind:
Code:
       group {
         host ncd1 { hardware ethernet 0:c0:c3:11:90:23; }
         host ncd4 { hardware ethernet 0:c0:c3:91:a7:8; }
         host ncd8 { hardware ethernet 0:c0:c3:cc:a:8f; }
       }
and then in your address pool, set "deny unknown clients"
Code:
pool {
           option domain-name-servers ns1.example.com, ns2.example.com;
           max-lease-time 28800;
           range 10.0.0.5 10.0.0.199;
           deny unknown clients;
         }
i believe this is basically what you are after. check the dhcpd.conf manpage for more details
 
  


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
Questions on DHCP Filtering via MAC address brainee28 Linux - Networking 1 02-03-2005 02:11 PM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM
MAC address? DHCP - Home Network ntwkthtbtch Linux - Newbie 2 08-24-2004 07:08 AM
ISC DHCP Server MAC Address dlucas10 Linux - Networking 1 05-25-2004 05:49 PM
MAC Address Encap Vs DHCP zooma Linux - Networking 0 11-21-2001 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:33 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
Open Source Consulting | Domain Registration