← IPv6 Subnets • IPv4 Subnet Calculator

Large Enterprise

IPv6 /40 Prefix

Sometimes assigned to very large enterprises or used by ISPs as a regional block. Provides 256 /48 sites.

Total Addresses309,485,009,821,345,068,724,781,056
Host Bits88
/64 Subnets Inside16,777,216
Prefix Maskffff:ffff:ff00::

That is ≈ 3.0 × 1026 addresses.

Advertisement Slot

Example: 2001:db8:abcd:12::10/40

Example Address2001:db8:abcd:12::10/40
Network2001:db8:ab00::/40
Expanded Network2001:0db8:ab00:0000:0000:0000:0000:0000
First Address2001:db8:ab00::
Last Address2001:db8:abff:ffff:ffff:ffff:ffff:ffff
Reverse DNS Zoneb.a.8.b.d.0.1.0.0.2.ip6.arpa

Ready-to-Paste Configs for a /40

Using the documentation prefix 2001:db8:ab00::/40 as the example network.

Windows PowerShell Static IPv6 Assignment

New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress "2001:db8:ab00::10" -PrefixLength 40 -DefaultGateway "2001:db8:ab00::1"

Cisco IOS Router Interface & ACL

ipv6 unicast-routing
!
interface GigabitEthernet0/0
 ipv6 address 2001:db8:ab00::1/40
!
ipv6 access-list ALLOW-NET
 permit ipv6 2001:db8:ab00::/40 any

Linux ip -6 & ip6tables

ip -6 addr add 2001:db8:ab00::10/40 dev eth0
ip -6 route add default via 2001:db8:ab00::1 dev eth0
ip6tables -A INPUT -s 2001:db8:ab00::/40 -j ACCEPT

IPv6 /40 FAQ

How many addresses are in an IPv6 /40?

A /40 leaves 88 bits for addresses, which is 309,485,009,821,345,068,724,781,056 addresses in total.

How many /64 subnets are in a /40?

A /40 contains 16,777,216 separate /64 subnets.

Where is an IPv6 /40 commonly used?

Sometimes assigned to very large enterprises or used by ISPs as a regional block. Provides 256 /48 sites.


← /32 /48 →