Global unicast address

On this page 7

A global unicast address (GUA) is an IPv6 address that uniquely identifies a single network interface and is routable across the public Internet. Packets sent to it are delivered to exactly one destination, and the address is valid in global scope, unlike link-local or unique local addresses that work only inside a link or a private site.

In Internet addressing, global unicast addresses are the IPv6 counterpart of public IPv4 addresses. They are currently allocated from the 2000::/3 block, which covers one eighth of the entire 128-bit IPv6 space and is large enough to give every device its own address without network address translation.

Structure of a global unicast address

Every global unicast address consists of three logical parts: a global routing prefix, a subnet ID and an interface identifier. The structure is defined in the IPv6 addressing architecture specification, RFC 4291, and keeps routing hierarchical while leaving room for internal subnetting.

The global routing prefix is assigned by a regional Internet registry to an ISP or large organization and announced in BGP. The subnet ID is chosen by the site operator to number its internal networks, and the 64-bit interface identifier distinguishes hosts on one subnet. The following table shows a typical split for a site that receives a /48.

FieldTypical lengthAssigned byPurpose
Global routing prefix48 bitsRegistry and ISPIdentifies the site on the Internet
Subnet ID16 bitsSite administratorNumbers internal subnets
Interface identifier64 bitsHost or DHCPv6 serverIdentifies one interface on the subnet
Typical bit layout of a global unicast address

With a /48, a site can create 65,536 subnets of /64 each, and every /64 holds about 18 quintillion interface identifiers. The /64 boundary is not arbitrary: Stateless Address Autoconfiguration (SLAAC) requires a 64-bit interface identifier, so subnets smaller than /64 break autoconfiguration on ordinary hosts.

How hosts obtain a global unicast address

A host obtains a global unicast address after a router advertises the subnet prefix, using SLAAC, DHCPv6 or static configuration. The router sends Router Advertisement messages containing the /64 prefix and flags that tell hosts which method to use.

MethodHow the interface identifier is chosenCentral recordTypical use
SLAAC with stable privacy IDsHash of prefix, interface and secret keyNoWorkstations and servers in client networks
SLAAC with temporary addressesRandom value changed periodicallyNoOutgoing connections from laptops and phones
Stateful DHCPv6Leased by a DHCPv6 serverYesEnterprises needing address accounting
Static configurationSet manually by an administratorYes, in documentationRouters, DNS servers and other infrastructure
Methods of assigning global unicast addresses

Older SLAAC implementations derived the identifier from the MAC address using the modified EUI-64 format, which exposed hardware identity and allowed tracking across networks. Current practice uses stable opaque identifiers (RFC 7217) and temporary privacy addresses (RFC 8981), so a single interface often holds several global unicast addresses at once.

Before using any new address, the host runs Duplicate Address Detection, a Neighbor Discovery check that confirms no other node on the link already uses it.

Global unicast compared with other IPv6 address types

IPv6 defines several unicast scopes plus multicast and anycast, and an interface typically holds more than one address type simultaneously. Knowing which type applies prevents common routing and firewall mistakes.

Address typePrefixScopeRoutable on the Internet
Global unicast2000::/3GlobalYes
Unique local addressfc00::/7, in practice fd00::/8Site or organizationNo
Link-local unicastfe80::/10Single linkNo
Loopback::1/128Host itselfNo
Multicastff00::/8Varies by scope fieldOnly global-scope groups
AnycastTaken from unicast spaceSame as underlying prefixYes, when globally announced
IPv6 address types and their scope

An anycast address is syntactically identical to a unicast address; the difference lies only in routing, because the same prefix is announced from several locations. A global unicast address therefore names one interface, while a globally announced anycast address names whichever instance is topologically nearest.

In IPv4, the closest equivalent is a public IP address. The IPv4 term global unicast is occasionally used for publicly routable space that excludes private, loopback and multicast ranges, but the formal definition belongs to IPv6.

Allocation and routing of global unicast prefixes

Global unicast space is distributed hierarchically from IANA to the regional Internet registries, then to ISPs and end sites. This hierarchy keeps the global routing table aggregated, because one ISP announces a single large block instead of thousands of customer prefixes.

  • IANA delegates large blocks, typically /12, to regional registries such as RIPE NCC, ARIN and APNIC.
  • Registries allocate /32 or larger blocks to ISPs and provider-independent space, often /48, to multihomed organizations.
  • ISPs assign end sites a /48, a /56 or at least a /64, depending on policy and customer type.
  • Most networks filter announcements longer than /48, so smaller prefixes rarely propagate across the Internet.

The 2001:db8::/32 documentation prefix lies inside 2000::/3 but is reserved for examples and must never appear in live routing. Other special-purpose blocks, such as 2002::/16 for the deprecated 6to4 mechanism, also sit within the global unicast range.

Security and operational considerations

Because global unicast addresses are reachable end to end, the protection that NAT incidentally provided in IPv4 disappears. A stateful firewall must block unsolicited inbound connections by default, otherwise every printer and camera with a GUA becomes directly exposed.

  • Prefix changes by residential ISPs renumber every host; prefix delegation with stable assignments reduces disruption.
  • Logging and attribution are harder when hosts rotate temporary addresses; correlate logs at /64 level when tracing a subnet.
  • ICMPv6 filtering must allow Neighbor Discovery and Packet Too Big messages, or connectivity and path MTU discovery fail.
  • Assigning prefixes longer than /64 to client subnets breaks SLAAC and should be avoided.

In simple terms

A global unicast address is like a full postal address for one specific device. It is valid anywhere in the world. Anyone on the Internet who knows it can send data straight to that device. In the same way, anyone can mail a letter to a house if they know its street, city and country.

IPv6 has so many of these addresses that every device can have its own. Phones, laptops and sensors no longer need to share. Most IPv4 home networks still squeeze a whole household behind one address.

A practical example

A university receives the provider-independent prefix 2001:db8:4a00::/48 from its regional registry and announces it to two upstream providers. The network team assigns one /64 per building and function, for example subnet 0x0110 for the library Wi-Fi, giving 2001:db8:4a00:110::/64.

A student laptop joining that Wi-Fi receives a Router Advertisement, builds a stable address and a temporary privacy address, and browses with the temporary one. Servers in the data center use static global unicast addresses registered in DNS. The campus firewall permits inbound traffic only to those servers, so the university gains direct end-to-end addressing without NAT while keeping client devices shielded from unsolicited connections.