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