When you have one NVR with Two Network connections.
Use LAN 1 to connect to the Router
Use LAN 2 to connect to the PoE Switch
Make sure that the LAN 2 does not have the same network range as the Main LAN.
Sample when the Local network that is connected to LAN 1 from the NVR have an IP address 192.168.1.11 with Subnet 255.255.255.0 the LAN 2 connection can not have the same range 192.168.1.xxx this needs to be different.
In this case, you can use 11.11.11.1 with subnet 255.255.255.0 and gateway 11.11.11.1.
The camera should have any address starting from 11.11.11.2 till 11.11.11.254 with subnet 255.255.255.0 and gateway 11.11.11.1 (the IP address from LAN2 on the NVR)
See the image below:
The red cable from the router to LAN 1 from the NVR
The blue cable from the NVR to the uplink on the PoE Switch
Then the gray cables to the PoE Cameras