bschirrmeister / docsis_server

docsis_server
GNU General Public License v2.0
18 stars 10 forks source link

dhcp offer mta docsis_server 3.5 #5

Open cuisini opened 7 years ago

cuisini commented 7 years ago

I installed the docsis server 3.5, the provissioning for cm and cpe run fine, but when i try provissioning the mta in the dhcp_log says "offer mta NO", this is my config.

server_id opt_id opt_type opt_dtype opt_value sub_opt comment 1 1 54 IP 10.123.2.244 0 Lease Server IP 1 1 6 IP 10.123.2.244 0 DNS Servers 1 1 15 CHAR cpe.rpp.com 0 Domain Name 1 1 2 INT32 28800 0 Time Offset 1 1 4 IP 10.123.2.244 0 Time Server 1 1 7 IP 10.10.0.1 0 Log Server 1 1 66 CHAR 10.123.2.244 0 TFTP Server 1 1 3 IP 10.5.0.1 0 Router 1 100 54 IP 10.123.2.244 0 Lease Server IP 1 100 6 IP 8.8.8.8 0 DNS Servers 1 100 15 CHAR cpe.rpp.com 0 Domain Name 1 101 6 IP 10.123.2.244 0 DNS Servers 1 101 15 CHAR mta.rpp.com 0 Domain Name 1 101 2 INT32 28800 0 Time Offset 1 101 7 IP 192.168.5.1 0 Log Server 1 101 122 MTA-REALM 10.123.2.244,BASIC.1 0 MTA-ProvisioningServer,REALM 1 101 54 IP 10.123.2.244 0
1 1 122 MTA-IP 10.123.2.244,10.123.2.244 0 TSP's primary DHCP-Server


nettype cmts_ip cmts_vlan network gateway grant_flag dynamic_flag full_flag range_min range_max lease_time config_opt1 config_opt2 config_opt3 CM 10.5.0.1 1 10.5.0.0/17 10.5.0.1 NO YES NO 10.5.0.5 10.5.127.254 31536000 1 0 0 CPE 10.5.0.1 1 192.168.6.0/24 192.168.6.1 YES YES NO 192.168.6.2 192.168.6.254 86400 100 0 0 MTA 10.5.0.1 1 10.7.0.0/17 10.7.0.1 YES YES NO 10.7.0.5 10.7.127.254 86400 101 0 0


Log_dhcp:

1 OFFER MTA NO NO 233627707468954 174129158 233627707468953 1 2016-10-12 12:10:10 1 OFFER MTA NO NO 233627707468954 174129158 233627707468953 1 2016-10-12 12:10:07 1 ACK CPE YES NO 233627707468955 3203031093 233627707468953 0 2016-10-12 12:10:07 1 ACK CPE YES NO 233627707468955 3203031093 233627707468953 0 2016-10-12 12:10:06 1 OFFER MTA NO NO 233627707468954 174129158 233627707468953 1 2016-10-12 12:10:06 1 OFFER MTA NO NO 233627707468954 174129158 233627707468953 1 2016-10-12 12:10:04 1 OFFER CPE YES NO 233627707468955 3203031093 233627707468953 0 2016-10-12 12:10:04 1 OFFER CPE YES NO 233627707468955 3203031093 233627707468953 0 2016-10-12 12:09:49 1 ACK CM NO NO 233627707468953 173998085 233627707468953 0 2016-10-12 12:09:49 1 ACK CM NO NO 233627707468953 173998085 233627707468953 0

bschirrmeister commented 7 years ago

Hi cuisini,

the configuration looks ok from the first view, could you please provide a pcap-trace from the requestion CM/MTA?

thank you

cuisini commented 7 years ago

Hi bschirrmeister,

I attach the pcap-trace of CM and MTA, I changed the net for cm(10.95.0.0) mta (10.97.0.0).

Regards

pcap.zip

bschirrmeister commented 7 years ago

Hi cuisini,

it seems that there is no route to 10.97.x.x on your linux server,

could you check "ip route show" or "route"

can you ping 10.97.0.1?

best regards, Benedikt

cuisini commented 7 years ago

Hi bschirrmeister,

I made the changes on the routing, but can't offer dhcp mta . I attach the pcap pcap1.zip

Regards

bschirrmeister commented 7 years ago

Hi cuisini,

in your trace I can see a MTA with the MAC: d4:7b:b0:83:6c:9a It gets an offer with: IP: 10.97.0.6/255.255.128.0 Router 10.97.0.1 Bootfile: mta-d47bb0836c9a

what is requested but not provided is the hostname: Option 12:

Could you please add the following: INSERT INTO config_opts_macs (macaddr, opt_id, opt_type, opt_dtype, opt_value, sub_opt, comment) VALUES ('d47bb0836c9a', 1, 12, 'CHAR', 'd47bb0836c9a', 0, 'Hostname'),

If not already done, do: UPDATE docsis_modem set subnum="1" where modem_macaddr="d47bb0836c9a";

Please let me know if this helps.

regards, Benedikt

cuisini commented 7 years ago

Hi Benedikt,

Yes, in the tables I have this: docsis_modem: ('d47bb0836c9a', 1, 'cm2mta', 1, 'mta-d47bb0836c9a', '0', 0, 0, 0)

config_opts_macs: ('d47bb0836c9a', 1, 12, 'CHAR', 'd47bb0836c9a', 0, 'Hostname')

Regards

Cuisini