hey all,
long time no talk. I have weird problems, my cmts1 and cmts2 CPE equipment gets stupid. I have situation as follows:
subnet 10.10.0.0 - for dhcpd server,
subnet 10.11.0.0/24 - for CMTS1 cable modems,
subnet 10.12.0.0/24 - for CMTS2 cable modems,
subnet 100.100.0.0/24 - for CMTS1 users (CPE),
subnet 100.200.0.0/24 - for CMTS2 users (CPE).
actual setup is like:
subnet 100.100.0.0 netmask 255.255.254.0 {
pool {
always-broadcast on;
range 100.100.0.11 100.100.1.254;
option routers 100.100.0.10;
option broadcast-address 100.100.1.255;
option subnet-mask 255.255.255.255;
option domain-name "blabla.bla";
option domain-name-servers XXXXXXXXXXXXXXXXXXXXXXXx;
#deny unknown-clients;
allow members of "cpe";
}
}
subnet 100.200.0.0 netmask 255.255.254.0 {
pool {
always-broadcast on;
range 100.200.0.11 100.200.1.254;
option routers 100.200.0.10;
option broadcast-address 100.200.1.255;
option subnet-mask 255.255.255.255;
option domain-name "blabla.bla";
option domain-name-servers XXXXXXXXXXXXXXXXXXXXXXXx;
#deny unknown-clients;
allow members of "cpe";
}
}
now, i also have appropriate setup at two cmtses:
interface cable 0/0
ip address 10.11.0.1 255.255.0.0
ip address 100.100.0.10 255.255.254.0 secondary host
ip address 10.123.0.1 255.255.128.0 secondary mta
ip helper-address 10.10.0.10
cable helper-address 10.11.0.2 cable-modem
cable helper-address 100.100.0.2 host
cable helper-address 10.123.0.2 mta
cable dhcp-giaddr primary
.....
and similar at other CMTS. What happens is that I am seeing requests coming from CMTS1, I know that because I know where is which modem, but also by the dhcpdiscover "via" address, BUT, dhcpd for some reason offers an IP address from scope reserved for CMTS2. it looks like this:
DHCPDISCOVER from 00:1d:0f:d6:29:c9 (host) via 100.200.100.10
DHCPOFFER on 100.100.1.50 to 00:1d:0f:d6:29:c9 (host) via 100.200.100.10
so, it does not care what I want, it mixes up those two networks. Besides it not obviously working, it also bothers me cuz I do not know how to .... answer to the CPE according to the IP address request came from. If I was able to evaluate address request came from, I would be able to set router for such equipment.
Any ideas? How did you guys resolve multiple CMTSes with dhcpd?
try using a shared network like so
shared-network CMTS1 {
subnet 10.11.0.0 netmask 255.255.255.0 {
}
subnet 100.100.0.0 netmask 255.255.254.0 {
pool {
always-broadcast on;
range 100.100.0.11 100.100.1.254;
option routers 100.100.0.10;
option broadcast-address 100.100.1.255;
option subnet-mask 255.255.255.255;
option domain-name "blabla.bla";
option domain-name-servers XXXXXXXXXXXXXXXXXXXXXXXx;
#deny unknown-clients;
allow members of "cpe";
}
}
}
shared-network CMTS2 {
subnet 10.12.0.0 netmask 255.255.255.0 {
}
subnet 100.200.0.0 netmask 255.255.254.0 {
pool {
always-broadcast on;
range 100.200.0.11 100.200.1.254;
option routers 100.200.0.10;
option broadcast-address 100.200.1.255;
option subnet-mask 255.255.255.255;
option domain-name "blabla.bla";
option domain-name-servers XXXXXXXXXXXXXXXXXXXXXXXx;
#deny unknown-clients;
allow members of "cpe";
}
}
}
What a shared network does is treat all traffic from the subnets contained as if they were directly connected.