dhcp config & MTA's | docsis.org

You are here

dhcp config & MTA's

15 posts / 0 new
Last post
husamaga
dhcp config & MTA's

here is my dhcpd config, i have two CMTS's on one DHCP server, i need to activate my MTA's now, but the MTA's get an IP from CPE's pool and start to loose users from dhcp server, the modem flashes online:

authoritative;
ddns-update-style none;
ignore client-updates;
option space docsis-mta;
option domain-name "lol.cc";
option domain-name-servers 192.168.160.83, 8.8.8.8;
option docsis-mta.dhcp-server-1 code 1 = ip-address;
option docsis-mta.dhcp-server-2 code 2 = ip-address;
option docsis-mta.provision-server code 3 = { integer 8, string };
option docsis-mta.as-req-as-rep-1 code 4 = { integer 32, integer 32, integer 32 };
option docsis-mta.as-req-as-rep-2 code 5 = { integer 32, integer 32, integer 32 };
option docsis-mta.krb-realm-name code 6 = string;
option docsis-mta.tgs-util code 7 = integer 8;
option docsis-mta.timer code 8 = integer 8;
option docsis-mta.ticket-ctrl-mask code 9 = integer 16;
option docsis-mta-pkt code 122 = encapsulate docsis-mta;
option docsis-mta.dhcp-server-1 192.168.164.5;
option docsis-mta.provision-server 0 "\007flasher\003lol\002cc\000";
option docsis-mta.krb-realm-name "\005BASIC\0011\000";

class "CM" {
match if substring(option vendor-class-identifier,0,6) = "docsis";
vendor-option-space docsis-mta;
default-lease-time 604800;
max-lease-time 604800;
min-lease-time 302400;
option time-offset -21600;
next-server 192.168.164.5;
option tftp-server-name "192.168.164.5";
option time-servers 10.0.0.1;
option domain-name "lol.cc";
option domain-name-servers 192.168.160.83, 8.8.8.8;
option routers 10.0.0.1;
option subnet-mask 255.255.0.0;
option docsis-mta.dhcp-server-1 192.168.164.5;
}
class "CM1" {
match if substring(option vendor-class-identifier,0,6) = "docsis";
vendor-option-space docsis-mta;
default-lease-time 604800;
max-lease-time 604800;
min-lease-time 302400;
option time-offset -21600;
next-server 192.168.164.5;
option tftp-server-name "192.168.164.5";
option time-servers 10.0.0.1;
option domain-name "lol.cc";
option domain-name-servers 192.168.160.83, 8.8.8.8;
option routers 10.1.0.1;
option subnet-mask 255.255.0.0;
option docsis-mta.dhcp-server-1 192.168.164.5;
}

class "MTA" {
match if substring(option vendor-class-identifier,0,3) = "EPX";
spawn with option agent.remote-id;
default-lease-time 21600;
max-lease-time 21600;
min-lease-time 10800;
option domain-name "lol.cc";
option domain-name-servers 192.168.160.83, 8.8.8.8;
option routers 10.0.0.1;
option subnet-mask 255.255.0.0;
option time-servers 10.0.0.1;
option tftp-server-name "192.168.164.5";
next-server 10.0.0.1;
option time-offset -18000;
option host-name = host-decl-name;
option docsis-mta.provision-server 0 "\007flasher\003lol\002cc\000";
option docsis-mta.krb-realm-name "\005BASIC\0011\000";
option host-name = concat(
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,1,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,2,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,3,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,4,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,5,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,6,1))),2),
"");
}
class "MTA1" {
match if substring(option vendor-class-identifier,0,3) = "EPX";
spawn with option agent.remote-id;
default-lease-time 21600;
max-lease-time 21600;
min-lease-time 10800;
option domain-name "lol.cc";
option domain-name-servers 192.168.160.83, 8.8.8.8;
option routers 10.1.0.1;
option subnet-mask 255.255.0.0;
option time-servers 10.0.0.1;
option tftp-server-name "192.168.164.5";
next-server 109.175.22.5;
option time-offset -18000;
option host-name = host-decl-name;
option docsis-mta.provision-server 0 "\007flasher\003lol\002ba\000";
option docsis-mta.krb-realm-name "\005BASIC\0011\000";
option host-name = concat(
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,1,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,2,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,3,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,4,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,5,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,6,1))),2),
"");
}

