LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Deny ip address range in dhcp configuration (https://www.linuxquestions.org/questions/linux-server-73/deny-ip-address-range-in-dhcp-configuration-4175466867/)

Siddharth Sharma 06-21-2013 07:39 AM

Deny ip address range in dhcp configuration
 
hello

i have configured dhcp server on centos 6 with the subnet of 192.168.0.0 netmask 255.255.255.0 and range is 192.168.0.1 to 192.168.0.50.
Now i want to deny some ip address (like 192.168.0.10 ,192.168.0.20 , 192.168.0.30 ).
how do i do that

thanks

acid_kewpie 06-21-2013 09:09 AM

Add a reservation. e.g

Code:

host Accountant {
hardware ethernet A1:B2:C3:D4:E5:F6;
fixed-address 192.168.10.29;
}


Siddharth Sharma 06-21-2013 10:04 AM

Mac address that you mention is a valid one or any fake address we can mention.

acid_kewpie 06-21-2013 10:08 AM

it can be anything, nothign will ever use it, as that device will (presumably) never make a DHCP request. but it'd be neat and tidy admin work to make it correct.


All times are GMT -5. The time now is 03:08 PM.