I have the following IPv6 addresses range, with netmask 64 :
A:B:C:D:E:0000:0000:0000
-> A:B:C:D:E:0000:0000:FFFF
I have to assign some of them to virtual machines.
Should I use A:B:C:D:E:0000:0000:0000
or should I start with ::1
?
Network Engineering Stack Exchange is a question and answer site for network engineers. It only takes a minute to sign up.
Sign up to join this communityThough it is possible to allocate addresses to virtual machines from the link prefix connecting the physical machine to a router, that is not the approach I would recommend.
Rather I would recommend that you get the hosting provider to route a shorter prefix to your physical machine. The prefix length you need depend on the number of VMs:
Those numbers are assuming the provider only hand out prefixes on nibble boundaries and that you want a /64 per VM. The overlap between the ranges is because I allowed for an HD-ratio anywhere between 80% and 95%.
The reasons I would recommend getting a prefix routed to the physical machine and subdivide that into a link prefix per VM are twofold.
If the hosting provider for some reason refuse to route a prefix to your physical machine, then you can instead bridge between virtual and physical interfaces. This has multiple drawbacks:
/60
gives you 16 /64
subnets. Why is it only 14 in your answer? You seem to subtract 2 from each real value.
00
to a particular site, then we can use subnets 00
to ff
for the site.