Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-23-2008, 06:01 AM   #1
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
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

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


host router1 {
hardware ethernet 00:03:5d:2a:bb:ca;

host router2 {
hardware ethernet 00:03:5d:2f:ba:cc;
Or this is the wrong way of doing this?

Thanks for any help.
Old 03-23-2008, 08:10 AM   #2
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
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.


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
dhcp.conf problem: host fixed-address declarations ignored lslade Linux - Server 0 03-05-2007 01:47 PM
DHCP: Problem in assigning fixed address to clients libregeek Linux - Networking 6 11-17-2005 11:59 PM
i need fixed IP address. bruse Linux - Networking 5 09-19-2005 06:27 AM
DHCP with fixed IPs alithenake Slackware 4 03-18-2005 09:02 AM
Fixed IP Address with DHCP dgreenbean Linux - Networking 9 09-19-2004 01:12 PM > Forums > Linux Forums > Linux - Server

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration