My router is an RB4011.
I bought a hikvision DVR to view and record from my Tapo C320WS IP cameras.
When i added my cameras to my Wifi, i changed their IP addresses from dynamic to static, everything was fine.
After that i integrate the cameras through ONVIF to HIKVISION recorder using the IPs that i have assigned to my router, everything is working fine.
I checked today my DHCP leases in my router, and all the 4 cameras seems like “waiting” and not bound to their IPs, despite that in reality they are working fine and they have the correct IPs.
Checked with the Hikvision DVR, i have selected DHCP, no static entries there.
The hikvision DVR that relies on the same subnet, has acquired the correct IP, static assigned by the router, and working fine.
Any ideas why in the RB4011 all the cameras are in “waiting mode” and no bound?
You set static IP address on cameras or you made dhcp lease static on the router ?
I have set dhcp lease static in my router
What is your lease time ? Too short time could cause that behaviour.
It is 12 hours
Then this could mean that your client device or your cameras in this case doesn’t request an IP address from DHCP server and server is waiting for request.
What happens when you reboot camera ? It should request address from dhcp server.
I have rebooted them and they keep their IPs but at the router it is still the same (waiting).
If it’s working then leave it, i checked with my cameras, 2 hik cameras also have status waiting in dhcp lease and they are working without a problem. (Lease is static in DHCP)
I have no other option but to leave it as it is. I am trying to understand though what is the problem.
I was looking at the ARP tables in my Mikrotik Router and i could find there the correct association between IP address and MAC address of the cameras. It is also DC at the side of the entry, which means Dynamic Complete.
If the entry in ARP table is Dynamic then which DHCP server provided the IP address to the cameras? Just curious if the DVR actually works as DHCP server… and how can i find out that…
Or if the DVR through ONVIF protocol has forced the cameras to have static IPs… The problem is that the cameras has no web interface to actually see what is going on…
Anyway, i will trying to forget my OCD thoughts.
What model do you have ?
Some models have integrated PoE switch and DHCP server, and some are network recorders, with one ethernet port and you have to connect camera to your network.
Well, good description of the setup, but still very difficult to know (guess) what is happening.
Just some thoughts.
- static IP addresses (leases) in DHCP do not work if that client device, or another device in the network, already has that IP address
(My usual mistake, give a device some fixed IP address, then to assign proper IP route and DNS server, the same IP address is entered in the DHCP leases as static. Does not work that way!) - the IP-MAC tuples in the ARP table, are not the same as the IP-MAC tuples in the DHCP table. Checking the ARP table, is not checking the DHCP table
(Quite some vendors of home-gateways tend to combine both tables, to save table-memory, because indeed quite some entries are the same.) - some devices, without mgmt interface, web interface or screen, get their IP address via RARP
- MT DHCP server also does BOOTP (default: static only) so that should not be the problem
- Devices can keep their assigned DHCP lease. And someone discovered that it then will not send a DHCP discover
(see https://community.spiceworks.com/topic/510614-dhcp-clients-stick-with-their-old-ip-addresses#entry-3498581 )
MT Sniffer is your friend here. Snif that network and copy the packets in a file for Wireshark to make it readable. There you can SEE what is happening.
Thank you so much for your thoughts. I will follow your advise regarding sniffer although i am a very beginner in wireshark but i will give it a try. How can i understand if one camera has static ip on device level or static lease or anything else?
The chain of events were as follows:
Initially the cameras acquired their dynamic IPs from the dhcp server of their vlan as expected.
After that i changed their IPs from MT router to the desired numbers (OCD) and made them static (lease).
After that i added these cameras to the DVR through ONVIF protocol, using their IPs.
After that stage the dhcp server never saw them agaim…most likely the DVR forced them through ONVIF to make them static at device level.
Thanks again!
ids-7204 and it does not have poe switch…
Not familiar with ONVIF … just started reading … https://www.pelco.com/blog/onvif-guide . Does this assign or force for IP addresses???
aagh yes … page 12 … https://files.pelco.com/camera-configuration-tool-user-guide-en_2023-06-01-154703_wxvp.pdf
DHCP is automatically disabled for the cameras, and the new network settings are highlighted in yellow.
Onvif is pretty much standard in cctv, it enables you to connect cameras from one vendor to network recorder of another vendor because many, if not all of them use their proprietary protocols (Hikvision have their protocol, Bosch have their)
But ONVIF shouldn’t affect network settings. One more thing, i don’t know for your cameras but for eg. Hikvision comes with dhcp disabled and they assign 192.168.1.64 address as default.
The cameras had DHCP enabled before connected to the DVR. I know that indirectly because i set them up before connecting them to the DVR. They acquired IP from MIkrotik Router DHCP server normally.
Did you try to connect them to some other router if you have any ?