× NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Orbi WiFi 7 RBE973
Reply

Security Camera Instl on Private Lan using SightHound DVR Software - How do i setup dhcp server

RottenMutt
Aspirant

Security Camera Instl on Private Lan using SightHound DVR Software - How do i setup dhcp server

Hi, I'm trying to setup a private LAN for IP Security Cameras in the Class B range (172.16.0.0-172.31.0.0) and am having dificulty getting DHCP to work on the switch.  I can Login to the switch using web browser, if i just plug the switch into the network interface, configured to dhcp, it gets ip address169.254.52.81 / 255.255.0.0.

 

How do i setup a dhcp server on my switch that will work for what i want to do?

 

I found this NetGear KB which describes how to setup a dhcp server using CL, this KB makes me think i have to setup a VLAN.

 

My computer/dvr has two network interfaces, one connected to my home network (ClearOS in the Class C Private IP range) and the other connected to this switch with cameras.  I don't want my cameras visible on my home network, nor do i want to share the bandwidth.

 

SightHound only uses IP address to identify the cameras, you can't limit the software to only use a specific network interface, so I can't have IP conflicts between the two networks.  I would like to plug the cameras into the switch, check the switch to find the cameras IP address and enter the IP address into SightHound.

Model: M4100-24G-PoE+ (GSM7224Pv1h2)|ProSAFE 24-port Gigabit Fully Managed L2 Switch with PoE+
Message 1 of 6

Accepted Solutions
RottenMutt
Aspirant

Re: Security Camera Instl on Private Lan using SightHound DVR Software - How do i setup dhcp server

got it to work, subnet of switch and subnet of dhcp pool need to match.  thankyou tech support Daniel.

 

i changed my dhcp pool mask to 255.255.254.0

 

"network 172.16.0.0 255.255.254.0"

 

View solution in original post

Message 6 of 6

All Replies
JohnC_V
NETGEAR Moderator

Re: Security Camera Instl on Private Lan using SightHound DVR Software - How do i setup dhcp server

Hi RottenMutt,

 

It seems that you wanted to setup the dhcp server on the switch. Most likely our switches by default is set as a dhcp client. Once you connect it to the router, it will pick up an ip. If you wanted to use this as a dhcp server you may need to create your own pool of IP. You may also need to create VLANs for it in order to work but you should be setting it up as port-based VLANs. Please refer to this link.

 

Regards,

Message 2 of 6
RottenMutt
Aspirant

Re: Security Camera Instl on Private Lan using SightHound DVR Software - How do i setup dhcp server

Thank you John,  

I will try the link.  Is the following correct?

 

I've set the switch (System/Management/IPv4 Management VLAN Configuration) to the following: (note, i've reused vlan id 1, don't know if i should have.)

VLAN ID: 1

Routing Mode: Enable

Configuration Method: Manual

IP Address: 172.16.1.254

Subnet Mask: 255.255.254.0

Default Router IPv4: 172.16.0.1

 

(should give me an ip range of 172.16.0.1 - 172.16.1.254; I'm thinking this is what the dhcp server will use.)

 

The network interface on the Computer/DVR:

IP address: 172.16.0.2

Subnet mask: 255.240.0.0

Default gateway: 172.16.0.1

 

I've also setup a ntp server on the computer and set the switch to use it, and that works.

 

#show running-config

!Current Configuration:
!
!System Description "M4100-24G-POE+ ProSafe 24-port Gigabit L2+ Managed Switch with PoE+, 10.0.2.26, B1.0.1.1"
!System Software Version "10.0.2.26"
!System Up Time          "0 days 1 hrs 58 mins 44 secs"
!Additional Packages     QOS,IPv6 Management,Routing
!Current SNTP Synchronized Time: Jul  6 21:48:25 2017 UTC
!
hostname "CameraNetwork"
vlan database
vlan routing 1 1
exit

configure
sntp server "172.16.0.2"
time-range
ip name server 172.16.0.1
ip default-gateway 172.16.0.1
line console
exit

line telnet

exit

line ssh
exit

snmp-server sysname "CameraNetwork"
snmp-server location "MB Closet"
snmp-server contact "Eric Anderson"
!

interface 0/5
bandwidth 100000
routing
ip mtu 1500
exit

interface vlan 1
routing
ip address 172.16.1.254 255.255.254.0
exit

service dhcp
exit
Message 3 of 6
JohnC_V
NETGEAR Moderator

Re: Security Camera Instl on Private Lan using SightHound DVR Software - How do i setup dhcp server

@RottenMutt,

 

I see that you enabled the DHCP service but you haven't configure the DHCP pool. You also have to create the DHCP pool so that the server may know the range of usable IP address to be assigned to clients.

 

Regards,

Message 4 of 6
RottenMutt
Aspirant

Re: Security Camera Instl on Private Lan using SightHound DVR Software - How do i setup dhcp server

Can't seem to get the dhcp server to work.  No dhcp offers sent out.  any ideas?

 

(M4100-24G-POE+) #show running-config

!Current Configuration:
!
!System Description "M4100-24G-POE+ ProSafe 24-port Gigabit L2+ Managed Switch with PoE+, 10.0.2.26, B1.0.1.1"
!System Software Version "10.0.2.26"
!System Up Time          "0 days 0 hrs 5 mins 21 secs"
!Additional Packages     QOS,IPv6 Management,Routing
!Current SNTP Synchronized Time: Jul  7 04:25:46 2017 UTC
!
vlan database
vlan routing 1 1
exit

configure
sntp server "172.16.0.2"
time-range
ip name server 172.16.0.1
ip default-gateway 172.16.0.1
line console
exit

line telnet
exit

line ssh
exit

snmp-server sysname "Security Camera Switch"
snmp-server location "MB Closet"
snmp-server contact "Eric Anderson"
!

interface vlan 1
routing
ip address 172.16.1.254 255.255.254.0
exit


service dhcp
ip dhcp excluded-address 172.16.0.1 172.16.0.2
ip dhcp pool "pool_dynamic"
network 172.16.0.0 255.255.255.0
netbios-node-type b-node
exit

exit
Message 5 of 6
RottenMutt
Aspirant

Re: Security Camera Instl on Private Lan using SightHound DVR Software - How do i setup dhcp server

got it to work, subnet of switch and subnet of dhcp pool need to match.  thankyou tech support Daniel.

 

i changed my dhcp pool mask to 255.255.254.0

 

"network 172.16.0.0 255.255.254.0"

 

Message 6 of 6
Top Contributors
Discussion stats
  • 5 replies
  • 3428 views
  • 0 kudos
  • 2 in conversation
Announcements