Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does it mean /64 in IPv6 [closed]

Tags:

I have vps with ipv6, such as

2605:6f00:XXX::XXXX:XXXX/64 

I don't understand meaning of /64. Does it mean that my vps has more than one ipv6 adress ?

like image 219
Alex Avatar asked Mar 07 '13 07:03

Alex


People also ask

What does the 64 mean in IPv6?

The /64 is the prefix length. It is the number of bits in the address that is fixed. So a /64 indicates that the first 64 bits of the 128-bit IPv6 address are fixed. The remaining bits (64 in this case) are flexible, and you can use all of them.

Is IPv6 prefix always 64?

The example IPv6 address has the following subnet prefix. The subnet prefix always contains 64 bits. These bits include 48 bits for the site prefix, in addition to 16 bits for the subnet ID.

Is IPv6 32 or 64-bit?

IPv6 addresses An Ipv6 address uses 128 bits as opposed to 32 bits in IPv4. Because an hexadecimal number uses 4 bits this means that an IPv6 address consists of 32 hexadecimal numbers. These numbers are grouped in 4's giving 8 groups or blocks.


1 Answers

The /64 is the prefix length. It is the number of bits in the address that is fixed. So a /64 indicates that the first 64 bits of the 128-bit IPv6 address are fixed. The remaining bits (64 in this case) are flexible, and you can use all of them. This means that when your ISP gives you a /64 they are giving you 264 addresses (that is 18,446,744,073,709,551,616 addresses).

There are several common prefix lengths for IPv6. A /64 is the size of a single LAN. As a customer you often get a /56 (256 LANs) or a /48 (65,536 LANs) from your ISP. You can then create multiple LANs which need a /64 each.

The exact number depends on the circumstances and the choices of the ISP. In a datacenter a single /64 is enough for a simple deployment with a single VLAN or a single server (possibly with virtualisation). Datacenter deployments with multiple LANs (for example the uplink VLAN of a firewall, a DMZ and one or more internet networks, or for a VPN concentrator) need more than a /64. Residential connections (DSL, FttH, etc) often get a /56 or a /48 so that the subscriber can have multiple LANs (home, office, guests, etc). Business connections always get a /48 so that they can use the available space to build a good addressing/numbering plan.

Edit: Looking again at your example I see that you explicitly specify the last 64 bits of the address. This might also mean that your ISP gave you one IPv6 address in a shared /64 (LAN) that the ISP operates.

like image 152
Sander Steffann Avatar answered Oct 06 '22 05:10

Sander Steffann