Results 1 to 2 of 2

Thread: Loosing hope.. dhcp is not working :( HELP !

Hybrid View

  1. #1
    Junior Member registered user
    Join Date
    Jul 2004
    Location
    Hollywood, Florida
    Posts
    18

    Loosing hope.. dhcp is not working :( HELP !

    I decided to take the plunge and rid myself of fedora core on my nat server..

    I had dhcp working as well as firestarter (handles nat & firewalling).

    So i did a knoppix hdinstall with the newest release...

    downloaded all relevant packages and setup the dhcpd.conf file... restarted the dhcp service... and I get errors...

    It refuses to start... so i read the syslog file and sure enough it says that i have an error in my script. I also made a point to look at the /etc/default/dhcp file and adde "eth1" to the list...

    here is my dhcpd.conf file:

    ddns-update-style interim;
    ddns-updates on;
    ddns-ttl 30;

    subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.110 192.168.0.120;
    default-lease-time 86400;
    max-lease-time 86400;
    option routers 192.168.1.1;
    option ip-forwarding off;
    option broadcast-address 192.168.0.255;
    option subnet-mask 255.255.255.0;
    option domain-name-servers 207.69.188.187,
    207.69.188.186;
    one-lease-per-client on;
    deny client-updates;
    }


    and here is my syslog error when i try to start dhcp..



    Jul 3 11:17:51 web_box init: Trying to re-exec init
    Jul 3 17:18:35 web_box dhcpd: /etc/dhcpd.conf line 1:
    expecting a parameter or declaration.
    Jul 3 17:18:35 web_box dhcpd: ddns-update-style
    Jul 3 17:18:35 web_box dhcpd: ^
    Jul 3 17:18:35 web_box dhcpd: Configuration file
    errors encountered -- exiting
    Jul 3 17:18:35 web_box dhcpd: exiting.
    Jul 3 17:20:14 web_box dhcpd: /etc/dhcpd.conf line 1:
    expecting a parameter or declaration.
    Jul 3 17:20:14 web_box dhcpd: ddns-update-style
    Jul 3 17:20:14 web_box dhcpd: ^
    Jul 3 17:20:14 web_box dhcpd: Configuration file
    errors encountered -- exiting
    Jul 3 17:20:14 web_box dhcpd: exiting.
    Jul 3 17:30:57 web_box dhcpd: /etc/dhcpd.conf line 1:
    expecting a parameter or declaration.
    Jul 3 17:30:57 web_box dhcpd: ddns-update-style
    Jul 3 17:30:57 web_box dhcpd: ^
    Jul 3 17:30:57 web_box dhcpd: /etc/dhcpd.conf line 2:
    expecting a parameter or declaration.
    Jul 3 17:30:57 web_box dhcpd: ddns-updates
    Jul 3 17:30:57 web_box dhcpd: ^
    Jul 3 17:30:57 web_box dhcpd: /etc/dhcpd.conf line 3:
    expecting a parameter or declaration.
    Jul 3 17:30:57 web_box dhcpd: ddns-ttl
    Jul 3 17:30:57 web_box dhcpd: ^
    Jul 3 17:30:57 web_box dhcpd: /etc/dhcpd.conf line
    15: expecting allow/deny key
    Jul 3 17:30:57 web_box dhcpd: ^Ideny client-updates;
    Jul 3 17:30:57 web_box dhcpd: ^
    Jul 3 17:30:57 web_box dhcpd: Configuration file
    errors encountered -- exiting
    Jul 3 17:30:57 web_box dhcpd: exiting.



    I hope someone can help me with this.

  2. #2
    Junior Member registered user
    Join Date
    Jul 2004
    Location
    Hollywood, Florida
    Posts
    18
    ok... nobody answered me but i figured out the problem...which led to MORE problems, which I also figured out...

    problem 1. DHCPD wont start and gives a ton of errors... I fixed it by removing the ddns line. I re-organized the file to look like this and it worked:

    dhcpd.conf:

    option subnet-mask 255.255.0.0;
    option broadcast-address 192.168.255.255;
    default-lease-time 86400;
    max-lease-time 86400;
    option routers 192.168.0.1;
    option domain-name-servers 207.69.188.187,
    207.69.188.186;
    option ip-forwarding off;
    one-lease-per-client on;

    subnet 192.168.0.0 netmask 255.255.0.0 {
    range 192.168.0.110 192.168.0.120;
    }

    I also had to edit the /etc/init.d/dhcp script to contain INTERFACES="eth1" instead of "eth0". Even though I added "eth1" to /etc/default/dhcp it did not set eth1 to be the dhcp network...

    lastly, after i had everything setup, i set the static IP on eth1 and rebooted. sure enough, knoppix set eth1 to dhcp again... so i could not figure out what script its doing that from... so i added my own network startup script to /etc/init.d and it goes like this:

    /etc/init.d/start_nat :

    #!/bin/bash

    ifconfig eth1 192.168.0.1 netmask 255.255.0.0

    /etc/init.d/./firestarter start #starts my firewall & Internet sharing for my network...
    /etc/init.d/./dhcp start # starts the dhcp server once everything else is up and running...


    I added the start_nat script to run levels 3 and 5... rebooted and BAAAAM !!!!!!! It works perfectly... all of my hosts are getting IP addresses and browsing the net ! YAY !

Similar Threads

  1. Replies: 16
    Last Post: 06-02-2005, 07:46 PM
  2. netgear ha501!!! Is there hope???
    By xaviers2002 in forum Networking
    Replies: 1
    Last Post: 09-25-2004, 06:31 AM
  3. An easy one (I hope!) for you guys
    By ryans in forum Hardware & Booting
    Replies: 2
    Last Post: 03-12-2004, 10:16 AM
  4. Replies: 0
    Last Post: 02-10-2004, 06:59 PM
  5. You're my last hope!
    By reilord in forum Networking
    Replies: 11
    Last Post: 01-26-2004, 02:26 AM

Posting Permissions

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


HP56U46BS8MD-16 DDR5 1x16GB DIMM Desktop 5600MHz (brand may vary)  Lot of 28 picture

HP56U46BS8MD-16 DDR5 1x16GB DIMM Desktop 5600MHz (brand may vary) Lot of 28

$4700.00



NEW Kingston 8GB DDR4 2666MHz Desktop RAM KCP426NS8/8 PC4-21300 picture

NEW Kingston 8GB DDR4 2666MHz Desktop RAM KCP426NS8/8 PC4-21300

$30.00



SK hynix 32GB(4 x 8GB) HMA81GU6JJR8N-VK PC4-2666V DDR4 Desktop RAM - CR337A picture

SK hynix 32GB(4 x 8GB) HMA81GU6JJR8N-VK PC4-2666V DDR4 Desktop RAM - CR337A

$89.95



Lot of 2 SK Hynix HMAA2GS6AJR8N-XN 16GB DDR4 PC4-3200AA 1Rx8 Laptop SODIMM RAM picture

Lot of 2 SK Hynix HMAA2GS6AJR8N-XN 16GB DDR4 PC4-3200AA 1Rx8 Laptop SODIMM RAM

$354.99



16GB (2x8GB) Kingston HyperX blu KHX1600C10D3B1/8G PC3-12800U DDR3 1600 picture

16GB (2x8GB) Kingston HyperX blu KHX1600C10D3B1/8G PC3-12800U DDR3 1600

$27.99



DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix picture

DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix

$66.00



Samsung W03J0009150379F87A 64GB (2x32GB) RAM DDR4 2400MHz CRC0Y picture

Samsung W03J0009150379F87A 64GB (2x32GB) RAM DDR4 2400MHz CRC0Y

$179.99



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$21.68



Apple iPad 11th Generation 10.9

Apple iPad 11th Generation 10.9" 128GB (Wi‑Fi + 5G) Blue

$220.00



Lot Of 21 Samsung 4GB 1Rx8 PC3-12800U-11-13-A1 NON-ECC M378B5173QH0-CK0 (21x4GB) picture

Lot Of 21 Samsung 4GB 1Rx8 PC3-12800U-11-13-A1 NON-ECC M378B5173QH0-CK0 (21x4GB)

$180.00