LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   DHCP Fixed IP Address confusion (http://www.linuxquestions.org/questions/linux-server-73/dhcp-fixed-ip-address-confusion-630000/)

noir911 03-23-2008 06:01 AM

DHCP Fixed IP Address confusion
 
I need to add some fixed IP in the DHCP block (or exclude some IPs so that they are not in the DHCP block) for some routers. Every time these routers boot up, they will have these same "static" IPs. If one of these routers is offline, the IP of this router will not be allocated to any other computer on the network. The IP range is from 192.168.1.20-30.

Should I add them in in /var/dhcp/192.168.1 file, like:

Quote:


host router1 {
hardware ethernet 00:03:5d:2a:bb:ca;
fixed-address 192.168.1.20;
}

host router2 {
hardware ethernet 00:03:5d:2f:ba:cc;
fixed-address 192.168.1.21;
}

Or this is the wrong way of doing this?

Thanks for any help.

blackhole54 03-23-2008 08:10 AM

The statements look fine to me, but they should go in the dhcpd.conf file. I have always seen this file in the /etc directory.


All times are GMT -5. The time now is 11:19 PM.