IPv4 Tunnel Networks - Multiple /24 vs Single /16
-
I have an OVPN server that I wish to allow access a number of local networks:
- 10.27.0.0/24
- 10.27.10.0/24
- 10.27.20.0/24
- 10.27.30.0/24
- 10.27.40.0/24
- 10.27.50.0/24
- 10.27.60.0/24
- 10.27.70.0/24
- 10.27.80.0/24
- 10.27.90.0/24
This list of networks may grow over time.
Instead of listing these /24 networks individually and having to edit it every time a new network is added can I simply list the IPv4 Tunnel Network as 10.27.0.0/16?
https://www.calculator.net/ip-subnet-calculator.html?cclass=a&csubnet=16&cip=10.27.0.0&ctype=ipv4&x=Calculate
-
@McMurphy
Yes, for sure you can state a larger subnet, which includes all needed.However, to avoid conflicts, especially if you connect other locations via VPN to your network, either for user access or site to site, I'd set the network only as large as necessary and range the subnets closer.
You have currently 10 used /24, while there are 81 x /24 in the gaps in between.
You could use 10.27.0.0/20 which gives you 16 x /24 subnets for instance.