• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

Assigning Static IP Address Range in a Router

Joined
Dec 6, 2005
Messages
10,885 (1.53/day)
Location
Manchester, NH
System Name Senile
Processor I7-4790K@4.8 GHz 24/7
Motherboard MSI Z97-G45 Gaming
Cooling Be Quiet Pure Rock Air
Memory 16GB 4x4 G.Skill CAS9 2133 Sniper
Video Card(s) GIGABYTE Vega 64
Storage Samsung EVO 500GB / 8 Different WDs / QNAP TS-253 8GB NAS with 2x10Tb WD Blue
Display(s) 34" LG 34CB88-P 21:9 Curved UltraWide QHD (3440*1440) *FREE_SYNC*
Case Rosewill
Audio Device(s) Onboard + HD HDMI
Power Supply Corsair HX750
Mouse Logitech G5
Keyboard Corsair Strafe RGB & G610 Orion Red
Software Win 10
My current router, ASUS RT-N66U, has DHCP setup for addresses .1 through .254 (all of them) by default. There's usually a default range for static addresses. Simple question I think... I have some camera hardware that I need to assign static local IP's to, and ports for forwarding. What should I pick for a range?

Also, in the meantime, I've assigned a static IP with a lease for 48 days and assigned a separate port to that, say 98. I type in xx.xx.xx.xx:98 and gets to the camera just fine. xx.xx.xx.xx is the "whatismyIP" address. Is that the right way to do it? And how often does Comcast assign a different outside IP address (the xx.xx.xx.xx part).
 
My current router, ASUS RT-N66U, has DHCP setup for addresses .1 through .254 (all of them) by default. There's usually a default range for static addresses. Simple question I think... I have some camera hardware that I need to assign static local IP's to, and ports for forwarding. What should I pick for a range?

Also, in the meantime, I've assigned a static IP with a lease for 48 days and assigned a separate port to that, say 98. I type in xx.xx.xx.xx:98 and gets to the camera just fine. xx.xx.xx.xx is the "whatismyIP" address. Is that the right way to do it? And how often does Comcast assign a different outside IP address (the xx.xx.xx.xx part).

Ok is the camera taking its IP off the router? is it giving out 192.168.x.x addresses? If so then below would be an example IP you could give to your cameras.

192.168.1.254 (For statics I usually start at the end of the range and work my way down)
255.255.255.0
192.168.1.1

DNS would be whatever your router is giving out for a DNS IP.

Even though the router is handing out addresses, setting a static will not harm anything.
 
Ok is the camera taking its IP off the router? is it giving out 192.168.x.x addresses?

Yes indeed... assigning dynamically.


DNS would be whatever your router is giving out for a DNS IP.

Even though the router is handing out addresses, setting a static will not harm anything.

The camer MFG has a DDNS Domain that its set to.

I wanted to have a Static IP, as I thought it was required for port forwarding (?)
 
I wanted to have a Static IP, as I thought it was required for port forwarding (?)

Nope no static needed for that since when the router gets port requests that it would handle by the port forwarding policy.

BUT

Since its a device you do not want the IP address to never change then just set it as mentioned above.
 
The router has the ability to set Static-DHCP clients. It is located on the same page where you configure the DHCP server. Enter your camera system's MAC address in that section, enter the IP address you want the camera system to have in the DHCP range and then the router will reserve that address for the camera system and guarantee the camera system will always have that IP.

It is bad practice to just set a static IP on the device, and even worse practice to set a static IP address on the device that overlaps with the router's DHCP range.
 
Nope no static needed for that since when the router gets port requests that it would handle by the port forwarding policy.

BUT

Since its a device you do not want the IP address to never change then just set it as mentioned above.

Is it possible that something else would try to use/assign the port? The only way I could find to assign a port was to link it to an IP address.

The router has the ability to set Static-DHCP clients. It is located on the same page where you configure the DHCP server. Enter your camera system's MAC address in that section, enter the IP address you want the camera system to have in the DHCP range and then the router will reserve that address for the camera system and guarantee the camera system will always have that IP.

It is bad practice to just set a static IP on the device, and even worse practice to set a static IP address on the device that overlaps with the router's DHCP range.

Ok, I need a networking for dummies book now :ohwell:

Have a dear friend who is a network junkie, deep packet inspection and all that... offered to skype in and share my screen to help out... maybe I should just accept that offer.
 
It is bad practice to just set a static IP on the device, and even worse practice to set a static IP address on the device that overlaps with the router's DHCP range.