#/* The subnet the dhcp server is in */
subnet 192.168.164.0 netmask 255.255.255.0 {
}

#/* A shared network for CMs and MTAs */
# CMTS 1 - flasher
# /*The subnet the requests come from generally the cable interfaces IP*/

shared-network cableplant {
subnet 192.168.165.0 netmask 255.255.255.0 {
option routers 192.168.165.1;
range dynamic-bootp 192.168.165.2 192.168.165.254;
}
subnet 192.168.166.0 netmask 255.255.254.0 {
option routers 192.168.166.1;
range dynamic-bootp 192.168.166.2 192.168.167.254;
}

subnet 192.168.168.0 netmask 255.255.255.128 {
option routers 192.168.168.1;
}

#CMTS 2 - flasher2
subnet 192.168.168.128 netmask 255.255.255.128 {
option routers 192.168.168.129;
}

subnet 192.168.169.0 netmask 255.255.255.0 {
option routers 192.168.169.1;
range dynamic-bootp 192.168.169.2 192.168.169.254;
}

subnet 192.168.170.0 netmask 255.255.254.0 {
option routers 192.168.170.1;
range dynamic-bootp 192.168.170.2 192.168.171.254;
}

subnet 192.168.172.0 netmask 255.255.254.0 {
option routers 192.168.172.1;
range dynamic-bootp 192.168.172.2 192.168.173.254;
}

}

# /* the subnet for CMs and MTAs - flasher*/
# /*this pool is for known MTAs*/
subnet 10.0.0.0 netmask 255.255.0.0 {
option routers 10.0.0.1;
pool {
range 10.0.100.2 10.0.100.254;
allow members of "MTA";
}
# /*This pool is for known cable modems*/
pool {
range 10.0.0.2 10.0.99.254;
allow members of "CM";
}

}
# /* the subnet for CMs and MTAs - flasher2*/
# /*this pool is for known MTAs*/
subnet 10.1.0.0 netmask 255.255.0.0 {
option routers 10.1.0.1;
pool {
range 10.1.100.2 10.1.100.254;
allow members of "MTA1";
}
# /*This pool is for known cable modems*/
pool {
range 10.1.0.2 10.1.99.254;
allow members of "CM1";
}
}
#/* an MTA entry */
host cpe-mtatestmodem2 {
hardware ethernet 00:14:f8:7d:xx:xx;
fixed-address 192.168.167.89;
option bootfile-name "0014f87dxxxx.bin";
filename "0014f87dxxxx.bin";
}

the log file:

Dec 5 10:54:09 flasher dhcpd: Dynamic and static leases present for 10.0.1.0.
Dec 5 10:54:09 flasher dhcpd: Remove host declaration cm-user12 or remove 10.0.1.0
Dec 5 10:54:09 flasher dhcpd: from the dynamic address pool for 10.0.0/16

Dec 5 10:54:26 flasher dhcpd: DHCPDISCOVER from d4:ca:6d:25:75:3b via eth1: network 192.168.164.0/24: no free leases
Dec 5 10:54:27 flasher dhcpd: Dynamic and static leases present for 10.0.1.165.
Dec 5 10:54:27 flasher dhcpd: Remove host declaration cm-user174 or remove 10.0.1.165
Dec 5 10:54:27 flasher dhcpd: from the dynamic address pool for 10.0.0/16

Dec 5 10:54:44 flasher dhcpd: Dynamic and static leases present for 10.0.0.73.
Dec 5 10:54:44 flasher dhcpd: Remove host declaration cm-user407 or remove 10.0.0.73
Dec 5 10:54:44 flasher dhcpd: from the dynamic address pool for 10.0.0/16
Dec 5 10:54:44 flasher dhcpd: DHCPREQUEST for 10.0.0.73 from 2c:9e:5f:dd:39:ea via eth1
Dec 5 10:54:44 flasher dhcpd: DHCPACK on 10.0.0.73 to 2c:9e:5f:dd:39:ea via eth1

Any help?
regards

darekc
Hi,

Hi,

change vendor identifier:

class "MTA"
{
match if substring(option vendor-class-identifier,0,3)="pkt";
}

dc

husamaga
Thanks for your reply ,

