NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

RottenMutt's avatar
RottenMutt
Aspirant
Jul 06, 2017
Solved

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.

  • 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"

     

5 Replies

  • JohnC_V's avatar
    JohnC_V
    NETGEAR Employee Retired

    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,

    • RottenMutt's avatar
      RottenMutt
      Aspirant

      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
      • JohnC_V's avatar
        JohnC_V
        NETGEAR Employee Retired

        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,

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More