← IPv6 Subnets • IPv4 Subnet Calculator

Point-to-Point

IPv6 /127 Prefix

The recommended prefix length for point-to-point router links (RFC 6164), giving exactly 2 addresses and avoiding ping-pong attacks on the link.

Total Addresses2
Host Bits1
/64 Subnets Inside—
Prefix Maskffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe
Advertisement Slot

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

Example Address2001:db8:abcd:12::10/127
Network2001:db8:abcd:12::10/127
Expanded Network2001:0db8:abcd:0012:0000:0000:0000:0010
First Address2001:db8:abcd:12::10
Last Address2001:db8:abcd:12::11
Reverse DNS ZoneNot on a nibble boundary (delegated as several zones)

Ready-to-Paste Configs for a /127

Using the documentation prefix 2001:db8:abcd:12::10/127 as the example network.

Windows PowerShell Static IPv6 Assignment

New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress "2001:db8:abcd:12::11" -PrefixLength 127 -DefaultGateway "2001:db8:abcd:12::10"

Cisco IOS Router Interface & ACL

ipv6 unicast-routing
!
interface GigabitEthernet0/0
 ipv6 address 2001:db8:abcd:12::10/127
!
ipv6 access-list ALLOW-NET
 permit ipv6 2001:db8:abcd:12::10/127 any

Linux ip -6 & ip6tables

ip -6 addr add 2001:db8:abcd:12::11/127 dev eth0
ip -6 route add default via 2001:db8:abcd:12::10 dev eth0
ip6tables -A INPUT -s 2001:db8:abcd:12::10/127 -j ACCEPT

IPv6 /127 FAQ

How many addresses are in an IPv6 /127?

A /127 leaves 1 bits for addresses, which is 2 addresses in total.

Where is an IPv6 /127 commonly used?

The recommended prefix length for point-to-point router links (RFC 6164), giving exactly 2 addresses and avoiding ping-pong attacks on the link.


← /126 /128 →