Thanks for your reply ,
When i change the vendor identifier still have the same problem..
and still get the error
Dec 10 14:26:53 xxx dhcpd: Dynamic and static leases present for 10.1.0.108.
Dec 10 14:26:53 xxx dhcpd: Remove host declaration cm-user132 or remove 10.1.0.108
Dec 10 14:26:53 xxx dhcpd: from the dynamic address pool for 10.1.0/16

Capm
Why do you have your cable

Why do you have your cable modems and MTA's defined twice, with the same vendor identifier?

Remove your 2nd definition of each.

The only reason you would have a second definition is if you had a 2nd type of modem that had a different vendor ID (not common) but you would still tie it to the same pool as the rest of the modems.

Also..

class "MTA" {
match if substring(option vendor-class-identifier,0,3) = "EPX";

Change to:

class "MTA" {
match if substring(option vendor-class-identifier,0,5) = "pktc1";

remove the option-routers and option subnet mask from your mta classification also.

You should also dhcp your cpe addresses, rather than statically assigning them. You can classify them like this:

class "CPE" {
match if substring(option vendor-class-identifier,0,6) != "docsis";
}

Your CM classifcation should be just as short:

class "CM" {
match if substring(option vendor-class-identifier,0,6) = "docsis";
}

Put the rest of that in the pool definition...

shared-network pools1{

#CM and MTA

subnet 10.0.0.0 netmask 255.255.0.0 {
authoritative;
option time-offset -21600; #CST zone
default-lease-time 3600;
server-identifier 172.16.1.1;
server-name "dhcp1";
filename "noservice.bin";
option broadcast-address 10.0.255.255;
option time-servers 172.16.1.1;
option subnet-mask 255.255.0.0;
option log-servers 172.16.1.1;
option routers 10.0.0.1;
pool {
range 10.0.0.2 10.0.99.255;
allow members of "CM";
}
pool {
range 10.0.100.1 10.0.255.254;
allow members of "MTA";
}
}

#CPE (public or nat'd ip's)

subnet 174.0.0.0 netmask 255.255.252.0 {
authoritative;
default-lease-time 3600;
option domain-name-servers 8.8.8.8, 4.4.4.4;
option broadcast-address 174.0.3.255;
option subnet-mask 255.255.252.0;
option routers 174.0.0.1;
pool {
range 174.0.0.2 174.0.3.254;
allow members of "CPE";
deny members of "MTA";
}
}

} #end of shared network

If you have more than one CMTS, you can break up the pools to allocate a certain amount of IP's to each cmts. Just remember to allow for a "option routers" IP address and keep it out of the pools as that is the IP that gets assigned to the cmts interface. IE- define separate "shared-network" groups for each cmts. You might want to add a couple zero's to the lease time as well, and don't forget to adjust your time-offset.

husamaga
Thanks for you reply, i made

Thanks for you reply, i made some changes, and now the CM get's an ip from the set 10.0.100.0 but the MTA still get's cpe's ip address...
My CPE public is static, to have an information who used which ip without looking in logs, so i didn't use the CPE class.

Regards

Capm
Please post your current

Please post your current updated config

fb445421
You need to exclude both pktc and docsis from vendor-class-ident

Hi!

You need to exclude both pktc and docsis to identify customer firewalls and computers, otherwise, their addresses can be leased to MTAs as well:

{match if substring(option vendor-class-identifier,0,6) != "docsis" and substring(option vendor-class-identifier,0,4) != "pktc" ;}

/Fredrik

husamaga
My updated dhcpd.conf

My updated dhcpd.conf
the modems works fine, but the MTA's still get an IP from CPE pool. can you just check if theis configuration okey?

authoritative;
ddns-update-style none;
ignore client-updates;
option space docsis-mta;
option domain-name "lol.ge";
option domain-name-servers 172.16.160.83, 8.8.8.8;
option docsis-mta.dhcp-server-1 code 1 = ip-address;
option docsis-mta.dhcp-server-2 code 2 = ip-address;
option docsis-mta.provision-server code 3 = { integer 8, string };
option docsis-mta.as-req-as-rep-1 code 4 = { integer 32, integer 32, integer 32 };
option docsis-mta.as-req-as-rep-2 code 5 = { integer 32, integer 32, integer 32 };
option docsis-mta.krb-realm-name code 6 = string;
option docsis-mta.tgs-util code 7 = integer 8;
option docsis-mta.timer code 8 = integer 8;
option docsis-mta.ticket-ctrl-mask code 9 = integer 16;
option docsis-mta-pkt code 122 = encapsulate docsis-mta;
option docsis-mta.dhcp-server-1 172.16.164.5;
option docsis-mta.provision-server 0 "\005flash\003lol\002ge\000";
option docsis-mta.krb-realm-name "\005BASIC\0011\000";

class "CM" {
match if substring(option vendor-class-identifier,0,6) = "docsis";
vendor-option-space docsis-mta;
default-lease-time 604800;
max-lease-time 604800;
min-lease-time 302400;
option time-offset -21600;
next-server 172.16.164.5;
option tftp-server-name "172.16.164.5";
option time-servers 10.0.0.1, 10.1.0.1;
option domain-name "lol.ge";
option domain-name-servers 172.16.160.83, 8.8.8.8;
option routers 10.0.0.1, 10.1.0.1;
option subnet-mask 255.255.0.0;
option docsis-mta.dhcp-server-1 172.16.164.5;
}

class "MTA" {
match if substring(option vendor-class-identifier,0,5) = "pktc1";
spawn with option agent.remote-id;
default-lease-time 21600;
max-lease-time 21600;
min-lease-time 10800;
option domain-name "lol.ge";
option domain-name-servers 172.16.160.83, 8.8.8.8;
option time-servers 10.0.0.1;
option tftp-server-name "172.16.164.5";
next-server 10.0.0.1;
option time-offset -18000;
option host-name = host-decl-name;
option docsis-mta.provision-server 0 "\005flash\003lol\002ge\000";
option docsis-mta.krb-realm-name "\005BASIC\0011\000";
option host-name = concat(
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,1,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,2,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,3,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,4,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,5,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,6,1))),2),
"");
}