Yes setting a non expiring lease time by mac works just as good but most newer routers poll the DHCP table to see what address are pingable and if you infact DID set the camera statically then the router would see it as a pingable address and not give that IP address back to the empty pool.

Have a dear friend who is a network junkie, deep packet inspection and all that... offered to skype in and share my screen to help out... maybe I should just accept that offer.

I would honestly do this if you are not comfortable messing with the routers config page. Have him set it up as newtekie said.
 
Last edited:
Yes setting a non expiring lease time by mac works just as good but most newer routers poll the DHCP table to see what address are pingable and if you infact DID set the camera statically then the router would see it as a pingable address and not give that IP address back to the empty pool.

Some routers do that, a lot do not. I'm not sure if the ASUS router does that. Which is why it is generally a bad practice to set static IPs on the devices.
 
I was planning on setting a range of static IP addresses, assigning the camera to one of those, then assigning a new unique port to that IP. The default camera port is 80.

To access the camera from outside my LAN using port forwarding, my understanding is that you need to assign a unique port... am I dense? :p
 
Some routers do that, a lot do not. I'm not sure if the ASUS router does that. Which is why it is generally a bad practice to set static IPs on the devices.

Maybe I am usta dealing with commercial grade routers such as juniper, cisco, foresystems, and alcatel lucent is the reason for that suggestion.
 
Some routers do that, a lot do not. I'm not sure if the ASUS router does that. Which is why it is generally a bad practice to set static IPs on the devices.

Why would it be a bad pratice?

it all depends of the situation:

You have a server that manage 10 IP camera and have a switch for all these hardware. You set DHCP reservation for these (if you use the Router that manage the DHCP.

Blackout and all reboot. The router isn't rebooting.. what is happening? No IP for server and camera so server can't manage them... That is why having static IP to device can be useful depending of what you do.. Same shit for printer, or anything else.

DHCP, I usually use from 10 to 254, and keep lower IP for device that needs to be static.
 
To access the camera from outside my LAN using port forwarding, my understanding is that you need to assign a unique port... am I dense?

You don't need a unique port unless something is already using port 80 or your ISP blocks port 80.

Maybe I am usta dealing with commercial grade routers such as juniper, cisco, foresystems, and alcatel lucent is the reason for that suggestion.

I'd be nice if home equipment was as nice.

Why would it be a bad pratice?

it all depends of the situation:

You have a server that manage 10 IP camera and have a switch for all these hardware. You set DHCP reservation for these (if you use the Router that manage the DHCP.

Blackout and all reboot. The router isn't rebooting.. what is happening? No IP for server and camera so server can't manage them... That is why having static IP to device can be useful depending of what you do.. Same shit for printer, or anything else.

DHCP, I usually use from 10 to 254, and keep lower IP for device that needs to be static.

Not having your router on a UPS is just as bad of a practice.;)
 
I was planning on setting a range of static IP addresses, assigning the camera to one of those, then assigning a new unique port to that IP. The default camera port is 80.

To access the camera from outside my LAN using port forwarding, my understanding is that you need to assign a unique port... am I dense? :p



It depends, your camera has a DDNS? You need to have forwarding port to 80 normally..
 
You don't need a unique port unless something is already using port 80 or your ISP blocks port 80.



I'd be nice if home equipment was as nice.



Not having your router on a UPS is just as bad of a practice.;)



You know, UPS or not, any device can crash.. if your UPS is low battery and shutdown... Anyway, Static IP isn't a bad pratice, sorry but I've been using this for a long time and everywhere I worked, we did use this...
 
Not having your router on a UPS is just as bad of a practice.

My router is on a UPS :)

I was planning on assigning a static IP range in the router then have the camera assiged to a number in the static range, with a unique port. So, what's is bad practice there? Serious question...
 
Personnaly, I prefer to have a restricted IP range that has no DHCP, just for static.

What camera model you have? DDNS will redirect to your Internet IP, but the router needs to accept these request. if the camera is manageable from outside on the company website, there is no need for port forwarding.
 
I was planning on assigning a static IP range in the router then have the camera assiged to a number in the static range, with a unique port. So, what's is bad practice there? Serious question...

well, that is the idea. bind IP's to your camera's mac address respectively, make sure DHCP pool don't overlap them. e.g. you reserve IP x.x.x.10 ~ x.x.x.30 for camera's static IP, so your DHCP pool should be x.x.x.31 ~ x.x.x.254

if your ISP gave dynamic public IP address, then you should set ddns to the router (if it support ddns) so you could access it from the internet (outside your LAN).

