Results 1 to 3 of 3

Thread: please help with DHCP

  1. #1

    please help with DHCP

    Im new at this.
    Im using fedora LINUX machine.

    I have about 50 computers which do not get an IP address. I already stopped and restarted the DHCP service.

    How do I modify this file: dhcpd.conf file

    What are the exact steps I type to modify the range in there?

    and under what directory do i do this?

    thanx

  2. #2
    Senior Member
    Join Date
    May 2004
    Location
    Pakistan
    Posts
    253

    Re:

    Dear mujtba,
    Salam,

    Code:
    # dhcpd.conf
    #
    # Sample configuration file for ISC dhcpd
    #
    
    subnet 192.168.0.0 netmask 255.255.255.0 {
       range 192.168.0.100 192.168.0.200;
       # option definitions common to all supported networks...
       option domain-name "domainname.com";
       option domain-name-servers 192.168.0.254;
       option subnet-mask 255.255.255.0;
       option routers 192.168.0.254;
       default-lease-time 600;
       max-lease-time 7200;
    }
    
    # The other subnet that shares this physical network
    #subnet 204.254.239.32 netmask 255.255.255.224 {
    #  range dynamic-bootp 204.254.239.10 204.254.239.20;
    #  option broadcast-address 204.254.239.31;
    #  option routers snarg.fugue.com;
    #}
    
    #subnet 192.5.5.0 netmask 255.255.255.224 {
    #  range 192.5.5.26 192.5.5.30;
    #  option name-servers bb.home.vix.com, gw.home.vix.com;
    #  option domain-name "vix.com";
    #  option routers 192.5.5.1;
    #  option subnet-mask 255.255.255.224;
    #  option broadcast-address 192.5.5.31;
    #  default-lease-time 600;
    #  max-lease-time 7200;
    #}
    
    # Hosts which require special configuration options can be listed in
    # host statements.   If no address is specified, the address will be
    # allocated dynamically (if possible), but the host-specific information
    # will still come from the host declaration.
    
    #host passacaglia {
    #  hardware ethernet 0:0:c0:5d:bd:95;
    #  filename "vmunix.passacaglia";
    #  server-name "toccata.fugue.com";
    #}
    
    # Fixed IP addresses can also be specified for hosts.   These addresses
    # should not also be listed as being available for dynamic assignment.
    # Hosts for which fixed IP addresses have been specified can boot using
    # BOOTP or DHCP.   Hosts for which no fixed address is specified can only
    # be booted with DHCP, unless there is an address range on the subnet
    # to which a BOOTP client is connected which has the dynamic-bootp flag
    # set.
    #host fantasia {
    #  hardware ethernet 08:00:07:26:c0:a5;
    #  fixed-address fantasia.fugue.com;
    #}
    
    # If a DHCP or BOOTP client is mobile and might be connected to a variety
    # of networks, more than one fixed address for that host can be specified.
    # Hosts can have fixed addresses on some networks, but receive dynamically
    # allocated address on other subnets; in order to support this, a host
    # declaration for that client must be given which does not have a fixed
    # address.   If a client should get different parameters depending on
    # what subnet it boots on, host declarations for each such network should
    # be given.   Finally, if a domain name is given for a host's fixed address
    # and that domain name evaluates to more than one address, the address
    # corresponding to the network to which the client is attached, if any,
    # will be assigned.
    #host confusia {
    #  hardware ethernet 02:03:04:05:06:07;
    #  fixed-address confusia-1.fugue.com, confusia-2.fugue.com;
    #  filename "vmunix.confusia";
    #  server-name "toccata.fugue.com";
    #}
    
    #host confusia {
    #  hardware ethernet 02:03:04:05:06:07;
    #  fixed-address confusia-3.fugue.com;
    #  filename "vmunix.confusia";
    #  server-name "snarg.fugue.com";
    #}
    
    #host confusia {
    #  hardware ethernet 02:03:04:05:06:07;
    #  filename "vmunix.confusia";
    #  server-name "bb.home.vix.com";
    #}
    You can check this from /usr/share/doc/dhcp-* and copy dhcpd.conf.sample to /etc/dhcpd.conf

    Best Regards.
    Färrükh Ähmëd

  3. #3
    thanks and salaam

Similar Threads

  1. REDHAT 9 DHCP HELP
    By richard.s in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 03-16-2005, 02:16 PM
  2. Disable Wireless Router DHCP and Use Linux DHCP Server?
    By omnivore in forum Linux - General Topics
    Replies: 0
    Last Post: 01-19-2005, 03:18 PM
  3. dhcp issues
    By High_Order1 in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 11-17-2004, 05:58 AM
  4. Slack 9.1 DHCP message...
    By vwgtiturbo in forum Linux Distros
    Replies: 3
    Last Post: 10-08-2003, 04:57 PM
  5. DHCP and Subnetting
    By rooster in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 04-07-2002, 08:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •