LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-25-2006, 06:03 PM   #1
Jose Rivas
Member
 
Registered: Jul 2006
Posts: 56

Rep: Reputation: 15
DHCP server for only IP+masc


I was reading the documents for this dhcp server issue. Create dhcpd.leases, modify the dhcpd.conf , subnet etc etc but I don't understand how to serve only IP+masc, not gateway or DNS, for a simple network (no subnet).
Example:
samba server address:
eth0 10.2.2.1 masc 255.255.255.0 (no gt, no dns)
From this machine I want to serve dhcp too, only IP + same masc to this range: 10.2.2.100-150
Please, how to do this with simple steps.
 
Old 08-29-2006, 10:20 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
I am certainly no dhcpd guru, so I might lead you astray. I just have a simple setup with the following dhcpd.conf file:

Code:
  subnet 192.168.1.0 netmask 255.255.255.0 {
    range 192.168.1.32 192.168.1.99;
    default-lease-time 7200;
    max-lease-time 21600;
    option routers 192.168.1.5;
    option ip-forwarding off;
    option broadcast-address 192.168.1.255;
    option subnet-mask 255.255.255.0;
    option domain-name-servers 65.247.xx.xx, 65.247.xx.xx;
  }
I believe (but I have not tried) that simply eliminating the lines for DNS and gateway ("routers") will give you what you want, i.e.:

Code:
  subnet 192.168.1.0 netmask 255.255.255.0 {
    range 192.168.1.32 192.168.1.99;
    default-lease-time 7200;
    max-lease-time 21600;
    option ip-forwarding off;
    option broadcast-address 192.168.1.255;
    option subnet-mask 255.255.255.0;
  }
And I suppose you could eliminate the line about "ip-forwarding."

Is this what you were asking?
 
Old 08-29-2006, 03:38 PM   #3
Jose Rivas
Member
 
Registered: Jul 2006
Posts: 56

Original Poster
Rep: Reputation: 15
Yea I was thinking same way to do it. Oh god I'm nervous to try (like I began some years ago to use Linux). Will try later when the users go home.
Thanks.
 
Old 08-30-2006, 05:02 AM   #4
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
If you are accessing the computer locally (i.e. not over a network connection) you would not be running much of a risk. Just create (or change) the file, start or restart dhcpd (watching for any error messages), and make sure the client machines get the right info when they boot. As always, if you modify an existing file, it is a good idea to keep a backup of the original at least until you have verified the changes work. (I generally keep them around quite a while just to be safe.)

Good luck.

Last edited by blackhole54; 08-30-2006 at 05:03 AM.
 
  


Reply



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
How To know if a host configured with DHCP has obtained IP address from DHCP server? Prassanta SUSE / openSUSE 1 06-29-2006 09:48 AM
eth0 ip assigned by dhcp , how would i know the ip address of the dhcp server where.. kublador Linux - Networking 14 05-16-2006 06:33 AM
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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:05 AM.

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
Open Source Consulting | Domain Registration