LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-30-2001, 01:31 PM   #1
Sylhouette
Member
 
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132

Rep: Reputation: 15
DHCP Server


Has anyone a dhcp.conf file for rh7.2

My ip range would be 10.208.58.10 to 10.208.58.100
i need to exclude 10.208.58.26 thats a windows box that can't get an other ip
Primairy dns = 195.96.96.97
Secudary dns = 195.96.96.33

Gateway = 10.208.58.200

Thanks for your time
 
Old 11-04-2001, 07:50 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
dhcpd.conf

subnet 10.208.58.0 netmask 255.255.255.0 {
#
option routers 10.208.58.200;
option subnet-mask 255.255.255.0;
option domain-name-servers 195.96.96.97, 195.96.96.33;
option time-offset +1; #+1 for Holland?
range dynamic-bootp 10.208.58.27 10.208.58.100;
# default-lease-time 21600;
# max-lease-time 43200;

}


I couldn't think of a way to give it two ranges of IPs, and it wasn't in the man pages either. Oh, RedHat has a tendancy to get grumpy the first time you start dhcpd when there is no dhcpd.leases file. Or more to the point, the version of dhcpd that shipped with RH 7.0, the last time I used RedHat. If this happens to you, just create the file with a single '#' in it, and then try and start the daemon again.

I left in lease times for the heck of it unless you wanted them, un-comment them to use.

Sorry you didn't get a reply on this thread for four days...

-Cheers,

Finegan
 
Old 11-28-2001, 03:02 AM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I just saw this post,

If you still need it here it is

subnet 10.208.58.0 netmask 255.255.255.0 {
range 10.208.58.2 10.208.58.25;
range 10.208.58.27 10.208.58.100;
}
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcp client not getting IP from dhcp server jkmartha Linux - Networking 2 06-17-2005 08:12 AM
how can a DHCP client get the DHCP server IP? AshesOfTime Linux - Networking 3 11-24-2004 06:50 AM
Setting up a DHCP server w/ the server on a wireless network Ionexchange Linux - Wireless Networking 0 05-08-2004 10:56 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 10:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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