LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-08-2006, 01:36 PM   #1
pircio
LQ Newbie
 
Registered: Apr 2004
Distribution: Debian
Posts: 15

Rep: Reputation: 0
problems with dhcpd.conf


I'm making a registration system, well actually made, but I lost dhcpd.conf in a terrible accident and have to rebuild, but here is my problem.

DHCPD.conf
Code:
server-identifier 10.0.0.1;
#ddns-update-style none;
#ddns-updates off;

subnet *.*.*.* netmask 255.255.252.0 {}
# ^ actual numbers there, that's my public ip declaration
 

shared-network "test" {
        subnet 172.16.0.0 netmask 255.255.254.0 {
                authoritative;        
                option routers 172.16.0.1;
                option subnet-mask 255.255.254.0;
                option broadcast-address 172.16.1.255;
                option domain-name-servers 172.16.0.1;
                max-lease-time 60;
                default-lease-time 120;
                range 172.16.0.2 172.16.1.254;
                allow unknown-clients;
        }
        subnet 10.0.0.0 netmask 255.255.248.0 {
                authoritative;
                option routers 10.0.0.1;
                option domain-name-servers 68.168.224.162;
                option subnet-mask 255.255.248.0;   
                option broadcast-address 10.0.7.255;
                max-lease-time 600;
                default-lease-time 7200;  
                range 10.0.0.2 10.0.7.254;
                deny unknown-clients;
        }
}
host rob {
        hardware ethernet 00:40:f4:72:02:49;
        fixed-address 10.0.0.27;
}
#host aj {
#        hardware ethernet 00:30:1b:30:7b:63;
#        fixed-address 10.0.0.2;
#}
Problems....

1) "host rob" gets 10.0.0.27 just like he should. "host aj" or any other system on the network gets a DHCP timeout, not a 172.16 IP.

2) If I uncomment #ddns-update-style none; or #ddns-updates off; I get the following errors:

/etc/dhcpd.conf line 4: expecting a parameter or declaration.
ddns-update-style
^
/etc/dhcpd.conf line 5: expecting a parameter or declaration.
ddns-updates
^

Just in case this is the culpret, here is my ifconfig info

Code:
eth1      Link encap:Ethernet  HWaddr 00:0C:41:E6:41:BD
          inet addr:10.0.0.1  Bcast:10.0.7.255  Mask:255.255.248.0
          inet6 addr: fe80::20c:41ff:fee6:41bd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:93370 errors:43 dropped:0 overruns:43 frame:43
          TX packets:106843 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13782290 (13.1 MiB)  TX bytes:9923431 (9.4 MiB)
          Interrupt:5 Base address:0x1c00

eth1:0    Link encap:Ethernet  HWaddr 00:0C:41:E6:41:BD
          inet addr:172.16.0.1  Bcast:172.16.1.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:5 Base address:0x1c00
 
Old 02-08-2006, 01:40 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
did you try apt-get install --reinstall dhcpd?

Never mind, I just realized you meant you lost all your tweaked settings...

Last edited by pljvaldez; 02-08-2006 at 01:41 PM.
 
Old 02-08-2006, 01:42 PM   #3
pircio
LQ Newbie
 
Registered: Apr 2004
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
why would I do that? dhcp works fine as a simple dhcp server. Is there something potentially broken with it? because "ddns-update-style none;" shouldn't be kicking back an error.
 
Old 02-09-2006, 07:25 AM   #4
pircio
LQ Newbie
 
Registered: Apr 2004
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
Figured it out

Code:
#dhcpd.conf

server-identifier 10.0.0.1;

subnet *.*.*.* netmask 255.255.252.0 {}

shared-network "test" {
        subnet 172.16.0.0 netmask 255.255.254.0 {
                authoritative;
                option routers 172.16.0.1;
                option subnet-mask 255.255.254.0;
                option broadcast-address 172.16.1.255;
                option domain-name-servers 172.16.0.1;
                max-lease-time 60;
                default-lease-time 120;
                range 172.16.0.2 172.16.1.254;
                allow unknown-clients;
        }
        subnet 10.0.0.0 netmask 255.255.248.0 {
                authoritative;
                option routers 10.0.0.1;
                option domain-name-servers 68.168.224.162;
                option subnet-mask 255.255.248.0;
                option broadcast-address 10.0.7.255;
                max-lease-time 600;
                default-lease-time 7200;
                range 10.0.0.2 10.0.7.254;
                deny unknown-clients;
        }
}
host aj { hardware ethernet 00:30:1b:30:7b:63; fixed-address 10.0.0.22; }
host rob { hardware ethernet 00:40:f4:72:02:49; fixed-address 10.0.0.27; }
host eggs { hardware ethernet 00:01:03:21:43:D6; fixed-address 10.0.0.4; }
 
Old 02-09-2006, 07:53 AM   #5
pircio
LQ Newbie
 
Registered: Apr 2004
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
actually it only seems to work when it wants to, i'm getting a tad upset.
 
  


Reply



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
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
dhcpd.conf nsk078 Linux - Wireless Networking 2 07-15-2004 07:53 PM
not getting /etc/dhcpd.conf sixth_sense Linux - General 12 04-09-2004 06:15 PM
dhcp.conf or dhcpd.conf? rogerbennett Linux - Networking 3 09-03-2003 12:25 PM
dhcpd.master or dhcpd.conf rickg Linux - Networking 0 04-11-2002 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:17 PM.

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
Open Source Consulting | Domain Registration