I have set up a DHCPD service on a Linux server, which shall provide fixed public IP addresses for cable modem devices based on MAC addresses.
Here is the configuration file of the DHCPD. The server's IP address is 212.200.200.34 (it has only one interface) and the CMTS has the IP address 172.30.30.2. The CMTS and the DHCP servers are in the same VLAN 2000.
ddns-update-style none;
option domain-name-servers 8.8.8.8, 8.8.4.4;
default-lease-time 23200;
max-lease-time 86400;
lease-file-name "/var/db/dhcpd.leases";
authoritative;
log-facility local7;
shared-network CMTS-PUBLIC-IPS {
subnet 212.200.200.32 netmask 255.255.255.224 {
option dhcp-server-identifier 212.200.200.34;
server-identifier 212.200.200.34;
option routers 212.200.200.33;
option subnet-mask 255.255.255.224;
option time-servers 212.200.200.34;
range 212.200.200.36 212.200.200.62;
option broadcast-address 212.200.200.63;
server-name "212.200.200.34";
option domain-name "bla";
host SID-900111 {
hardware ethernet 55:47:6d:ed:03:c9;
fixed-address 212.200.200.36;
}
host SID-111334 {
hardware ethernet 61:5a:6d:ef:cb:b4;
fixed-address 212.200.200.37;
}
...
}
subnet 212.100.100.96 netmask 255.255.255.224 {
option dhcp-server-identifier 212.200.200.34;
server-identifier 212.200.200.34;
option routers 212.200.200.33;
option subnet-mask 255.255.255.224;
option time-servers 212.200.200.34;
range 212.100.100.97 212.100.100.126;
option broadcast-address 212.100.100.127;
server-name "212.200.200.34";
option domain-name "bla";
host SID-111109 {
hardware ethernet 21:4e:6c:ac:09:43;
fixed-address 212.100.100.97;
}
host SID-111110 {
hardware ethernet 53:4e:6d:da:38:0a;
fixed-address 212.100.100.98;
}
...
}
}
So, the addresses of the first range (212.200.200.36 - 212.200.200.62) are given out correctly to the devices.
The addresses of the second range (212.100.100.97 - 212.100.100.126) are not, stating an error in the logs: wrong network.
Can you tell me, what I am missing here?
I created a simple graphic file. The DHCP A is not important. The problem exists in DHCP B.