Docsis_Server 3.5 Dynamic Configfiles? | docsis.org

You are here

Docsis_Server 3.5 Dynamic Configfiles?

7 posts / 0 new
Last post
micabu
Docsis_Server 3.5 Dynamic Configfiles?

Hi All,

i just tried the Docsis_server 3.5 on Centos 5.2.
It works fine for CM's but it needs at least 5 turns (ACK) from Server until the modem come online.
There is no log in syslog or logfile for dhcp or tftp.
I tried change to another Time-Server and TFTP-Server without sucess.
Any ideas? The modem starts reinitialisation after Ack.
It is a Thomson THG520.

Second question ist the dynamic file creation.
Is this working in this version now? Does anybody run this?
I'm missing the Config options in docsis_modem table.
There are still no docs for this version?

Thanks and regards
Michael

sonny
Does cable modem is online ?

Does cable modem is online ? syslog should be have log , also TFTP server too!
about the dynamic config i have try before , when you have many option , it will miss some option , so i don't have use it .

onvaris (not verified)
can you post your conf?

Hi micabu,
we are trying to get the 3.5 running, but for some reasion we are not getting an DHCP-ACK back. Can you post your config?

select * from config_nets;
select * from docsis_modem;
select * from config_opts;
select * from config_opts_macs;

I would like to try out your setting to see if we get an DHCP-ACK back...

Thanks for your help.

TK

micabu
Hi

again very late...
i apologize for that.

I made a backup of my lab-configuration and here are some parts of it.
Remember i made some changes so i can provision other devices like our fiber IAD and SIP MTAs.

Here ist a config from config_nets:

--
-- Table structure for table `config_nets`
--

