Selfmade patch for docsis_server 2.0.4, pair ipaddr CPE with customer CM | docsis.org

You are here

Selfmade patch for docsis_server 2.0.4, pair ipaddr CPE with customer CM

2 posts / 0 new
Last post
elio
Selfmade patch for docsis_server 2.0.4, pair ipaddr CPE with customer CM
Yesterday I wrote patch for docsis_server 2.0.4. I add something like this: - You can pair ipaddr for customer with their modem. - Even if client has new macaddr for CPE he still get their own IPaddr with new mac addr. - You can pair more then one IP CPE with one modem_macaddr - in thise case new mac addr will get IP, which was granted earliest This patch need new table in docsis_server CREATE TABLE `dhcp_pair` ( `modem_macaddr` varchar(15) NOT NULL, `ipaddr` varchar(16) NOT NULL, `cmts_vlan` mediumint(9) NOT NULL, `time` timestamp NOT NULL default CURRENT_TIMESTAMP ) ENGINE=MyISAM DEFAULT CHARSET=latin1; it work like this: - when someone connect new CPE to CM docsis_server make a select from dhcp_leases, - if select from dhcp_leases get 0 rows then docsis_server make a select from dhcp_pair - if it find ipaddr related to modem_macaddr the docsis_server make insert ipaddr and cpe macaddr into dhcp_leases - in second ask of IP cpe will get correct IP. - if in dhcp_pair are not any pair then cpe will not get IP. - if in dhcp_leases exist ipaddr, but with different mac docsis_server will update new mac here is a patch: http://sloniewski.pl/public/docsis_server-2.0.4.patch Any hint what I can add? ps. I saw there is a new docsis_server ;) ver 3.5 :P At this url: http://users.accesscomm.ca/docsis_server/docsis-server-current.tar.bz2 but i can find anything talking about configuration and rule of working.. Anyone use it already? ps2. Sorry for my poor english, but I read more than write or talk..
sonny
Dear Elio i have try to

Dear Elio

i have try to install docsis ver3.5 in docsis-server-current.tar.bz2
the setting is very different docsis 2.0.4, but the most important is
the dhcpd part will auto crash after get cable modem dhcp request .....Orz

i am the new user of the docsis_server , can you share some information about this ?

my E-maill address :sonny420@gmail.com
if you have interest .
by the way my english is poor too XD

Log in or register to post comments