SageTV Community  

Go Back   SageTV Community > General Discussion > The SageTV Community
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

The SageTV Community Here's the place to discuss what's worth recording, HTPC deals at retail stores, events happening outside of your home theater, and pretty much anything else you'd like. (No For-Sale posts)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-02-2017, 09:58 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Static IPs or DHCP reservations?

I am trying to bring some order to my LAN as I now often have around 100 devices. Should I use static IPs or DHCP reservations?

DHCP reservations are somewhat simpler and you don't have to enter a Gateway and DNS server info. It can also be administered centrally through your router's web UI (I have an Asus RT-N66U router running Merlin). And you can always do a DHCP reservation - with some devices you can't always do a static IP - Harmony Hubs are one example.

I don't know if all routers let you do this but my router also lets you do DHCP reservations for IP addresses outside of the DHCP range. For example my DHCP range is 192.168.1.100-185, but I am able to do DHCP reservations with a 192.168.1.200 IP address.

Static IPs presumably give you more control and you will always get that particular address, even if it causes a conflict.

Anyone have an opinion?

And how does this all change in an IPv6 world where we no longer need NAT?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #2  
Old 01-02-2017, 10:17 AM
KeithAbbott KeithAbbott is online now
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
Only use static IPs as a last resort, for all of the reasons that you mentioned.
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
  #3  
Old 01-02-2017, 12:02 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by KeithAbbott View Post
Only use static IPs as a last resort, for all of the reasons that you mentioned.
I used to use reserved addresses, but I find statically assigned IP addresses to be the more reliable route because if DHCP is not working for any reason, at least your servers are probably still doing their job. You could also end up with a server not having an IP address depending on how it handles renewing it's IP address.

I maintain a spreadsheet of of my DHCP pools and static IP addresses for all of my subnets. I know configuring DNS, setting the IP addresses and maintaining a spreadsheet sounds like more work, but how many times are you re-imaging/adding to your servers in one year? Once I got in the habit of assigning static IP addresses, I stopped thinking of it as a chore. Also if my DHCP service died irrecoverable for any reason, I don't need to re-enter all of my reservations and I have a real backup of how I configured everything.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #4  
Old 01-02-2017, 12:25 PM
KeithAbbott KeithAbbott is online now
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
Quote:
Originally Posted by EnterNoEscape View Post
I maintain a spreadsheet of of my DHCP pools and static IP addresses for all of my subnets. I know configuring DNS, setting the IP addresses and maintaining a spreadsheet sounds like more work, but how many times are you re-imaging/adding to your servers in one year? Once I got in the habit of assigning static IP addresses, I stopped thinking of it as a chore. Also if my DHCP service died irrecoverable for any reason, I don't need to re-enter all of my reservations and I have a real backup of how I configured everything.
I salute your home network work ethic!
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
  #5  
Old 01-02-2017, 03:03 PM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
Quote:
Originally Posted by EnterNoEscape View Post
I maintain a spreadsheet of of my DHCP pools and static IP addresses for all of my subnets.
I use reservations for all of my devices (30+). I use different ranges for different type of devices:
  • 1-50 Computers & NAS
  • 51 - 60 Printers
  • 61 - 70 HDHR
  • 71 - 80 HD300's & Android TV
  • 81 - 90 TV's and Music Player
  • 91 - 100 Harmony Hubs
  • 100+ Wireless

I also maintain a spreadsheet, but I populate it by copying the reservation page from my router. That way I do not fat-finger the MAC addresses.
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
Reply With Quote
  #6  
Old 01-02-2017, 03:40 PM
KeithAbbott KeithAbbott is online now
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
And just to add to the discussion, I only use reserved addresses if there is a need to. Almost all of the infrastructure (servers, wi-fi access points, printers, etc.) work best with a predictable IP address. Most of my client devices do not have a reserved address, I let DHCP assign the IP address of it's choosing.
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
  #7  
Old 01-02-2017, 03:45 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
What tools are you folks using to get a dump of all of the IPs, etc from your LAN? Although it is meant for other purposes I find WakeMeOnLan to be very useful as it shows MAC, IP, Network adapter company, etc. And you can then copy the data into a spreadsheet. Are there other tools out there that are better?

FYI, I am working on a simple shell script to allow you to take a text file and use that to add DHCP reservations. My router is an Asus RT-N66U but this should work for most or all Asus routers.

The script looks like this:
Code:
nvram get dhcp_staticlist | tr -d'\n' > dhcpnew.txt
cat dhcp_add.txt >> dhcpnew.txt
nvram set dhcp_staticlist="$(cat dhcpnew.txt)"
You would execute this in an SSH session on your router from the jffs partition. The file dhcp_add.txt would contain the new info to be added to the reservations and would look like this:
Code:
<A0:30:A6:0D:76:4E>192.168.1.200>WifiLightKitchen<B8:27:EB:BC:F0:2C>192.168.1.201>RasbPi1
which is in the format "<MAC>IP>NAME" - and repeat for as many that you want to add.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #8  
Old 01-02-2017, 03:48 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by KeithAbbott View Post
And just to add to the discussion, I only use reserved addresses if there is a need to. Almost all of the infrastructure (servers, wi-fi access points, printers, etc.) work best with a predictable IP address. Most of my client devices do not have a reserved address, I let DHCP assign the IP address of it's choosing.
I kind of disagree, since more of the clients are infrastucture. A Hue lighting hub is one example - I want it to have a predicatable IP as my Home Automation system, Control4, has the Hue's IP as a parameter in its Hue driver.

That is become the case more often with IoT devices.

I also find it useful to have predictable IP addresses for stuff like Sage extenders, even though it doesn't really matter for functionality.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #9  
Old 01-02-2017, 04:32 PM
KeithAbbott KeithAbbott is online now
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
Quote:
Originally Posted by wayner View Post
I kind of disagree, since more of the clients are infrastucture. A Hue lighting hub is one example - I want it to have a predicatable IP as my Home Automation system, Control4, has the Hue's IP as a parameter in its Hue driver.

That is become the case more often with IoT devices.

I also find it useful to have predictable IP addresses for stuff like Sage extenders, even though it doesn't really matter for functionality.
I don't think we are disagreeing. If you look at the first sentence of my post:
Quote:
Originally Posted by KeithAbbott View Post
...I only use reserved addresses if there is a need to.
All of my Sage extenders have a reserved IP address, since there are times that I need to reboot the extender, etc. I don't have Hue lighting, but it sounds like you found a need to use a reserved IP address. My point really was, for client devices like laptops, desktops, tablets, etc., I let DHCP take care of assigning the IP address.
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
  #10  
Old 01-02-2017, 05:39 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by KeithAbbott View Post
All of my Sage extenders have a reserved IP address, since there are times that I need to reboot the extender, etc. I don't have Hue lighting, but it sounds like you found a need to use a reserved IP address. My point really was, for client devices like laptops, desktops, tablets, etc., I let DHCP take care of assigning the IP address.
I'll agree with reserved addresses for anything else whereby it might be difficult or not possible to assign a static IP address.

I have plenty of friends that think I'm nuts about this, but I tend to run my house a little like a small enterprise.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #11  
Old 01-02-2017, 06:20 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Quote:
Originally Posted by EnterNoEscape View Post
I have plenty of friends that think I'm nuts about this, but I tend to run my house a little like a small enterprise.
I have friends like that, too. They think I'm nuts, right up until I fix their computers, then everything seems to be okay. Most of them still believe it's some form of magic, which I have encouraged, for obvious reasons.
Reply With Quote
  #12  
Old 01-02-2017, 06:40 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by KryptoNyte View Post
I have friends like that, too. They think I'm nuts, right up until I fix their computers, then everything seems to be okay. Most of them still believe it's some form of magic, which I have encouraged, for obvious reasons.
Most of my friends are at my level of technical expertise and specialize in various things that I know much less about. They know full well when they are taking a shortcut with caveats and I have no problem with pointing it out.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #13  
Old 01-02-2017, 08:50 PM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
I use dnsmasq on a couple Linux VMs, (replicated storage via DRBD so I can take a VM offline and not loose DNS/DHCP). I've found this to be much more flexible than when I just used the router's DHCP server. It is also fairly easy to use and made it pretty painless to adopt IPv6. I also maintain a spreadsheet. AND I have a naming convention for devices .

My main rule of thumb is to assign a static IP for devices that need to be accessible remotely through the firewall and leave the rest to DHCP. I don't use static DHCP bindings. Since dnsmasq handles DNS and DHCP I can just go to e.g. pr2s1 to get to the printer in the second floor study.
__________________
Home Network: https://karylstein.com/technology.html

Last edited by KarylFStein; 01-02-2017 at 08:59 PM.
Reply With Quote
  #14  
Old 01-03-2017, 02:10 AM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
I use reserved IP for anything I want to control or access a GUI of some sort. The only thing that isn't included in that would be my phones and laptop. My main desktop doesn't have a reservation, but it tends to grab the same IP anyway.

My directv, android TV, AP, wifi camera, etc all have reserved addresses just to make things simple for what I'm wanting those devices to do.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #15  
Old 01-03-2017, 05:32 AM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
Quote:
Originally Posted by EnterNoEscape View Post
I have plenty of friends that think I'm nuts about this, but I tend to run my house a little like a small enterprise.
I will even admit that I have a Network Diagram.
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
Reply With Quote
  #16  
Old 01-03-2017, 05:57 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I used to just let DHCP do its thing, then I got bit in the a$$ trying to fix a network issue and recently went to static IP addresses
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #17  
Old 01-03-2017, 07:42 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I use a single DHCP reservation for my unRAID server (runs sagetv and a few other things)... everything else is DHCP.
Reply With Quote
  #18  
Old 01-03-2017, 09:26 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
My router let's me assign a DHCP reservation that is outside of the actual DHCP range. I have the range set to 192.168.1.100-185 but I can assign a DHCP address of 192.168.1.200. Is that the way things typically work?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #19  
Old 01-03-2017, 09:40 AM
KeithAbbott KeithAbbott is online now
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
Quote:
Originally Posted by wayner View Post
My router let's me assign a DHCP reservation that is outside of the actual DHCP range. I have the range set to 192.168.1.100-185 but I can assign a DHCP address of 192.168.1.200. Is that the way things typically work?
Yes.
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
  #20  
Old 01-04-2017, 07:32 AM
UgaData's Avatar
UgaData UgaData is offline
Sage Aficionado
 
Join Date: Sep 2005
Posts: 447
I use a combination Static IPs and DHCP reservations (for servers (always static), Printers (static) and reservations for devices that really should always the same IP address, which for me, is any device that is in regular use on my network) and just plain old DHCP so computers and devices not always on my network can still connect.
As a rule of thumb the DHCP range of assignable addresses are limited (usually to around 5 or 10 IPs) and do not overlap the static or reserved addresses (for reserved IPs I let DHCP assign an address first, then create a new reservation outside the range assignable by the DHCP server).

To keep track of IP addresses I use 1 of 2 programs to scan and note what devices are on my network. One is Angry IP it is freeware (I think). The other is Solarwinds IP Address Tracker and it is free.
__________________
"Unencumbered by the thought process"

The only constant in the Universe is change.

Last edited by UgaData; 01-04-2017 at 07:35 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP problems sglass68 SageTV Media Extender 1 10-28-2010 07:18 AM
MediaMVP, wireless, DHCP and static IPs Joe Bloggins SageTV Media Extender 1 08-04-2008 06:41 AM
HD100 and DHCP ChubbyTiger SageTV Media Extender 1 06-16-2008 01:30 PM
DHCP issue-mvp JUC SageTV Media Extender 3 04-28-2008 07:57 AM
DHCP failures on MVP lotus SageTV Media Extender 21 10-29-2006 10:43 PM


All times are GMT -6. The time now is 02:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.