Hurricane Electric's IPv6 Tunnel Broker Forums

Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: IPv6 Prefix Length  (Read 6613 times)

taichimaster

  • Newbie
  • *
  • Posts: 2
IPv6 Prefix Length
« on: July 11, 2011, 03:57:11 AM »

I have a question about IPv6 address and its prefix length that I don't quite fully understand.

As far as I understand, a typical IPv6 node address consist of a prefix and an interface identifier (total 128 bits).  The prefix is the part of the address where the bits have fixed values or are the bits that define a subnet.  RFC 4291 (Section 2.5.1) also says that all IPv6 unicast addresses are required to have a 64-bit interface identifier, so that means subnet prefix (including the global routing prefix) is going to be 64-bit wide.

Any prefix that is less than 64 bits refers to a summarized route or an address range that is summarizing a portion of the IPv6 address space but not an actual node address.

If all of the above is correct understanding, then how come when we assign an IPv6 address to an interface/adapter (via ifconfig or netsh), we could specify a prefix length?  Isn't it always going to be 64?  When comparing if 2 IPv6 addresses are in the same network, do we always match the first 64-bit of the 2 addresses to see if they have the same values?

What's the meaning when someone assigns a node address with a non-64 prefix?

Thanks.



Logged

cholzhauer

  • Hero Member
  • *****
  • Posts: 2732
Re: IPv6 Prefix Length
« Reply #1 on: July 11, 2011, 08:04:30 AM »

You can assign prefix lengths other than /64.

Like you said, /64 is what most OS's expect and the length you should use, but you do have the ability to change it.

I've seen some people use a /126 for router intefaces
Logged