Fixed Size of IPv6 SLAAC

dhcpv6gatewayipv6

My confusion with IPv6 SLAAC is that the router provides the network prefix, and the host generates its own part using EUI-64, which means it is always going to be a 64-bit address.

Now, SLAAC is part of Router Advertisement and this is the only way to get "Default Gateway" for IPv6 addresses, as I have read that DHCPv6 doesn't provide gateway information. Only Router Advertisements give Gateway information to hosts.

Now, the problem is, if I want smaller subnets in my organization with /96 or /112 or /116 addresses, how can I address this issue, if I want the addresses to be provided dynamically? Because, if I use SLAAC, then I need to keep the host portion as /64 and if I use DHCPv6, I will not get gateway information for my hosts.

Thanks in advance for your help.

Best Answer

There is no such thing as /96 or /112 or the like, and you better don't even try to "make" such subnets. Apart from some special cases a subnet in IPv6 is always /64. Several mechanisms rely on that, among which is SLAAC. If you try to invent smaller subnets, these mechanisms will sooner or later collide with your scheme.

In an enterprise environment you are usually assigned a /48 or larger, so there should be no lack of subnets. To think that a /64 is a big waste is tempting but entirely IPv4-ish. The seemingly ludicrous size of subnets was chosen to allow for unmanaged address generation mechanisms (such as SLAAC) that pick an interface identifier randomly (in a suitable sense) with acceptably low collision probability.

N.B. Your statement

I have read that DHCPv6 doesn't provide gateway information.

is not true. It is possible to configure the network such that all relevant information about network configuration is distributed by DHCPv6.

Related Topic