View Single Post
  #6   (View Single Post)  
Old 5th December 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

First. It seems to me you are confused about how IP subnetting works. If so, I could recommend a book or two, if online tutorials aren't helpful.

Very very briefly, a /24 subnet such as 192.168.1.0/24 contains 256 addresses. 254 of the addresses may be assigned to devices (.1 - .254), while 2 of the addresses are reserved (.0 and .255). If you want to have two /24 subnets in sequence, the next such subnet would be 192.168.2.0, with its 256 addresses, and so on.

While I find CIDR notation much more clear to me than decimal netmask notation, it won't matter to you if you do not understand what these notations mean, and how subnets are addressed.

OpenBSD's hostname.if(5) and ifconfig(8) provisioning tools will accept either notation format for IPv4 addressing.

Second. There are MANY private address ranges. The most common ranges for private IPv4 networks are the RFC 1918 address ranges. There are three ranges in that RFC, which you can subdivide into as many subnets as you wish.

10.0.0.0/8. This is the range 10.0.0.0 - 10.255.255.255, which is 16,777,216 addresses.

172.16.0.0/12. This is the range 172.16.0.0 - 172.31.255.255, which is 1,048,576 addresses.

192.168.0.0/16. This is the range 192.168.0.0 - 192.168.255.255, which is 65,536 addresses.

----

Recommendation: Pick one of these RFC 1918 ranges, and subdivide it into as many /24 subnets as you need. For example, the 10.0.0.0/8 range can be subdivided into 65,536 unique /24 subnets, each with 256 addresses.
Reply With Quote