# IPV6: Prefix Length Notation #### Andrey Volkov

System, network administration + DBA. And a little programmer!)) See Author profile.

In IPv4, the prefix of the address (the network portion) can be represented either by a dotted-decimal netmask (the subnet mask) or through CIDR notation. When we see 192.168.100.0 255.255.255.0 or 192.168.100.0/24, we know that the network portion of the address is the first 24 bits of the address (192.168.100) and that the last 8 bits (.0) are host bits. IPv6 address prefixes are represented in much the same way as IPv4 address prefixes are written in CIDR notation. IPv6 prefixes are represented using the following format:

``IPv6-Address/Prefix-Length``

The prefix-length is a decimal value showing the number of leftmost contiguous bits of the address. It identifies the prefix (the network portion) of the address. In unicast addresses, it is used to separate the prefix portion from the Interface ID. The Interface ID is equivalent to the host portion of an IPv4 address.

``2001:db8:aaaa:1111::100/64``

we know that the leftmost 64 bits are the prefix (network portion) and the remaining bits are the Interface ID (host portion). See Figure 1. Figure 1 IPv6 Prefix and Prefix Length

A /64 prefix length results in an Interface ID of 64 bits. This is a common prefix length for most end-user networks. A /64 prefix length gives us 264 or 18 quintillion devices on a single network (or subnet).

There are several more common prefix length examples, as shown in Figure 2. All of these examples fall either on a hextet boundary or on a nibble boundary (a multiple of 4 bits). Although prefix lengths do not need to fall on a nibble boundary, most usually do. Figure 2 IPv6 Prefix Length Examples
{"ft_lang_label":"__label__en","ft_lang_prob":0.8686732,"math_prob":0.8966817,"size":1617,"snap":"2021-43-2021-49","text_gpt3_token_len":393,"char_repetition_ratio":0.1618103,"word_repetition_ratio":0.0,"special_character_ratio":0.26097712,"punctuation_ratio":0.11411411,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96589315,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-25T22:51:59Z\",\"WARC-Record-ID\":\"<urn:uuid:e10cf1ea-17b4-4e74-adea-5c75746b4ab5>\",\"Content-Length\":\"200175\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bce56978-d348-4619-9983-3590a2f837e1>\",\"WARC-Concurrent-To\":\"<urn:uuid:6d556a59-3599-4253-a27c-67578f1ab115>\",\"WARC-IP-Address\":\"80.87.200.23\",\"WARC-Target-URI\":\"https://ktulhu41.no.fvds.ru/en/cloud-net/ipv6-prefix-length-notation\",\"WARC-Payload-Digest\":\"sha1:N2XVAMC5GGN3SIQAOOJI65EG55FLABAR\",\"WARC-Block-Digest\":\"sha1:7JRE4LQJRI65PXCDTTOSU7EGLRDMCC4X\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323587770.37_warc_CC-MAIN-20211025220214-20211026010214-00490.warc.gz\"}"}