The camera and NVR ended up in different VLANs, or the switch-to-switch link (trunk) does not allow the camera VLAN. Devices in different VLANs do not talk without a router.
๐ง Applies to: Managed switches (Cisco, TP-Link, Netgear...). Menu names differ by brand.
A VLAN splits one switch into several separate switches. A camera in one VLAN cannot see the NVR in another, even with the same IP range. To carry a VLAN between switches you need a trunk (tagged) link.
Camera and NVR in the same VLAN, NVR channel Online.
If it still fails, back up the switch config and check port by port.
What went wrong?
Still stuck? Ask the community.
This answer is for learning and field guidance. Menus and limits differ by brand / model: check the device's official manual before final work.