#/* The subnet the dhcp server is in */
subnet 172.16.164.0 netmask 255.255.255.0 {
}

#/* A shared network for CMs and MTAs */
# CMTS 1 -
# /*The subnet the requests come from generally the cable interfaces IP*/

shared-network cableplant {
subnet 172.16.165.0 netmask 255.255.255.0 {
option routers 172.16.165.1;
range dynamic-bootp 172.16.165.2 172.16.165.254;
}
subnet 172.16.166.0 netmask 255.255.254.0 {
option routers 172.16.166.1;
range dynamic-bootp 172.16.166.2 172.16.167.254;
}

subnet 172.16.168.0 netmask 255.255.255.128 {
option routers 172.16.168.1;
}
}
#CMTS 2 -
shared-network cableplant2 {
subnet 172.16.168.128 netmask 255.255.255.128 {
option routers 172.16.168.129;
}

subnet 172.16.169.0 netmask 255.255.255.0 {
option routers 172.16.169.1;
range dynamic-bootp 172.16.169.2 172.16.169.254;
}

subnet 172.16.170.0 netmask 255.255.254.0 {
option routers 172.16.170.1;
range dynamic-bootp 172.16.170.2 172.16.171.254;
}

subnet 172.16.172.0 netmask 255.255.254.0 {
option routers 172.16.172.1;
range dynamic-bootp 172.16.172.2 172.16.173.254;
}

}

# /* the subnet for CMs and MTAs - CMTS 1*/
# /*this pool is for known MTAs*/
subnet 10.0.0.0 netmask 255.255.0.0 {
option routers 10.0.0.1;
pool {
range 10.0.100.2 10.0.255.254;
allow members of "MTA";
}
# /*This pool is for known cable modems*/
pool {
range 10.0.0.2 10.0.99.254;
allow members of "CM";
}

}
# /* the subnet for CMs and MTAs - CMTS 2*/
# /*this pool is for known MTAs*/
subnet 10.1.0.0 netmask 255.255.0.0 {
option routers 10.1.0.1;
pool {
range 10.1.100.2 10.1.255.254;
allow members of "MTA";
}
# /*This pool is for known cable modems*/
pool {
range 10.1.0.2 10.1.99.254;
allow members of "CM";
}
}
#/* an MTA entry */
host cpe-mtatestmodem2 {
hardware ethernet 00:14:f8:7d:ea:cb;
option bootfile-name "0014f87deacb.bin";
filename "0014f87deacb.bin";
}
#

