I have dhcp working thanks to a post on another forum. The problem is, the cmts is a closed system, so i don't need any provisioning or advanced features. In fact, the less we screw with it, the better.
So I need help understanding the simplest dhcpd.conf for docsis. I dont want to make host entries every time someone wants to hook up a new modem. Color me dumb: I thought this would be the easiest part of this project, but dhcpd.conf is driving me batty.
Thanks
If You don't need to keep modems on static - all You need is to keep two subnets for CM's and CPE's. Here is an example:
(of course You should give some conditions to diffentiaie CM and CPE, there is lotsa examples on a forum)
#**********************#
#*** Opcje globalne ***#
#**********************#
ddns-update-style none;
authoritative;
get-lease-hostnames off;
one-lease-per-client on;
use-host-decl-names on;
option option-122 code 122 = string;
shared-network TEST {
#****************************#
#*** Adresy CM ****#
#****************************#
subnet 10.45.0.0 netmask 255.255.0.0 {
range 10.45.0.10 10.45.0.199;
option time-servers 10.45.0.1;
option time-offset 1;
next-server 10.45.0.1;
option log-servers 10.45.0.1;
option routers 10.45.0.1;
server-identifier 10.45.0.1;
default-lease-time 1296000;
max-lease-time 1296000;
option subnet-mask 255.255.0.0;
deny unknown-clients;
group {
## include "/etc/dhcp3/cm.conf";
} # end group
} # end subnet
subnet 10.46.0.0 netmask 255.255.254.0 { ####CPE addresses
range 10.46.1.1 10.46.1.254;
range 10.46.0.50 10.46.0.254;
option time-servers 10.46.0.2;
next-server 10.46.0.1;
option domain-name-servers 10.46.0.1;
option domain-name "smth.test.pl";
option routers 10.46.0.1;
server-identifier 10.46.0.1;
default-lease-time 21600;
max-lease-time 43200;
option subnet-mask 255.255.254.0;
group {
host CPE_0_20 {hardware ethernet ; fixed-address 10.46.0.20;}
} # end group
} # end subnet
# public
subnet 111.112.188.0 netmask 255.255.255.0 {
option time-servers 111.112.188.1;
next-server 111.112.188.1;
option domain-name-servers 111.112.188.1;
option domain-name "pub.test.pl";
option routers 111.112.188.1;
server-identifier 111.112.188.1;
default-lease-time 21600;
max-lease-time 43200;
option subnet-mask 255.255.255.0;
group {
host PUB_0_20 {hardware ethernet ; fixed-address 111.112.188.23} #
} # end group
} # end subnet
} # end shared-network