NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
RottenMutt
Jul 06, 2017Aspirant
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...
- Jul 07, 2017
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"
JohnC_V
Jul 06, 2017NETGEAR 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,
- RottenMuttJul 06, 2017Aspirant
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
- RottenMuttJul 07, 2017Aspirant
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
- RottenMuttJul 07, 2017Aspirant
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"
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!