The info from MTA:
MTA> mta_info_get
mta_info_get
MTA FQDN =
MTA IP = 172.16.167.89
MTA SUBNET IP = 255.255.254.0
MTA GATEWAY IP = 172.16.166.1
MTA BOOTFILE =
MTA PRIMARY DNS = 172.16.160.83
MTA SECONDARY DNS = 8.8.8.8
MTA SUB OPT 3 = flash.lol.ge
MTA SUB OPT 6 = BASIC.1
MTA SUB OPT 8 = 10
MTA GATEWAY IP = 172.16.164.5
MTA PROV STATE = 1
MTA CONFIG FILE NAME = MTA CONFIG FILE NAME =

i still don't get FQDN, don't know why.

Capm
Here

authoritative;
ddns-update-style none;
ignore client-updates;
option space docsis-mta;
option domain-name "lol.ge";
option domain-name-servers 172.16.160.83, 8.8.8.8;
option docsis-mta.dhcp-server-1 code 1 = ip-address;
option docsis-mta.dhcp-server-2 code 2 = ip-address;
option docsis-mta.provision-server code 3 = { integer 8, string };
option docsis-mta.as-req-as-rep-1 code 4 = { integer 32, integer 32, integer 32 };
option docsis-mta.as-req-as-rep-2 code 5 = { integer 32, integer 32, integer 32 };
option docsis-mta.krb-realm-name code 6 = string;
option docsis-mta.tgs-util code 7 = integer 8;
option docsis-mta.timer code 8 = integer 8;
option docsis-mta.ticket-ctrl-mask code 9 = integer 16;
option docsis-mta-pkt code 122 = encapsulate docsis-mta;
option docsis-mta.dhcp-server-1 172.16.164.5;
option docsis-mta.provision-server 0 "\005flash\003lol\002ge\000";
option docsis-mta.krb-realm-name "\005BASIC\0011\000";

class "MTA" {
match if substring(option vendor-class-identifier,0,5) = "pktc1";
spawn with option agent.remote-id;
default-lease-time 21600;
max-lease-time 21600;
min-lease-time 10800;
option domain-name "lol.ge";
option domain-name-servers 172.16.160.83, 8.8.8.8;
option time-servers 172.16.164.5;
option tftp-server-name "172.16.164.5";
option time-offset -21600; #CST zone
option host-name = host-decl-name;
option docsis-mta.provision-server 0 "\005flash\003lol\002ge\000";
option docsis-mta.krb-realm-name "\005BASIC\0011\000";
option host-name = concat(
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,1,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,2,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,3,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,4,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,5,1))),2),
suffix(concat("0",binary-to-ascii(16,8,"",substring(hardware,6,1))),2),
"");
}

class "CM" {
match if substring(option vendor-class-identifier,0,6) = "docsis";
}

class "CPE" {
match if substring(option vendor-class-identifier,0,6) != "docsis";
and substring(option vendor-class-identifier,0,5) != "pktc1" ;
}

shared-network CMTS1{

#CM and MTA

subnet 10.0.0.0 netmask 255.255.0.0 {
authoritative;
option time-offset -21600; #CST zone
default-lease-time 360000;
server-identifier 172.16.164.5;
server-name "dhcp1";
filename "noservice.bin";
next-server 172.16.164.5;
option tftp-server-name "172.16.164.5";
option time-servers 172.16.164.5;
option domain-name "lol.ge";
option domain-name-servers 172.16.160.83, 8.8.8.8;
option routers 10.0.0.1;
option subnet-mask 255.255.0.0;
option docsis-mta.dhcp-server-1 172.16.164.5;
pool {
range 10.0.0.2 10.0.99.255;
allow members of "CM";
}
pool {
range 10.0.100.1 10.0.255.254;
allow members of "MTA";
}
}

#CPE (public or nat'd ip's)

subnet 172.16.165.0 netmask 255.255.255.0 {
authoritative;
default-lease-time 3600;
option domain-name-servers 8.8.8.8, 4.4.4.4;
option broadcast-address 172.16.165.255;
option subnet-mask 255.255.255.0;
option routers 172.16.165.1;
pool {
range 172.16.165.2 172.16.165.254;
allow members of "CPE";
deny members of "MTA";
}
}

subnet 172.16.166.0 netmask 255.255.254.0 {
authoritative;
default-lease-time 3600;
option domain-name-servers 8.8.8.8, 4.4.4.4;
option broadcast-address 172.16.167.255;
option subnet-mask 255.255.254.0;
option routers 172.16.166.1;
pool {
range 172.16.166.2 172.16.167.254;
allow members of "CPE";
deny members of "MTA";
}
}

subnet 172.16.168.0 netmask 255.255.255.128 {
authoritative;
default-lease-time 3600;
option domain-name-servers 8.8.8.8, 4.4.4.4;
option broadcast-address 172.16.168.127;
option subnet-mask 255.255.255.0;
option routers 172.16.168.1;
pool {
range 172.16.168.2 172.16.168.126;
allow members of "CPE";
deny members of "MTA";
}
}

} #end of shared network

