Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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?.
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.
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
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:
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.
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.
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.
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 .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.