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