LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 07-16-2004, 06:56 PM   #1
real_shock
LQ Newbie
 
Registered: May 2004
Distribution: Redhat 9.0
Posts: 11

Rep: Reputation: 0
Dhcp Issue


Hi :
i'm new REDHAT 9.0 user . i'm interested in linux networking . i worked on DNS and SAMBA and NFS servers . but i still don't know how to deal with the DHCP . i read the REDHAT manuals : it said that to configuer the DHCP service you should edit /etc/dhcp.conf . but i couldn't find the file in that location . i addition , there is nothing refering to DHCP service the services manager .... please help me guys and i will really appriciate it .

Thanks
 
Old 07-16-2004, 07:38 PM   #2
The Bad Penny
Member
 
Registered: Jul 2003
Location: Glasgow, Scotland
Distribution: Slackware 10
Posts: 78

Rep: Reputation: 15
Is it to request an IP number from a dhcp source?
cos I have to use the command dhcpcd ethx to get one, Others I have noticed have to use dhclient to do so.

Idont suppose you have tried the whereis command as root to locate it?

Sorry if im not helping as Im fairly new to Linux networking myself and thought I would try to help as best I could.

Regards

Scott
 
Old 07-16-2004, 07:53 PM   #3
real_shock
LQ Newbie
 
Registered: May 2004
Distribution: Redhat 9.0
Posts: 11

Original Poster
Rep: Reputation: 0
i will try

thanks a lot . yes it's for issuing IPs on the network . i will try what you told me about . i installed a package DCHP SERVER from redhat network but i still can't find the file., the most important issue that this should be managed as a service . since the DHCP not listed in the service manager consol , i don't that the service installed at all . thanks a lot again and i will try to find the file by your command ....

thanks
 
Old 07-16-2004, 11:59 PM   #4
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi,
Here is an example of "/etc/dhcpd.conf"
Code:
# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#

ddns-update-style               none;
default-lease-time              21600;
max-lease-time                  21600;

server-name                     "your-server";
option subnet-mask              255.255.255.0;
option domain-name              "your-domain";

shared-network WORKSTATIONS {
        subnet 10.0.0.0 netmask 255.255.255.0 {
        option broadcast-address        10.0.0.255;
        option routers                  10.0.0.254;
        option domain-name-servers      10.0.0.254;
        authoritative;
        pool {
                range 10.0.0.1 10.0.0.20;
                }
        }
}
In this example, our net is "10.0.0.0", mask is "255.255.255.0", the server has address "10.0.0.254" and it is the gateway and also the local dns server. It is leasing addresses in the range of 10.0.0.1 to 10.0.0.20.
All you have to edit is your server name and your domain. This dhcpd.conf is working on my gateway machine.

I hope this helps. May be, you have to replace all the occurrences of "10.0.0" with "192.168.0" which is the preferred default configuration for many distros.
 
  


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 server issue dshafi Linux - Networking 2 09-03-2005 12:37 AM
DHCP Handout Issue KevinGuy Linux - Networking 1 06-17-2005 04:17 PM
DHCP Renew Issue Mandrake 10 moismoje Linux - Wireless Networking 2 08-30-2004 12:51 AM
Strange Wireless DHCP issue Fozzle Linux - Wireless Networking 3 08-10-2004 01:14 PM
DHCP Spoofing ... Linux issue painkiller Linux - Networking 2 02-23-2004 04:28 PM


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