LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 03-23-2008, 07:01 AM   #1
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

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 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.
 
Old 03-23-2008, 09:10 AM   #2
blackhole54
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.
 
  


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


All times are GMT -5. The time now is 06:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration