Find the answer to your Linux question:
Results 1 to 4 of 4
I want to configure a dhcp server which assign ips, dns, gateway and subnet mask to dhcp clients. What I want to do is assign to each client the following ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064

    Help me to configure my dhcp server!


    I want to configure a dhcp server which assign ips, dns, gateway and subnet mask to dhcp clients. What I want to do is assign to each client the following ips as requiered

    xxx.xx.xx.210
    xxx.xx.xx.212
    xxx.xx.xx.214
    xxx.xx.xx.216
    xxx.xx.xx.218

    but I can only use these and no mid ips like xxx.xx.xx.211 or internet will be down for the computer with that ip

    Should I put the IPs in the SLP directory agent IPs under webmin?

    And it also says that I haven't defined a subnet or shared network or hosts
    Are they neccesary?

    The current dhcpd.conf I managed to do is

    Code:
    option broadcast-address 172.16.40.209;
    option slp-directory-agent true 172.16.40.212, 172.16.40.214, 172.16.40.216, 172.16.40.218;
    
    option domain-name-servers 201.219.5.186, 201.219.6.242;
    
    option subnet-mask 255.255.255.248;
    default-lease-time 1200;
    max-lease-time 7200;
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  2. #2
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    Just figured out how to configure the dhcp through webmin but now when I try to start dhcpd it say that there's an error (bug in webmin?)

    Code:
    /etc/dhcpd.conf line 2: no option named slp-directory-agent
    option slp-directory-agent true
           ^
    Configuration file errors encountered -- exiting
    exiting.
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Location
    Springfield, IL
    Posts
    1

    noob

    I myself am learning DHCP as you are, but I am getting a little bit further than you, I actually have mine talking to the other routers on my network in a similiar set up to yours... I am working from the copy i made from the setup... Looks like this:

    ddns-update-style interim;
    ignore client-updates;

    subnet 192.168.1.0 netmask 255.255.255.0 {

    # --- default gateway
    option routers 192.168.1.1;
    option broadcast-address 192.168.1.255;
    option subnet-mask 255.255.255.0;

    option nis-domain "NixBox";
    option domain-name "NixBox";
    option domain-name-servers 192.168.1.1;

    option time-offset -18000; # Eastern Standard Time
    # option ntp-servers 192.168.1.1;
    # option netbios-name-servers 192.168.1.1;
    # --- Selects point-to-point node (default is hybrid). Don't change this unless
    # -- you understand Netbios very well
    # option netbios-node-type 2;

    range dynamic-bootp 192.168.1.1 192.168.1.128;
    default-lease-time 21600;
    max-lease-time 43200;

    # we want the nameserver to appear at a fixed address
    host ns {
    next-server NixBox;
    hardware ethernet 00:40:05:08:89:CA;
    fixed-address 192.168.1.1;
    }
    }
    I have noticed after playing with it, as wikipedia says too, you have declare subsets of each of the computers your are trying to talk to.... Hope something in there seems right.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    The only thing I don't clearly understand is probably the most basic that is this

    Code:
    ddns-update-style interim;
    ignore client-updates;
    
    subnet 192.168.1.0 netmask 255.255.255.0 {    <===HERE====
    
    # --- default gateway
    option routers 192.168.1.1;
    option broadcast-address 192.168.1.255;
    option subnet-mask 255.255.255.0;
    
    ........
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

Posting Permissions

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