to access your cameras, you give them unique ports by setting port forwarding in the router.

e.g. camera0 set to 5000 port, camera1 to 5001, camera2 to 5002 and your ddns is myrouter.no-ip.org then you just type in a browser from anywhere outside your LAN myrouter.no-ip.org:5000 to access camera0 or myrouter.no-ip.org:5001 for camera1 and so on.
 
Anyway, Static IP isn't a bad pratice, sorry but I've been using this for a long time and everywhere I worked, we did use this...

In the professional networking world, yes it is considered a bad practice. Your DHCP server should handle all IP assignments. If you don't trust your DHCP server for some reason then you should address the reason behind why you don't trust your DHCP, not just hard code IP addresses in the devices.

My router is on a UPS :)

I was planning on assigning a static IP range in the router then have the camera assiged to a number in the static range, with a unique port. So, what's is bad practice there? Serious question...

As long as the router is handling the IP assignments, there is no bad practice. However, if you hardcode the IP address into the camera, that is a bad practice. There really is no point in hard coding IPs into the cameras since your router has a section for static DHCP.
 
every modern router i've used just reserves the IP.


so if your dynamic range was between .2 and .254 you can assign .10 to one MAC address, and the router will never give that IP to any other device.
 
every modern router i've used just reserves the IP.


so if your dynamic range was between .2 and .254 you can assign .10 to one MAC address, and the router will never give that IP to any other device.

Correct, that is the correct way to do it.
 
In the professional networking world, yes it is considered a bad practice. Your DHCP server should handle all IP assignments. If you don't trust your DHCP server for some reason then you should address the reason behind why you don't trust your DHCP, not just hard code IP addresses in the devices.



As long as the router is handling the IP assignments, there is no bad practice. However, if you hardcode the IP address into the camera, that is a bad practice. There really is no point in hard coding IPs into the cameras since your router has a section for static DHCP.


Well, it must be different opinion as Static IP can prevent downtime for some hardware (like camera... if they record then shoot this to a server, remember what I said, your the DHCP dies, whenever the hardware you reboot, you have no IP in Binding, which is not useful, it is preventing from malfunction shit in your network).

I do trust my 4000$ firewall, which relay the Internet to the servers, but I do keep a backup in case it crash..

Anyway, in this case here, he doesn't need static, I was only pointing the point you said it is a bad pratice to use static IP, as it is not ;)
 
What camera model you have?

Hootoo HT-IP210F HooToo HT-IP210F Indoor 640 x 480 MAX Resolution R... So far, it's awesome. I haven't been able to get audio, not sure why. The web interface is flaky on my Droid, but works and there is a 3rd party Android APP that supports the camera.

So at this point, I need to:

  1. Set aside a range of static IP addresses (by default in the ASUS, ALL of the IP addresses .2 through .254 are DHCP).
  2. Assign one of the static IP addresses to the camera (in the router)
  3. Assign a port to that IP address

Side note: LAN addresses 192.168.1.1 and 192.168.1.255 are reserved in just about every router (from what I've been told)

I just wish I could understand how DDNS works locally. :confused:
 
Well, it must be different opinion as Static IP can prevent downtime for some hardware (like camera... if they record then shoot this to a server, remember what I said, your the DHCP dies, whenever the hardware you reboot, you have no IP in Binding, which is not useful, it is preventing from malfunction shit in your network).

I do trust my 4000$ firewall, which relay the Internet to the servers, but I do keep a backup in case it crash..

Anyway, in this case here, he doesn't need static, I was only pointing the point you said it is a bad pratice to use static IP, as it is not ;)

You DHCP should not die, that is the point. If you have a properly setup DHCP server you shouldn't have the need for hard coded devices. But yes, shit does happen from time to time. If you hardcode the IP address and your DHCP server dies, and you replace it, and the new one starts trying to hand out the IPs that your cameras already are using, then it can take them down too. So there is no perfect solution. However, in the professional networking industry, hard-coding IP addresses into devices on the network when DHCP is available is considered a bad-practice.
 
Last edited:
Shorten your DHCP range and use an address outside that range, it will still ARP the IP and add it to the table, but never allocate the IP from the open pool.


So

DHCP range 192.168.0.1-150

Static IP's begin and are assigned to devices at 192.168.0.151

Simple.
 
I think by now he should get the concept of it so lets kill all the good or bad practices and focus on his next move.

Now then, what have you done so far after going over the post here in the thread sasqui?
 
Back
Top