Score:0

IPv6 - Are the last 16 bits of the network ID always reserved for subnetting?

st flag
sam

I was reading about IPv6 address structure and it has two portions one for the network (Network portion/Network ID) and another for host (Interface ID/Node Part) something like IPv4 has regardless of the size difference.

Most of the references stated that the address is divided into 64 bits for the network (/64 prefix) and 64 bits for the Host , and we can use the last 16 bits of the network part for subnetting .

So is this a rule in IPv6 that the address is always split in half ? and if we want to subnet the address the ISP would give an address with /48 prefix bits leaving only the last 16 bits of the network part for subnetting ? or just a recommended path to follow ?

Regards

Ron Maupin avatar
us flag
Basically, if you are assigned a `/48` for a site, then you have 16 bits for subnetting (65,536 possible standard IPv6 `/64` networks). It is possible you may get a smaller prefix, e.g. `/32` or even smaller, and that would give you more bits for subnetting. You cannot advertise any IPv6 prefix larger than `/48` on the public Internet, so prefixes advertised on the public Internet will have at least 16 bits for subnetting.
Score:2
cn flag

This is a recommended setup - nothing prevents you from subnetting /64 further, but SLAAC will not work and you'll need to stick to DHCPv6 or static address assignment.

The same holds for /48 and /56 customer assignments, these are numbers defined in allocation guidelines, but operators sometimes have their own bright ideas, e.g. assigning the whole rack one /64..

IPv6 address allocation strategy has been designed with these best practices in mind, resources assigned are abundant for any reasonable use case, so one should stick to them and not reinvent the wheel.

sam avatar
st flag
sam
thanks for the answer , just one last thing , why Stateless Address Autoconfiguration wouldn't work ? isn't the link-local address always /64 ? i mean the interface id must always be 64 and that's make sense ,but if subnetting is used for unique local/global addresses how does this affect link local ? and forgive my poor knowledge .
Peter Zhabin avatar
cn flag
Link-local fe80::/64 addresses would still be assigned as usual, but SLAAC is about assigning globally-unique IPv6 addresses, and for that to work host needs to use it's generated EUI-64 host part together with network address received from the router in RA. Naturally, if your router advertises a prefix longer than /64, there's no way for host to fit EUI-64 into it..
sam avatar
st flag
sam
thanks a lot for the clarification
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.