Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Best Static IPv4 Address Organization Scheme
« previous
next »
Print
Pages: [
1
]
Author
Topic: Best Static IPv4 Address Organization Scheme (Read 1472 times)
thomas-hn
Newbie
Posts: 33
Karma: 0
Best Static IPv4 Address Organization Scheme
«
on:
April 24, 2023, 10:31:52 am »
Hi,
I am wondering if there is a cool idea, best practice, etc. for the assignment/organization of static IPv4 addresses on devices with multiple network interfaces on different subnets (to easily see which IPs belong to which device).
For example, a router has a downstream interface where it acts as a gateway and, therefore, uses the x.x.x.254 address. However, on its upstream interface the router is only a "client" to the next router and, therefore, uses maybe the x.x.x.100. So it is hard to see that the 100 on subnet A and the 254 on subnet B is on the same device.
If a device is not a router but acts in multiple VLANs, it would be nice to have something like x.x.x.25 and y.y.y.25 on its interfaces, so that it is (for humans) easy to remember that 25 is this specific device in all subnets. I am fully aware that this will not work in all use-cases, but an uncontrolled growth of IP assignments could be even worse.
Simply assigning everything via DHCP and not considering any static addresses is not an option, because subnets like "Management" shall use static addresses that the management subnet still works in case a DHCP server would fail.
How do you organize your static IPv4 addresses in your subnets?
Thanks a lot in advance,
Thomas
Logged
lilsense
Hero Member
Posts: 600
Karma: 19
Re: Best Static IPv4 Address Organization Scheme
«
Reply #1 on:
April 24, 2023, 12:08:05 pm »
two things, IPAM (IP address Management) and drawings.
Logged
thomas-hn
Newbie
Posts: 33
Karma: 0
Re: Best Static IPv4 Address Organization Scheme
«
Reply #2 on:
April 30, 2023, 01:07:33 pm »
Thanks a lot for the hint.
For IPAM tools I already had a look and found some interesting tools.
What tool are you using for the drawings? Is there any free tool available for such drawings (talking about special network drawing tools and not stuff like Visio, Inkscape, etc.)?
Logged
lilsense
Hero Member
Posts: 600
Karma: 19
Re: Best Static IPv4 Address Organization Scheme
«
Reply #3 on:
April 30, 2023, 10:24:25 pm »
you can use
https://www.diagrams.net/
Logged
sphbecker
Newbie
Posts: 14
Karma: 2
Re: Best Static IPv4 Address Organization Scheme
«
Reply #4 on:
May 06, 2023, 07:07:56 pm »
IPv6 does this by design, but with IPv4 you have to document it yourself.
One bit of advice when assigning static IP addresses to hosts, try to think of them as base-2 numbers, not base-10 numbers. What I mean, is don't do something like "Server are .20-.30, Printers are .50-.70." Instead use numbers like "Servers are .16-.31, Printers are .64-.95." That way, even if you never plan to divide the network up into vlans, you can still write rules based on the type of devices, so servers would be 10.0.0.16/28 and printers are 10.0.0.64/27. If you do think you might want to create VLANs at some point, avoid using the first, second and last addresses in each range as they would need to be the network, gateway and broadcast addresses respectively on a vlan.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Best Static IPv4 Address Organization Scheme