Best practice for subnet/prefix length for VIPs?
-
I have several VIPs, both IPv4 and IPv6, defined on various interfaces. I have tended to add them as /32 (for IPv4) or /128 (for IPv6) but I am wondering if there is any rule or best practice for this as the underlying interface primary addresses are /24 and /64. Does the choice of subnet/prefix size for the VIPs make any actual difference?
Everything seems to be working just fine but I'm always keen to know if I'm doing things the best way.
-
If they are additional IPs in a subnet that's already defined then they can be either a single IP or the full subnet. If they are in a different subnet than the parent then it must be defined as the full subnet.
-
I provide a /24 subnet on IPv4 and /64 on IPv6. I also have the 3rd IPv4 octet match the IPv6 prefix ID. However, this is more for convenience than technical reasons. I also use the same number for the VLAN for my guest WiFi.
-
@JKnott Geometry Dash Lite said in Best practice for subnet/prefix length for VIPs?:
I provide a /24 subnet on IPv4 and /64 on IPv6. I also have the 3rd IPv4 octet match the IPv6 prefix ID. However, this is more for convenience than technical reasons. I also use the same number for the VLAN for my guest WiFi.
The information you shared is very useful, thanks.