DROP TABLE IF EXISTS `config_nets`;
CREATE TABLE `config_nets` (
`nettype` enum('CM','CPE','MTA','NO-AUTH') NOT NULL default 'CPE',
`cmts_ip` varchar(16) NOT NULL default '',
`cmts_vlan` smallint(5) unsigned NOT NULL default '0',
`network` varchar(20) NOT NULL default '',
`gateway` varchar(16) NOT NULL default '',
`grant_flag` enum('YES','NO') NOT NULL default 'YES',
`dynamic_flag` enum('YES','NO') NOT NULL default 'NO',
`full_flag` enum('YES','NO') NOT NULL default 'NO',
`range_min` varchar(16) NOT NULL default '',
`range_max` varchar(16) NOT NULL default '',
`lease_time` int(10) unsigned NOT NULL default '0',
`config_opt1` smallint(5) unsigned NOT NULL default '0',
`config_opt2` smallint(5) unsigned NOT NULL default '0',
`config_opt3` smallint(5) unsigned NOT NULL default '0',
`client_type` enum('CM','CP10') NOT NULL default 'CM',
PRIMARY KEY (`nettype`,`cmts_ip`,`cmts_vlan`,`network`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `config_nets`
--

LOCK TABLES `config_nets` WRITE;
/*!40000 ALTER TABLE `config_nets` DISABLE KEYS */;
INSERT INTO `config_nets` VALUES ('CM','172.17.4.1',1,'172.17.4.0/24','172.17.4.1','YES','NO','NO','172.17.4.200','172.17.4.230',3600,1,0,0,'CP10'),('CPE','172.17.4.1',1,'172.17.5.0/24','172.17.5.1','YES','YES','NO','172.17.5.200','172.17.5.220',3600,101,0,0,'CP10'),('CM','172.17.99.1',3,'172.17.99.0/24','172.17.99.1','YES','NO','NO','172.17.99.200','172.17.99.220',86400,3,0,0,'CP10'),('CPE','172.17.99.1',3,'172.17.5.0/24','172.17.5.1','YES','YES','NO','172.17.5.221','172.17.5.230',3600,103,0,0,'CP10'),('CM','10.10.96.1',2,'10.10.96.0/24','10.10.96.1','YES','NO','NO','10.10.96.200','10.10.96.220',3600,2,0,0,'CM'),('CPE','10.10.96.1',2,'10.10.104.0/24','10.10.104.1','YES','YES','NO','10.10.104.200','10.10.104.220',3600,102,0,0,'CM'),('CM','10.10.88.1',4,'10.10.88.0/24','10.10.88.1','YES','NO','NO','10.10.88.200','10.10.88.230',3600,4,0,0,'CM'),('CM','172.17.61.1',5,'172.17.61.0/24','172.17.61.1','YES','NO','NO','172.17.61.2','172.17.61.100',86400,5,0,0,'CP10'),('CPE','172.17.61.1',5,'172.17.61.0/24','172.17.61.1','YES','YES','NO','172.17.61.101','172.17.61.200',3600,105,0,0,'CP10');
/*!40000 ALTER TABLE `config_nets` ENABLE KEYS */;
UNLOCK TABLES;

I added the field "client_type" because i need for our fiber cpe wich is called "CP10".

Here is the config from docsis_modem:

--
-- Table structure for table `docsis_modem`
--

DROP TABLE IF EXISTS `docsis_modem`;
CREATE TABLE `docsis_modem` (
`modem_macaddr` varchar(15) NOT NULL default '',
`cmts_vlan` smallint(5) unsigned NOT NULL default '0',
`serialnum` varchar(30) NOT NULL default '',
`subnum` bigint(20) unsigned NOT NULL default '0',
`config_file` varchar(50) NOT NULL default '',
`dynamic_config_file` varchar(255) NOT NULL default '',
`static_ip` tinyint(3) unsigned NOT NULL default '0',
`dynamic_ip` tinyint(3) unsigned NOT NULL default '0',
`config_opt` smallint(5) unsigned NOT NULL default '0',
`client_type` enum('CM','CP10','MTA') NOT NULL default 'CM',
PRIMARY KEY (`modem_macaddr`),
UNIQUE KEY `serialnum` (`serialnum`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `docsis_modem`
--

LOCK TABLES `docsis_modem` WRITE;
/*!40000 ALTER TABLE `docsis_modem` DISABLE KEYS */;
INSERT INTO `docsis_modem` VALUES ('001692A3A954',2,'2005',0,'001692A3A954.bin','1001,5005,101,501',0,3,0,'CM'),('000723060086',3,'2006',0,'000723060086.cfg','7000,7001',0,0,0,'CP10'),('00072306007E',3,'2007',0,'00072306007E.cfg','7000,7001',0,0,0,'CP10'),('0015960dfb77',2,'2001',0,'0015960dfb77.bin','1001,5001,104,501',0,3,0,'CM'),('0005ca53e579',2,'2002',0,'0005ca53e579.bin','1001,5004,104,501',0,3,0,'CM'),('0011E356B791',2,'2003',0,'0011E356B791.bin','1001,5003,102,501',0,3,0,'CM'),('008025001135',2,'2002-MTA',0,'emta+i.conf','',0,0,0,'MTA'),('0015960df496',4,'2004',0,'0015960df496.bin','1001,5001,103,501',0,3,0,'CM'),('000723060084',5,'1002',0,'000723060084.cfg','7000,7001',0,0,0,'CP10'),('00072306009e',5,'1005',0,'00072306009e.cfg','7000,7001',0,0,0,'CP10');
/*!40000 ALTER TABLE `docsis_modem` ENABLE KEYS */;
UNLOCK TABLES;

Again here is an extra field called client_type.
You can just delete this if you want to test this config.

Here is the config_opts:

--
-- Table structure for table `config_opts`
--

DROP TABLE IF EXISTS `config_opts`;
CREATE TABLE `config_opts` (
`server_id` tinyint(3) unsigned NOT NULL default '1',
`opt_id` smallint(5) unsigned NOT NULL default '0',
`opt_type` tinyint(3) unsigned NOT NULL default '0',
`opt_dtype` enum('IP','2IP','INT8','UINT8','INT16','UINT16','INT32','UINT32','CHAR','SUBOPT','HEX','MTA-IP','MTA-REALM') NOT NULL default 'CHAR',
`opt_value` varchar(250) NOT NULL default '',
`sub_opt` smallint(5) unsigned NOT NULL default '0',
`comment` varchar(250) NOT NULL default '',
PRIMARY KEY (`server_id`,`opt_id`,`opt_type`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `config_opts`
--

LOCK TABLES `config_opts` WRITE;
/*!40000 ALTER TABLE `config_opts` DISABLE KEYS */;
INSERT INTO `config_opts` VALUES (1,1,54,'IP','172.17.2.60',0,'Lease Server IP'),(1,1,6,'2IP','172.17.2.21',0,'DNS Server'),(1,1,15,'CHAR','bridacom.lab',0,'Domain Name'),(1,1,2,'INT32','0',0,'Time Offset'),(1,1,4,'IP','172.17.2.60',0,'Time Server'),(1,1,7,'IP','172.17.2.60',0,'Log Server'),(1,1,66,'CHAR','172.17.2.60',0,'TFTP Server'),(1,101,54,'IP','172.17.2.60',0,'Lease Server IP'),(1,101,6,'2IP','172.17.2.21',0,'DNS Server'),(1,101,15,'CHAR','bridacom.lab',0,'Domain Name'),(1,101,2,'INT32','0',0,'Time Offset'),(1,101,4,'IP','172.17.2.60',0,'Time Server'),(1,101,7,'IP','172.17.2.60',0,'Log Server'),(1,3,54,'IP','172.17.2.60',0,'Lease Server IP'),(1,3,6,'2IP','172.17.2.21',0,'DNS Server'),(1,3,15,'CHAR','bridacom.lab',0,'Domain Name'),(1,3,2,'INT32','0',0,'Time Offset'),(1,3,4,'IP','172.17.2.60',0,'Time Server'),(1,3,7,'IP','172.17.2.60',0,'Log Server'),(1,3,66,'CHAR','172.17.2.60',0,'TFTP Server'),(1,103,54,'IP','172.17.2.60',0,'Lease Server IP'),(1,103,6,'2IP','172.17.2.21',0,'DNS Server'),(1,103,15,'CHAR','bridacom.lab',0,'Domain Name'),(1,103,2,'INT32','0',0,'Time Offset'),(1,103,4,'IP','172.17.2.60',0,'Time Server'),(1,103,7,'IP','172.17.2.60',0,'Log Server'),(1,2,54,'IP','172.17.2.60',0,'Lease Server IP'),(1,2,6,'2IP','172.17.2.21',0,'DNS Server'),(1,2,15,'CHAR','bridacom.lab',0,'Domain Name'),(1,2,2,'INT32','0',0,'Time Offset'),(1,2,4,'IP','172.17.2.60',0,'Time Server'),(1,2,7,'IP','172.17.2.60',0,'Log Server'),(1,2,66,'CHAR','172.17.2.60',0,'TFTP Server'),(1,102,54,'IP','172.17.2.60',0,'Lease Server IP'),(1,102,6,'2IP','172.17.2.21',0,'DNS Server'),(1,102,15,'CHAR','bridacom.lab',0,'Domain Name'),(1,102,2,'INT32','0',0,'Time Offset'),(1,102,4,'IP','172.17.2.60',0,'Time Server'),(1,102,7,'IP','172.17.2.60',0,'Log Server'),(1,4,66,'CHAR','172.17.2.60',0,'TFTP Server'),(1,4,7,'IP','172.17.2.60',0,'Log Server'),(1,4,4,'IP','172.17.2.60',0,'Time Server'),(1,4,2,'INT32','0',0,'Time Offset'),(1,4,15,'CHAR','bridacom.lab',0,'Domain Name'),(1,4,6,'2IP','172.17.2.21',0,'DNS Server'),(1,4,54,'IP','172.17.2.60',0,'Lease Server IP'),(1,105,6,'2IP','172.17.2.21',0,'DNS Server'),(1,105,54,'IP','172.17.2.60',0,'Lease Server IP'),(1,5,66,'CHAR','172.17.2.60',0,'TFTP Server'),(1,5,7,'IP','172.17.2.60',0,'Log Server'),(1,5,4,'IP','172.17.2.60',0,'Time Server'),(1,5,2,'INT32','0',0,'Time Offset'),(1,5,15,'CHAR','bridacom.lab',0,'Domain Name'),(1,5,6,'2IP','172.17.2.21',0,'DNS Server'),(1,5,54,'IP','172.17.2.60',0,'Lease Server IP'),(1,10,7,'IP','172.17.2.60',0,'Log Server'),(1,10,4,'IP','172.17.2.60',0,'Time Server'),(1,10,2,'INT32','0',0,'Time Offset'),(1,10,15,'CHAR','',0,'Domain Name'),(1,10,6,'2IP','',0,'DNS Server'),(1,10,54,'IP','172.17.2.60',0,'Lease Server IP'),(1,105,15,'CHAR','bridacom.lab',0,'Domain Name'),(1,105,2,'INT32','0',0,'Time Offset'),(1,105,4,'IP','172.17.2.60',0,'Time Server'),(1,105,7,'IP','172.17.2.60',0,'Log Server');
/*!40000 ALTER TABLE `config_opts` ENABLE KEYS */;
UNLOCK TABLES;

I have here many entrys because i use a seperate id for each subnet/devicetyp

I don't use the config_option_macs table so this one is empty.

Hope this helps you.
If you dont have a webgui i suggest you to use webmin to administrate the database.

regards
Michael

micabu
Dynamic Configfiles?

Hi all,

i get it work!
You just have to put the config_opts created in "config_modem" comma separeted in the field "dynamic_configfile" in table "docsis_modem".
Of course you have to install the docsis tool first so the encoder can work and put the encoded option in "config_modem_bin".

Docsis_server 3.5 works fine for me and i add some features for a fiber AID with SIP MTA.

best regards,
Michael

sonny
hi micabu can you share you

hi micabu
can you share you setup sql to me ?
i have try do this , but always miss some encoded option , my e-mail address : sonny420@gmail.com.
by the way how about the setting about the EMTA?
i only can use hex type to setup the option-122 , and use giaddr to decide the subnet for emta .
can you tell me your idea ?

micabu
Sorry

about my late response!
You will miss options, when encoding fails. So first look in the config_modem_bin table for
encoded entry! After that restart the docsis daemons to reload cache!

I'm usind SIP MTAs so there is no need of option 122.
Only Packetcable is using this option.
In Docsis_server 3.5 there is still a bug with these settings.
I hope i can implementate NCS soon.

At this Moment Sip Provisioning is done with proparitary solutions.
Most SIP MTA uses Configfiles in clear text. Behind a cablemodem this is ok because of BPI encription.
In my case with Fiber CPEs we do provisioning with snmp. Therefore i add snmptools as used with nagios.
(SNMPTT) and this works great.

If you are interessred i van provide you wih my sql-settings. But i add some more table fpr subscriber and devices.
So i made a lot of changes to the tables.

regards
Michael

Log in or register to post comments