representation to its binary value In IPv6, the address size was increased from 32 bits in IPv4 to 128 bits, thus providing up to 2128 (approximately ) addresses. This is deemed sufficient for the foreseeable future. The intent of the new design was not to provide just a sufficient quantity of addresses, but also to redesign routing in the Internet by allowing more efficient aggregation of subnetwork routing prefixes. This resulted in slower growth of
routing tables in routers. The smallest possible individual allocation is a subnet for 264 hosts, which is the square of the size of the entire IPv4 Internet. At these levels, actual address utilization ratios will be small on any IPv6 network segment. The new design also provides the opportunity to separate the addressing infrastructure of a network segment, i.e., the local administration of the segment's available space, from the addressing prefix used to route traffic to and from external networks. IPv6 has facilities that automatically change the routing prefix of entire networks, should the global connectivity or the
routing policy change, without requiring internal redesign or manual renumbering. The large number of IPv6 addresses allows large blocks to be assigned for specific purposes and, where appropriate, to be aggregated for efficient routing. With a large address space, there is no need to have complex address conservation methods as used in CIDR. All modern desktop and enterprise server operating systems include native support for
IPv6, but it is not yet widely deployed in other devices, such as residential networking routers,
voice over IP (VoIP) and multimedia equipment, and some
networking hardware.
Private addresses Just as IPv4 reserves addresses for private networks, blocks of addresses are set aside in IPv6. In IPv6, these are referred to as
unique local addresses (ULAs). The routing prefix is reserved for this block, which is divided into two blocks with different implied policies. The addresses include a 40-bit
pseudorandom number that minimizes the risk of address collisions if sites merge or packets are misrouted. Early practices used a different block for this purpose (), dubbed site-local addresses. However, the definition of what constituted a
site remained unclear and the poorly defined addressing policy created ambiguities for routing. This address type was abandoned and must not be used in new systems. Addresses starting with , called
link-local addresses, are assigned to interfaces for communication on the attached link. The addresses are automatically generated by the operating system for each network interface. This provides instant and automatic communication between all IPv6 hosts on a link. This feature is used in the lower layers of IPv6 network administration, such as for the
Neighbor Discovery Protocol. Private and link-local address prefixes may not be routed on the public Internet. ==IP address assignment == IP addresses are assigned to a host either dynamically as they join the network, or persistently by configuration of the host hardware or software. Persistent configuration is also known as using a
static IP address. In contrast, when a computer's IP address is assigned each time it restarts, this is known as using a
dynamic IP address. Dynamic IP addresses are assigned by network using
Dynamic Host Configuration Protocol (DHCP). DHCP is the most frequently used technology for assigning addresses. It avoids the administrative burden of assigning specific static addresses to each device on a network. It also allows devices to share the limited address space on a network if only some of them are online at a particular time. Typically, dynamic IP configuration is enabled by default in modern desktop operating systems. The address assigned with DHCP is associated with a
lease and usually has an expiration period. If the lease is not renewed by the host before expiry, the address may be assigned to another device. Some DHCP implementations attempt to reassign the same IP address to a host, based on its
MAC address, each time it joins the network. A network administrator may configure a DHCP server to allocate specific IP addresses to specific MAC addresses. DHCP is not the only technology used to assign IP addresses dynamically.
Bootstrap Protocol is a similar protocol and predecessor to DHCP.
Dialup and some
broadband networks use dynamic address features of the
Point-to-Point Protocol. Computers and equipment used for the network infrastructure, such as routers and mail servers, are typically configured with static addressing. In the absence or failure of static or dynamic address configurations, an operating system may assign a link-local address to a host using stateless address autoconfiguration.
Sticky dynamic IP address Sticky is an informal term used to describe a dynamically assigned IP address that seldom changes. IPv4 addresses, for example, are usually assigned with DHCP, and a DHCP service
can use rules that maximize the chance of assigning the same address each time a client asks for an assignment. In IPv6, a
prefix delegation can be handled similarly, to make changes as rare as feasible. In a typical home or small-office setup, a single
router is the only device visible to an
Internet service provider (ISP), and the ISP may try to provide a configuration that is as stable as feasible, i.e.
sticky. On the local network of the home or business, a local DHCP server may be designed to provide sticky IPv4 configurations, and the ISP may provide a sticky IPv6 prefix delegation, giving clients the option to use sticky IPv6 addresses.
Sticky should not be confused with
static; sticky configurations have no guarantee of stability, while static configurations are used indefinitely and only changed deliberately.
Address autoconfiguration Address block is defined for the special use of link-local addressing for IPv4 networks. In IPv6, every interface, whether using static or dynamic addresses, also receives a link-local address automatically in the block . APIPA has been deployed on millions of machines and became a
de facto standard in the industry. In May 2005, the
IETF defined a formal standard for it.
Addressing conflicts An IP address conflict occurs when two devices on the same local physical or wireless network claim to have the same IP address. A second assignment of an address generally stops the IP functionality of one or both of the devices. Many modern
operating systems notify the administrator of IP address conflicts. When IP addresses are assigned by multiple people and systems with differing methods, any of them may be at fault. If one of the devices involved in the conflict is the
default gateway access beyond the LAN for all devices on the LAN, all devices may be impaired. ==Routing==