LinuxQuestions.org
Help answer threads with 0 replies.
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 08-22-2013, 04:09 AM   #1
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Rep: Reputation: 1
Dhcp server


Hi

i have dhcp server installed on centos , i bind one address to ip but i want to bind 100 users ip to their mac address respectively ,it is possible ? if yes then mac binding may result in any bad performance of server like slow performance as it i bind 100 user mac to ip

AMar
 
Old 08-22-2013, 05:33 AM   #2
NM04
Member
 
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 240

Rep: Reputation: 14
amartik,
yes you can bind 100 users to static IP address provided you have their MAC address. MAC binding should not result in any performance degradation but you should make sure that you have the minimum required h/w to handle that many requests at a time.

Example :: host apex {
option host-name "apex.example.com";
hardware ethernet 00:A0:78:8E:9E:AA;
fixed-address 192.168.1.4;
}

for more information check centos documentation here.

cheers,
nm
 
Old 08-22-2013, 06:05 AM   #3
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi
Thanks for reply , what is exact hardware required for same can you pls explain
 
Old 08-22-2013, 09:51 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by amartlk View Post
Hi
Thanks for reply , what is exact hardware required for same can you pls explain
As you've been asked several times, you need to SPELL OUT YOUR WORDS. And no, no one can tell you what 'exact hardware' you need, since you don't tell us anything about your environment. Any basic, low-end server should be easily able to handle MANY DHCP connections.
 
Old 08-23-2013, 01:58 AM   #5
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi guru

thanks for reply, i am now testing it on desktop i need to build up new centos dhcp server for this hence i ask about hardware
 
Old 08-23-2013, 02:25 AM   #6
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
so do you mean 100 desktop's!! so what actually these desktop's are meant for or serving ? Since you asked for suggestions on 'hardware' and thats what TB0ne asked in his comment #4 refering 'environment'.

Always describe with proper details when you are asking a question, ask in a manner everyone should understand this is what i always recommend.
 
Old 08-23-2013, 04:21 AM   #7
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Thanks for reply

i am using DHCPD version 3.03 on centos5.3. I have a typical requirement, in which i want my dhcp server to serve requests only those clients whose mac id is enter in dhcp server i.e in dhcpd.conf file. if mac id is not in dhcpd.conf then it will not get ip from dhcp server ,Is there a way to achieve this?.
 
Old 08-23-2013, 06:03 AM   #8
NM04
Member
 
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 240

Rep: Reputation: 14
I think for this you have to manually configure dhcpd.conf for each host. For example ::

host leaf {
option host-name "leaf.example.com";
hardware ethernet 00:B0:64:8E:9E:AA;
fixed-address 192.168.1.4;
}

the host leaf declaration specifies that the network interface card with the MAC address 00:B0:64:8E:9E:AA always receives the IP address 192.168.1.4. For more information refer to centos docs here.

cheers,
nm
 
Old 08-23-2013, 06:36 AM   #9
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

if i bind any mac id to some ip then the respective pc will get same ip , i want whose mac id entry is in dhcp should get ip and other whose entry is not in dhcp will not get ip until his mac id is entered in dhcp i.e total mac based filtering
 
Old 08-23-2013, 07:48 AM   #10
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Rep: Reputation: 55
Try following this thread that I found from Google:

http://forum.pfsense.org/index.php?topic=45596.0
 
Old 08-23-2013, 08:37 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by amartlk View Post
Hi guru
thanks for reply, i am now testing it on desktop i need to build up new centos dhcp server for this hence i ask about hardware
And hence you got the answer "Pretty much any server will be easily able to handle this". DHCP is not resource intensive. And, since you've already got it running, it should be a VERY simple thing for you to actually TEST IT, to see what kind of load you get, wouldn't it?? You've been a member here now for THREE YEARS...shouldn't you be able to test things and read man pages by now?

Did you try to read the dhcpd.conf man page?? See the examples?? Address pools are what you're after, and even a brief Google search would have turned up lots, even with sample configs, like this:
Code:
host myhost1 { hardware ethernet 0:c0:c3:88:2d:81; }
 host myhost2 { hardware ethernet 0:c0:c3:88:2d:82; }

  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;
  }
Reading the configuration options (such as the allow and deny directives), is a good point to start. And another question would be...why bother? This is NOT going to provide you any security, and only make network administration harder for whoever gets stuck with it. EVERY TIME you replace a NIC in a machine, or add a new printer, you'll have to monkey around with your DHCP server to add/remove addresses. And anyone who wants to get an unauthorized device on the network only has to look at one that's working, and manually enter the address/netmask. DHCP is nothing but a helper.
 
Old 08-24-2013, 06:22 AM   #12
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Thanks guru it works
but it really increase network administration harder i make following entries in dhcpd.conf

host amar {
hardware ethernet BC:KK:C5:B3:9T:C4;
fixed-address 192.12.1.56;
}

host simple {
hardware ethernet 00:99:18:KK:SQ:XE;
fixed-address 192.12.1.57;
}


SO FOR 100 desktop i have to make such 100 entries in dhcpd.conf file

any alternative for same
 
Old 08-24-2013, 11:04 AM   #13
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
Quote:

SO FOR 100 desktop i have to make such 100 entries in dhcpd.conf file
Yes indeed, you have to and as the post above has already illustrated, it is not advisable untill you have very specific need to do it, every time you replace a NIC you have to bug into the dhcp conf file to replace te mac address.
 
Old 08-24-2013, 01:35 PM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by amartlk View Post
Thanks guru it works
but it really increase network administration harder i make following entries in dhcpd.conf

host amar {
hardware ethernet BC:KK:C5:B3:9T:C4;
fixed-address 192.12.1.56;
}

host simple {
hardware ethernet 00:99:18:KK:SQ:XE;
fixed-address 192.12.1.57;
}
So you ignored what you were told, and assigned fixed addresses, which doesn't address your original question?? What was the point of your original question, where you said that you DIDN'T want fixed addresses per MAC, if you were going to do this?
Quote:
SO FOR 100 desktop i have to make such 100 entries in dhcpd.conf file any alternative for same
Please think about what you're asking. You first said you wanted any unknown mac addresses to not get addresses, and you wanted to do mac based filtering. Now, you're assigning fixed addresses per mac. Both are fine....but unless you ENTER the mac addresses, HOW, exactly, do you think the server is going to KNOW ABOUT THEM????

You will very obviously need to enter mac addresses to do mac filtering.
 
Old 08-25-2013, 11:59 PM   #15
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Guru

i want to bind mac addreess to fixed address and no pc will get ip until it's mac address entered in dhcpd.conf file ,and i got it as per your solution but now my question is for 100 pcs i have to enter 100 entries manually any alternative for same .
 
  


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
Two DHCP ranges in one DHCP server using one NIC on a MPLS network - centos6 6.3 x64 pablobhz Linux - Newbie 7 03-04-2013 04:22 PM
Baffling DNS from a DHCP server problem. Appears to be ignoring dhcp.conf royce2020 Linux - Networking 1 02-16-2010 12:40 PM
Problem on acquiring IP addr. on client from dhcp server through dhcp relay server haariseshu Linux - Server 5 08-10-2009 01:20 AM
Instead of Router DHCP Server, Pass DHCP Server control to Slackware orbit Slackware 6 05-11-2009 02:00 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:29 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