Here's an interesting thing I just tried - inspired by a thread or 2 here where people need to access their POE camera directly (for fine configuration, not streaming) but by default can't easily as they are on an isolated POE network segment on the Hikvision NVR.
*Warning* Don't experiment with this unless you're reasonably network and Linux savvy, and accept that there is some risk when delving around in the internals of an embedded Linux box.
But for the occasional need to access POE-connected cameras directly, this method may be worth exploring.
Note also that I have only so far tried it, for the ease of testing, using a PC as the POE port network device instead of a camera. It's easy to configure and has plenty of tools to see what's going on - and I don't have a spare camera on the shelf just now. Note also that I haven't assessed in detail what effect if any on performance would result, though none was obvious.
Essentially - a Linux installation by default does not have IP routing (aka IP forwarding, not to be confused with port forwarding) enabled by default.
The Hikvision NVR with POE ports has 2 network interfaces, one for the normal LAN, and one to service the POE switch ports on a different network segment, but by default no active facility to route or forward IP packets between them.
However - it's possible to enable that facility within the Linux environment.
With root access using the Linux shell, we can see that by default, IP forwarding is switched off.
We can switch IP forwarding on, with immediate effect. But note - this specific change does not survive a reboot as we're not changing the configuration origin of the value.
IP forwarding is now active within the Linux kernel of the NVR.
But we also need to establish a route to the previously isolated POE segment. This can be done either on the individual PC or workstation, or more conveniently on the LAN default gateway/router.
Assuming that the POE segment has the default value of 192.168.254.0/24 ( ie 0-255) and the NVR LAN address is for example 192.168.1.100 the router should allow us to add a static private (ie LAN not WAN) route that will work for all devices on the normal LAN where it is the default gateway.
Destination network 192.168.254.0, mask 255.255.255.0, gateway 192.168.1.100, some metric such as 2.
At this point - cameras on the POE ports should be able to be accessed directly from the LAN by their actual 192.168.254.x address, with no extra wiring or other changes.
To turn IP forwarding back off, use
Thoughts and comments welcome - but please take care.
*Warning* Don't experiment with this unless you're reasonably network and Linux savvy, and accept that there is some risk when delving around in the internals of an embedded Linux box.
But for the occasional need to access POE-connected cameras directly, this method may be worth exploring.
Note also that I have only so far tried it, for the ease of testing, using a PC as the POE port network device instead of a camera. It's easy to configure and has plenty of tools to see what's going on - and I don't have a spare camera on the shelf just now. Note also that I haven't assessed in detail what effect if any on performance would result, though none was obvious.
Essentially - a Linux installation by default does not have IP routing (aka IP forwarding, not to be confused with port forwarding) enabled by default.
The Hikvision NVR with POE ports has 2 network interfaces, one for the normal LAN, and one to service the POE switch ports on a different network segment, but by default no active facility to route or forward IP packets between them.
However - it's possible to enable that facility within the Linux environment.
With root access using the Linux shell, we can see that by default, IP forwarding is switched off.
[root@dvrdvs /] # cat /proc/sys/net/ipv4/ip_forward
0
We can switch IP forwarding on, with immediate effect. But note - this specific change does not survive a reboot as we're not changing the configuration origin of the value.
[root@dvrdvs /] # echo 1 > /proc/sys/net/ipv4/ip_forward
[root@dvrdvs /] # cat /proc/sys/net/ipv4/ip_forward
1
IP forwarding is now active within the Linux kernel of the NVR.
But we also need to establish a route to the previously isolated POE segment. This can be done either on the individual PC or workstation, or more conveniently on the LAN default gateway/router.
Assuming that the POE segment has the default value of 192.168.254.0/24 ( ie 0-255) and the NVR LAN address is for example 192.168.1.100 the router should allow us to add a static private (ie LAN not WAN) route that will work for all devices on the normal LAN where it is the default gateway.
Destination network 192.168.254.0, mask 255.255.255.0, gateway 192.168.1.100, some metric such as 2.
At this point - cameras on the POE ports should be able to be accessed directly from the LAN by their actual 192.168.254.x address, with no extra wiring or other changes.
To turn IP forwarding back off, use
[root@dvrdvs /] # echo 0 > /proc/sys/net/ipv4/ip_forward
#
Thoughts and comments welcome - but please take care.