← IPv6 Subnets • IPv4 Subnet Calculator
Site AssignmentThe recommended assignment for a typical site or organisation, giving 65,536 /64 subnets. Also the longest prefix generally accepted in the global routing table.
That is ≈ 1.2 × 1024 addresses.
| Example Address | 2001:db8:abcd:12::10/48 |
|---|---|
| Network | 2001:db8:abcd::/48 |
| Expanded Network | 2001:0db8:abcd:0000:0000:0000:0000:0000 |
| First Address | 2001:db8:abcd:: |
| Last Address | 2001:db8:abcd:ffff:ffff:ffff:ffff:ffff |
| Reverse DNS Zone | d.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa |
Using the documentation prefix 2001:db8:abcd::/48 as the example network.
New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress "2001:db8:abcd::10" -PrefixLength 48 -DefaultGateway "2001:db8:abcd::1"
ipv6 unicast-routing
!
interface GigabitEthernet0/0
ipv6 address 2001:db8:abcd::1/48
!
ipv6 access-list ALLOW-NET
permit ipv6 2001:db8:abcd::/48 any
ip -6 & ip6tablesip -6 addr add 2001:db8:abcd::10/48 dev eth0
ip -6 route add default via 2001:db8:abcd::1 dev eth0
ip6tables -A INPUT -s 2001:db8:abcd::/48 -j ACCEPT
A /48 leaves 80 bits for addresses, which is 1,208,925,819,614,629,174,706,176 addresses in total.
A /48 contains 65,536 separate /64 subnets.
The recommended assignment for a typical site or organisation, giving 65,536 /64 subnets. Also the longest prefix generally accepted in the global routing table.