03-07-2019 06:29 AM
How do i go about connecting a DVR (handles DHCP for some IP cameras) and the said IP cameras on the same switch?
03-07-2019 06:42 AM
You have not given us much information to work with. Can you tell us whether this switch is a layer 2 only switch or is this a layer 3 capable switch? Can you tell us whether the DVR will be in the same vlan as the cameras?
If the DVR is in the same vlan as the cameras then things are simple. You only need to configure the vlan, assign the appropriate switch ports to the vlan. If they are in the same vlan then the DHCP request from the camera will be received by the DVR and it will be able to offer an IP address to the camera. If the DVR is in a different vlan from the cameras then we need a layer 3 device to forward traffic between the vlans. If the switch is layer 3 capable then it can be handled on the switch. If the switch is layer 2 only then you need some layer 3 device to make this work.
HTH
Rick
03-07-2019 06:43 AM
03-07-2019 06:44 AM
03-11-2022 10:43 PM
Well I need to do this and I have layer 3 switch 3750 can you please tell me tha config how to do it
I have two VLANs for this 40,41
03-12-2022 01:25 AM
Hello,
below is what the configuration could look like:
3750
ip dhcp excluded-address 192.168.40.1
ip dhcp excluded-address 192.168.41.1
!
ip dhcp pool VLAN40
network 192.168.40.0 255.255.255.0
default-router 192.168.40.1
dns-server 8.8.8.8
!
ip dhcp pool VLAN41
network 192.168.41.0 255.255.255.0
default-router 192.168.41.1
dns-server 8.8.8.8
!
interface FastEthernet1/0/1
description DVR_1
switchport mode access
switchport access vlan 40
spanning-tree portfast
!
interface FastEthernet1/0/2
description CAMERA_1
switchport mode access
switchport access vlan 41
spanning-tree portfast
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: