Editing
IP Addressing
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== IP Addressing == When it comes to your homelab, IP addressing is important. There are a few points to consider before settling on an IP addressing scheme. Keep in mind that changing IPs or mixing and matching IP schemes is not recommended and can be difficult. === Picking a Supernet === First things first, you want to pick a supernet. Typically, this will be one of the three RFC 1918 private address ranges. I suggest using 10.0.0.0/8 because this gives you well over 16 million IPs to play with - which comes in very handy when implementing VLANs and avoiding overlaps. {| class="wikitable" ! RFC1918 name !! IP address range !! Number of addresses ! Largest [[Classless Inter-Domain Routing|CIDR]] block (subnet mask) || Host ID size || Mask bits ! ''[[classful network|Classful]]'' description{{refn|group="Note"|[[Classful addressing]] is obsolete and has not been used in the Internet since the implementation of [[Classless Inter-Domain Routing]] (CIDR), starting in 1993. For example, while {{IPaddr|10.0.0.0|8}} was a single class A network, it is common for organizations to divide it into smaller {{IPaddr||16}} or {{IPaddr||24}} networks. Contrary to a common misconception, a {{IPaddr||16}} subnet of a class A network is not referred to as a class B network. Likewise, a {{IPaddr||24}} subnet of a class A or B network is not referred to as a class C network. The class is determined by the first three bits of the prefix.<ref>{{cite book|last=Forouzan|first=Behrouz|title=Data Communications and Networking|year=2013|publisher=McGraw Hill|location= New York|isbn= 978-0-07-337622-6|pages= 530β31}}</ref>}} |- | 24-bit block || 10.0.0.0 β 10.255.255.255 ||{{gaps|16|777|216}} || 10.0.0.0/8 (255.0.0.0) || 24 bits || 8 bits || single class A network |- | 20-bit block || 172.16.0.0 β 172.31.255.255 || {{gaps|1|048|576}} || 172.16.0.0/12 (255.240.0.0) || 20 bits || 12 bits || 16 contiguous class B networks |- | 16-bit block || 192.168.0.0 β 192.168.255.255 || {{gaps|65|536}} || 192.168.0.0/16 (255.255.0.0) || 16 bits || 16 bits || 256 contiguous class C networks |} ==== Avoiding 192.168.0.0/16 ==== I strongly recommend avoiding the 192.168.0.0/16 range of IPs due to backward compatibility issues. The reason is that some older networking devices or software may not recognize classless networking. While you ''can'' do 192.168.0.0/25, this may not make some legacy devices happy. Usually, with classful, you can go smaller, not larger. Although this is rare, you can occasionally run into problems.
Summary:
Please note that all contributions to Project Homelab may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project Homelab:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
About the Project
Get Involved!
Brainstorming
Wiki HOWTO
Article Template
Disclaimer
Recent changes
Random page
Help
Content
Requirements
Homelab Categories
Building a Homelab
Managing a Homelab
Securing a Homelab
Keep It Simple Stupid
HOWTO Articles
Decision Trees
The Unofficial HCL
Jargon Buster
Homelab Horror Stories
Free Learning Resources
Tools
What links here
Related changes
Special pages
Page information
[[File:nodespace-selfhosted-234x60-1.png|link=http://www.nodespace.com]]