LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Dhcp Issue (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-issue-206020/)

real_shock 07-16-2004 05:56 PM

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

The Bad Penny 07-16-2004 06:38 PM

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

real_shock 07-16-2004 06:53 PM

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

osvaldomarques 07-16-2004 10:59 PM

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.


All times are GMT -5. The time now is 11:00 AM.