shared-network CMTS2{

#CM and MTA

subnet 10.1.0.0 netmask 255.255.0.0 {
authoritative;
option time-offset -21600; #CST zone
default-lease-time 360000;
server-identifier 172.16.164.5;
server-name "dhcp1";
filename "noservice.bin";
next-server 172.16.164.5;
option tftp-server-name "172.16.164.5";
option time-servers 172.16.164.5;
option domain-name "lol.ge";
option domain-name-servers 172.16.160.83, 8.8.8.8;
option routers 10.1.0.1;
option subnet-mask 255.255.0.0;
option docsis-mta.dhcp-server-1 172.16.164.5;
pool {
range 10.1.0.2 10.1.99.255;
allow members of "CM";
}
pool {
range 10.1.100.1 10.1.255.254;
allow members of "MTA";
}
}

#CPE (public or nat'd ip's)

subnet 172.16.168.128 netmask 255.255.255.128 {
authoritative;
default-lease-time 3600;
option domain-name-servers 8.8.8.8, 4.4.4.4;
option broadcast-address 172.16.168.255;
option subnet-mask 255.255.255.128;
option routers 172.16.168.129;
pool {
range 172.16.168.130 172.16.168.254;
allow members of "CPE";
deny members of "MTA";
}
}

subnet 172.16.169.0 netmask 255.255.255.0 {
authoritative;
default-lease-time 3600;
option domain-name-servers 8.8.8.8, 4.4.4.4;
option broadcast-address 172.16.169.255;
option subnet-mask 255.255.255.0;
option routers 172.16.169.1;
pool {
range 172.16.169.2 172.16.169.254;
allow members of "CPE";
deny members of "MTA";
}
}

subnet 172.16.170.0 netmask 255.255.254.0 {
authoritative;
default-lease-time 3600;
option domain-name-servers 8.8.8.8, 4.4.4.4;
option broadcast-address 172.16.171.255;
option subnet-mask 255.255.254.0;
option routers 172.16.170.1;
pool {
range 172.16.170.2 172.16.171.254;
allow members of "CPE";
deny members of "MTA";
}
}

subnet 172.16.172.0 netmask 255.255.254.0 {
authoritative;
default-lease-time 3600;
option domain-name-servers 8.8.8.8, 4.4.4.4;
option broadcast-address 172.16.173.255;
option subnet-mask 255.255.254.0;
option routers 172.16.172.1;
pool {
range 172.16.172.2 172.16.173.254;
allow members of "CPE";
deny members of "MTA";
}
}

} #end of shared network

#/* an EMTA entry */

host emta-cm {
hardware ethernet 00:14:f8:7d:ea:cb;
filename "0014f87deacb.bin";
}

host emta-mta {
hardware ethernet 00:14:f8:7d:ea:cc;
filename "0014f87deacc.bin";
}

husamaga
When i try to use this config

Ok, i fixed the config and it works, but the modems get IP's from MTA set and don't get online..

wittmann
I assume you have to remove

I assume you have to remove the semicolon (;) at the end of the line because in the next line the match rule goes further with the "and".

husamaga
Thanks,

OK,
the dhcp now starts, but the modems get's an IP from the MTA set 10.0.99... etc
Also i use a fixed ip address for modems, so i can make graphs for them..

Capm
yea

Woops yea there was the typo. I found that the order you put things in the config has an impact as well, and this was a good base structure to start from.

husamaga
With the new dhcpd server

With the new dhcpd server config, my MTA's don't get online, only the modems. something is wrong...

Capm
how did you change it to

how did you change it to accommodate the statics

Log in or register to post comments