Dear All,
we have just set up the Docsis-Server 3.5 and we cannot get the CM to sent a DHCP Ack. CM are stuck in dhcp(o). We are using:
SA-CM -> BSR2000 -> Docsis-Server 3.5
03/20-22:45:07.47:Udp-dhcp]-D-Relay BOOTREQ DISCOVER packet from cable 0/0 to server with src 10.10.0.1, dst x.x.x.206, srcport 68, dstport 67 ciaddr 0.0.0.0, yiaddr 0.0.0.0, giaddr 10.10.0.1, chaddr 00:1a:c3:06:b3:00, xid 0x34a88f2a, VPN 0
[03/20-22:45:07.56:Udp-dhcp]-D-Relay BOOTREP OFFER to client on cable 0/0 with src 10.10.0.1, dst 10.10.0.6, srcport 67, dstport 68 ciaddr 0.0.0.0, yiaddr 10.10.0.6, giaddr 10.10.0.1, chaddr 00:1a:c3:06:b3:00, xid 0x34a88f2a, VPN 0
On a different site we use a different DHCP-Server. The main differents is that the BOOTREP OFFER looks different. The dst is the Boradcast address 255.255.255.255. And here is works.
[03/20-09:51:32.71- 07:Udp-dhcp]-D-Relay BOOTREP OFFER to client on cable 0/0 with src 10.70.192.1, dst 255.255.255.255, srcport 67, dstport 68 ciaddr 0.0.0.0, yiaddr 10.70.192.90, giaddr 10.70.192.1, chaddr 00:11:80:2c:e0:22, xid 0x05c76374, VPN 0
Any idea what we have to change in the Docsis-Server 3.5 to make it work?
Thanks for your help.
TK
From the dhcp server, can you ping the modem gateway? from the BSR2k, if you type ping and then enter, you can walk your way through to do a ping from the modem gateway (source) to the dhcp server (destination). on the BSR2k, try a debug ip udp dhcp. this will help show what the modems and BSR2k see and do.
How is the BSR2k configured? there are 4 10/100 ports and 2gigE ports. does the dhcp server connect to one of those ports or does it go through a router and firewall? What does your config/route look like on the BSR2k?
Carl
Hi Carl,
Thanks for you replay. From the DHCP-Server I can Ping the CM-GW and CPE-GW configured on the CMTS and other way around. I have done the debugs and what I see is the followring: On the CMTS I see the Discover and Offer from CMTS & DHCP Server, but not a Req from the CM... Here is the output from the Debug on the CMTS:
3/20-22:45:07.47:Udp-dhcp]-D-Relay BOOTREQ DISCOVER packet from cable 0/0 to server with src 10.10.0.1, dst 192.168.0.48, srcport 68, dstport 67 ciaddr 0.0.0.0, yiaddr 0.0.0.0, giaddr 10.10.0.1, chaddr 00:1a:c3:06:b3:00, xid 0x34a88f2a, VPN 0
[03/20-22:45:07.56:Udp-dhcp]-D-Relay BOOTREP OFFER to client on cable 0/0 with src 10.10.0.1, dst 10.10.0.6, srcport 67, dstport 68 ciaddr 0.0.0.0, yiaddr 10.10.0.6, giaddr 10.10.0.1, chaddr 00:1a:c3:06:b3:00, xid 0x34a88f2a, VPN 0
The conf on the interface looks like this: The DHCP is in the same subnet as the ethernet 0/0. No FW in place. I think routing is fine, more a DHCP issue (setup or something):
interface cable 0/0
ip address 10.10.0.1 255.255.252.0
ip address 192.168.1.1 255.255.255.0 secondary host
cable helper-address 192.168.0.48 cable-modem
cable helper-address 192.168.0.48 host
cable dhcp-giaddr primary
ip dhcp relay information option
host authorization on
dhcp leasequery authorization on
interface ethernet 0/0
ip address 192.168.0.49 255.255.255.0
ip route 0.0.0.0 0.0.0.0 192.168.0.2
Thanks for you help & support.
Regards
TK
cable dhcp-giaddr primary
mine looks like this:
cable upstream 3 rate-limit
cable upstream 3/0 active-codes 128
cable upstream 3/0 codes-minislot 32
cable upstream 3/0 spread-interval 4
no cable upstream 3 shutdown
no cable upstream 3/0 shutdown
cable upstream 3/1 shutdown
cable upstream 3/2 shutdown
cable upstream 3/3 shutdown
cable invited-ranging-attempts 0
cable ucd-interval 2000
no cable concatenation docsis-1.0
cable dynamic-service authorization-mode authorize
cable dynamic-service active-timeout 300
ip dhcp relay information option
host authorization on
dhcp leasequery authorization on
cable downstream schedule priority-wfq
no cable wireless downstream modulation qpsk
Also, what bootrom and firmware are you running on the cmts?
...upps, now my replay is in the middle...
sorry.
TK
Just sent you the trace and a show run ...
Thanks.
TK
I'm @ work so can't check it out as much as I should. but sent you one from my setup with the same modem model
and dhcp options I use
Can you show the log of the docsis_server ?
maybe the problem is miss some option ?
Sonny
Hi Sonny,
here is the log:
| 2009-03-24 | 02:33:33 | 1 | OFFER | CM | NO | NO | 143897932502 | 168427525 | 0 | 0 |
| 2009-03-24 | 02:34:06 | 1 | OFFER | CM | NO | NO | 143897932502 | 168427525 | 0 | 0 |
| 2009-03-24 | 02:34:09 | 1 | OFFER | CM | NO | NO | 143897932502 | 168427525 | 0 | 0 |
| 2009-03-24 | 02:34:16 | 1 | OFFER | CM | NO | NO | 143897932502 | 168427525 | 0 | 0 |
| 2009-03-24 | 02:34:48 | 1 | OFFER | CM | NO | NO | 143897932502 | 168427525 | 0 | 0 |
| 2009-03-24 | 02:34:52 | 1 | OFFER | CM | NO | NO | 143897932502 | 168427525 | 0 | 0 |
+------------+----------+----------+---------+------+--------------+-------------+--------------+-----------+-----------------+--------+
I have already sent Carl my results from the last tests which I have done:
What do you think?
------
Hi Carl,
I moved the vlan, but still same issue. Then I changed the subnet-options and noticed that the DHCP-OFFER from the DHCP will not include the changes. So I did some more changes incl. domain-name, time-offset ect with the same results - nothing will change inside the DHCP-OFFER. When I delete all CM from the database, I receive a DHCP-NACK, so subnet and cm tables are working on the DHCP-Server. But somehow the option-tables does not. I believe the option table is somehow not bind to the subnet and cm table, but here is my conf: Also I sent you the Trace with ethereal.
Any Ideas?
Here is the config on the mysql from the DHCP-Sever:
Thanks for you help and support.
Regards
TK
mysql> select * from config_nets;
+---------+-------------+-----------+----------------+-------------+------------+--------------+-----------+-------------+---------------+------------+-------------+-------------+-------------+
| 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.10.0.1 | 0 | 10.10.0.0/22 | 10.10.0.1 | NO | NO | NO | 10.10.0.5 | 10.10.3.254 | 86400 | 1 | 0 | 0 |
| CPE | 192.168.1.1 | 0 | 192.168.1.0/24 | 192.168.1.1 | YES | NO | NO | 192.168.1.2 | 192.168.1.254 | 86400 | 100 | 0 | 0 |
+---------+-------------+-----------+----------------+-------------+------------+--------------+-----------+-------------+---------------+------------+-------------+-------------+-------------+
2 rows in set (0.00 sec)
mysql> select * from docsis_modem;
+---------------+-----------+-----------+--------+-------------+---------------------+-----------+------------+------------+
| modem_macaddr | cmts_vlan | serialnum | subnum | config_file | dynamic_config_file | static_ip | dynamic_ip | config_opt |
+---------------+-----------+-----------+--------+-------------+---------------------+-----------+------------+------------+
| 0011e622c0d7 | 0 | 001 | 0 | 6000.bin | 0 | 0 | 0 | 0 |
| 002180fc32d6 | 0 | 002 | 0 | 20000.bin | 0 | 0 | 0 | 0 |
| 001ac306b300 | 0 | 003 | 0 | 20000.bin | 0 | 0 | 0 | 0 |
+---------------+-----------+-----------+--------+-------------+---------------------+-----------+------------+------------+
3 rows in set (0.00 sec)
mysql> select * from config_opts;
+-----------+--------+----------+-----------+-------------------------+---------+-----------------+
| server_id | opt_id | opt_type | opt_dtype | opt_value | sub_opt | comment |
+-----------+--------+----------+-----------+-------------------------+---------+-----------------+
| 1 | 54 | 4 | IP | 192.168.0.48 | 0 | Lease Server IP |
| 1 | 6 | 8 | 2IP | 192.168.0.2,192.168.0.3 | 0 | DNS Servers |
| 1 | 15 | 14 | CHAR | lab-01.onvaris.de | 0 | Domain Name |
| 1 | 2 | 4 | INT32 | -100 | 0 | Time Offset |
| 1 | 4 | 4 | IP | 10.10.0.1 | 0 | Time Server |
| 1 | 7 | 4 | IP | 10.10.0.1 | 0 | Log Server |
| 1 | 66 | 4 | CHAR | 192.168.0.48 | 0 | TFTP Server |
+-----------+--------+----------+-----------+-------------------------+---------+-----------------+
7 rows in set (0.00 sec)
mysql>
----
Hi, try to change cmts_vlan int docsis_modem to "1". I use uBR7246VXR and docsis server 2.0.4 and my cmts_vlan is set 1. Can you log to the modem from ethernet, what is in the modem log?(sorry for my English).
I have never used docsis server for DHCP but if these are the only options you are sending the modems
| 1 | 54 | 4 | IP | 192.168.0.48 | 0 | Lease Server IP |
| 1 | 6 | 8 | 2IP | 192.168.0.2,192.168.0.3 | 0 | DNS Servers |
| 1 | 15 | 14 | CHAR | lab-01.onvaris.de | 0 | Domain Name |
| 1 | 2 | 4 | INT32 | -100 | 0 | Time Offset |
| 1 | 4 | 4 | IP | 10.10.0.1 | 0 | Time Server |
| 1 | 7 | 4 | IP | 10.10.0.1 | 0 | Log Server |
| 1 | 66 | 4 | CHAR | 192.168.0.48 | 0 | TFTP Server |
then your problem is that the modems cannot talk back to the DHCP Server because you have not given them a gateway. You need to add a routers option with the appropriate gateway for the modems.
The other thing I notice is
mysql> select * from docsis_modem;
+---------------+-----------+-----------+--------+-------------+---------------------+-----------+------------+------------+
| modem_macaddr | cmts_vlan | serialnum | subnum | config_file | dynamic_config_file | static_ip | dynamic_ip | config_opt |
+---------------+-----------+-----------+--------+-------------+---------------------+-----------+------------+------------+
| 0011e622c0d7 | 0 | 001 | 0 | 6000.bin | 0 | 0 | 0 | 0 |
| 002180fc32d6 | 0 | 002 | 0 | 20000.bin | 0 | 0 | 0 | 0 |
| 001ac306b300 | 0 | 003 | 0 | 20000.bin | 0 | 0 | 0 | 0 |
+---------------+-----------+-----------+--------+-------------+---------------------+-----------+------------+------------+
3 rows in set (0.00 sec)
shouldn't config_opt be a '1' not a '0' so you use the right opts?
your cable modem don't have ack the offer.
CMTS_VLAN set be 1. even you don't have use vlan , also config_nets same.
and docsis server 3.5 config_opts table is different with docsis server 2.0.4
watch out the table
server _id : 1
opt_id : 100
opt_type: the option code
..........etc
different is don't have length
Hi Sonny, Hikwesibrunee,
1. I have changed the config_opt in the CM-Table to 1 - still no DHCP-ACK received.
2. I have changed the cmts_vlan to 1 in config_nets-Table & in the docsis_modem-Table to 1 as well. - now we are receiving DHCP-NACK.
3. Then, I changed the config_opt in the docsis_modem-Table to 0 - then we see an DHCP-OFFER but still no DHCP-ACK.
The conf now looks like this:
mysql> select * from config_nets;
+---------+-------------+-----------+----------------+-------------+------------+--------------+-----------+-------------+---------------+------------+-------------+-------------+-------------+
| 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.10.0.1 | 1 | 10.10.0.0/22 | 10.10.0.1 | NO | NO | NO | 10.10.0.5 | 10.10.3.254 | 86400 | 1 | 0 | 0 |
| CPE | 192.168.1.1 | 1 | 192.168.1.0/24 | 192.168.1.1 | YES | NO | NO | 192.168.1.2 | 192.168.1.254 | 86400 | 100 | 0 | 0 |
+---------+-------------+-----------+----------------+-------------+------------+--------------+-----------+-------------+---------------+------------+-------------+-------------+-------------+
2 rows in set (0.00 sec)
mysql> select * from docsis_modem;
+---------------+-----------+-----------+--------+-------------+---------------------+-----------+------------+------------+
| modem_macaddr | cmts_vlan | serialnum | subnum | config_file | dynamic_config_file | static_ip | dynamic_ip | config_opt |
+---------------+-----------+-----------+--------+-------------+---------------------+-----------+------------+------------+
| 0011e622c0d7 | 1 | 001 | 0 | 6000.bin | 0 | 0 | 0 | 0 |
| 002180fc32d6 | 1 | 002 | 0 | 20000.bin | 0 | 0 | 0 | 0 |
| 001ac306b300 | 1 | 003 | 0 | 20000.bin | 0 | 0 | 0 | 0 |
+---------------+-----------+-----------+--------+-------------+---------------------+-----------+------------+------------+
3 rows in set (0.00 sec)
mysql> select * from config_opts;
+-----------+--------+----------+-----------+-------------------------+---------+-----------------+
| server_id | opt_id | opt_type | opt_dtype | opt_value | sub_opt | comment |
+-----------+--------+----------+-----------+-------------------------+---------+-----------------+
| 1 | 54 | 4 | IP | 192.168.0.48 | 0 | Lease Server IP |
| 1 | 6 | 8 | 2IP | 192.168.0.2,192.168.0.3 | 0 | DNS Servers |
| 1 | 15 | 14 | CHAR | lab-01.onvaris.de | 0 | Domain Name |
| 1 | 2 | 4 | INT32 | -100 | 0 | Time Offset |
| 1 | 3 | 4 | IP | 192.168.0.48 | 0 | Lease Server IP |
| 1 | 4 | 4 | IP | 10.10.0.1 | 0 | Time Server |
| 1 | 7 | 4 | IP | 10.10.0.1 | 0 | Log Server |
| 1 | 66 | 4 | CHAR | 192.168.0.48 | 0 | TFTP Server |
+-----------+--------+----------+-----------+-------------------------+---------+-----------------+
8 rows in set (0.00 sec)
mysql> select * from config_opts_macs;
Empty set (0.00 sec)
mysql>
Thanks for help.
Thanks and Regards
TK
Any chance you could send us a decoded DHCPOFFER packet i.e. using Wireshark that would go a long way to determining what is going on.
Of course just give me an email address.
Thanks
TK
if you use docsis server 3.5 ans
+-----------+--------+----------+-----------+---------------------------+---------+-----------------+
| server_id | opt_id | opt_type | opt_dtype | opt_value | sub_opt | comment |
+-----------+--------+----------+-----------+---------------------------+---------+-----------------+
| 1 | 10 | 2 | INT32 | 28800 | 0 | Time Offset |
| 1 | 10 | 15 | CHAR | cm.domainname.com | 0 | Domain Name |
| 1 | 10 | 6 | 2IP | 10.200.200.254,168.95.1.1 | 0 | DNS Servers |
| 1 | 10 | 54 | IP | 10.200.200.253 | 0 | Lease Server IP |
| 1 | 10 | 4 | IP | 10.200.200.253 | 0 | Time Server |
| 1 | 10 | 7 | IP | 10.200.200.253 | 0 | Log Server |
| 1 | 10 | 66 | CHAR | 10.200.200.253 | 0 | TFTP Server |
+-----------+--------+----------+-----------+---------------------------+---------+-----------------+
Hi Sonny,
THANKS - that was the problem. I missconfigured the options. I used your setup and now CM are comming online - great.
But now the CPE are not getting an IP-Address. In the DHCP_LOG I see that they will be identified as CM not CPE - idea?
Here is the log:
DHCP-SERVER:
mysql> select * from dhcp_log;
+------------+----------+----------+---------+------+--------------+-------------+--------------+-----------+-----------------+--------+
| thedate | thetime | serverid | sending | type | dynamic_flag | mcache_flag | b_macaddr | b_ipaddr | b_modem_macaddr | subnum |
+------------+----------+----------+---------+------+--------------+-------------+--------------+-----------+-----------------+--------+
| 2009-04-07 | 11:49:29 | 1 | OFFER | CM | NO | NO | 143897932502 | 168427525 | 0 | 0 |
| 2009-04-07 | 11:49:30 | 1 | ACK | CM | NO | NO | 143897932502 | 168427525 | 0 | 0 |
| 2009-04-07 | 11:50:36 | 1 | NAK | CM | NO | NO | 111187091296 | 0 | 143897932502 | 0 |
| 2009-04-07 | 11:50:37 | 1 | NAK | CM | NO | NO | 111187091296 | 0 | 143897932502 | 0 |
FROM CMTS:
CM
[04/07-11:50:29.48:Udp-dhcp]-D-Relay BOOTREQ DISCOVER packet from cable 0/0 to server with src 10.10.0.1, dst 192.168.0.48, srcport 68, dstport 67 ciaddr 0.0.0.0, yiaddr 0.0.0.0, giaddr 10.10.0.1, chaddr 00:21:80:fc:32:d6, xid 0x6f007332, VPN 0
[04/07-11:50:29.51:Udp-dhcp]-D-Relay BOOTREP OFFER to client on cable 0/0 with src 10.10.0.1, dst 10.10.0.5, srcport 67, dstport 68 ciaddr 0.0.0.0, yiaddr 10.10.0.5, giaddr 10.10.0.1, chaddr 00:21:80:fc:32:d6, xid 0x6f007332, VPN 0
[04/07-11:50:29.60:Udp-dhcp]-D-Relay BOOTREQ REQUEST packet from cable 0/0 to server with src 10.10.0.1, dst 192.168.0.48, srcport 68, dstport 67 ciaddr 0.0.0.0, yiaddr 0.0.0.0, giaddr 10.10.0.1, chaddr 00:21:80:fc:32:d6, xid 0x6f007332, VPN 0
[04/07-11:50:30.01:Udp-dhcp]-D-Relay BOOTREP ACK to client on cable 0/0 with src 10.10.0.1, dst 10.10.0.5, srcport 67, dstport 68 ciaddr 0.0.0.0, yiaddr 10.10.0.5, giaddr 10.10.0.1, chaddr 00:21:80:fc:32:d6, xid 0x6f007332, VPN 0
CPE
[04/07-11:50:36.13:Udp-dhcp]-D-Relay BOOTREQ DISCOVER packet from cable 0/0 to server with src 10.10.0.1, dst 192.168.0.48, srcport 68, dstport 67 ciaddr 0.0.0.0, yiaddr 0.0.0.0, giaddr 10.10.0.1, chaddr 00:19:e3:44:5f:60, xid 0x4257c062, VPN 0
[04/07-11:50:36.28:Udp-dhcp]-D-Relay BOOTREP NAK to client on cable 0/0 with src 10.10.0.1, dst 0.0.0.0, srcport 67, dstport 68 ciaddr 0.0.0.0, yiaddr 0.0.0.0, giaddr 10.10.0.1, chaddr 00:19:e3:44:5f:60, xid 0x4257c062, VPN 0
Thanks and Regards
TK
E-mail to me your config_net table , docsis_modem table
my E-mail : sonny420@gmail.com
and i think dhcp server reject your dhcp request!
Hi Sonny,
I have just forwarded you the config. When we delete the "cable dhcp-giaddr primary" from the cable interface the CPE are getting an IP Address. Is there anything what we can adjust in the dhcp-server to support "cable dhcp-giaddr primary"?
Thanks and Regards
TK
look your log
is the "Cable dhcp-giaddr primary" will let your cm and cpe dhcp request giaddr all use cable modem gateway ?
if yes , then you can't use docsis server , because different subnet ,in the same gateway , docsis server can't assign ip for that.
in normal state , primary ip in cmts --> cm gateway , secondary ip in cmts --cpe gateway .
jasonp at cablemo.com
lol
that is the magic from docsis_server
router , mask , gateway option will give with opt_nets table, it's use gateway ip address to assign the ip
, so i can't dynamic change assign different subnet when the same gateway .....
but docsis_server is still enough for everybody.
Hi Carl,
I have removed the cable dhcp-giaddr primary command - still no DHCP - ACK.
[03/23-15:26:06.57:Udp-dhcp]-D-Relay BOOTREQ DISCOVER packet from cable 0/0 to server with src 10.10.0.1, dst 192.168.0.48, srcport 68, dstport 67 ciaddr 0.0.0.0, yiaddr 0.0.0.0, giaddr 10.10.0.1, chaddr 00:21:80:fc:32:d6, xid 0x6fca3a58, VPN 0
[03/23-15:26:06.72:Udp-dhcp]-D-Relay BOOTREP OFFER to client on cable 0/0 with src 10.10.0.1, dst 10.10.0.2, srcport 67, dstport 68 ciaddr 0.0.0.0, yiaddr 10.10.0.2, giaddr 10.10.0.1, chaddr 00:21:80:fc:32:d6, xid 0x6fca3a58, VPN 0
Here is my Version:
BSR 2000(tm) version 1.0.0P59.07.TRCU
Copyright (c) 2005 by Motorola.
Compiled Sun Nov 2 21:36:52 EST 2008
MPC7447A processor with 512MB memory.
Boot ROM : 1.0.30
CPU : MPC7447A
Memory Size : 512 MB
Board Program ID : RD
Format Version : 11
Assembly Type : 39
Board Part Number : 520699-005-00
Board Serial Number : C060351000079358
Board Rev : A
Upper Level Part Number : 520025-005-00
Upper Level Serial Number : C060351010079492
Upper Level Rev : A
FPGA Revision : 0.220
If you want I can forward you the ethereal trace...
Thanks and Regards
TK
Hi TK
yes, email me the trace and I'll take a quick look at it. the cmts is running the latest firmware and bootrom, so that's not a problem. send along a sh run as well.
cmcaldas@gmail.com