← IPv6 Subnets • IPv4 Subnet Calculator
Point-to-PointThe recommended prefix length for point-to-point router links (RFC 6164), giving exactly 2 addresses and avoiding ping-pong attacks on the link.
| Example Address | 2001:db8:abcd:12::10/127 |
|---|---|
| Network | 2001:db8:abcd:12::10/127 |
| Expanded Network | 2001:0db8:abcd:0012:0000:0000:0000:0010 |
| First Address | 2001:db8:abcd:12::10 |
| Last Address | 2001:db8:abcd:12::11 |
| Reverse DNS Zone | Not on a nibble boundary (delegated as several zones) |
Using the documentation prefix 2001:db8:abcd:12::10/127 as the example network.
New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress "2001:db8:abcd:12::11" -PrefixLength 127 -DefaultGateway "2001:db8:abcd:12::10"
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
ip -6 & ip6tablesip -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
A /127 leaves 1 bits for addresses, which is 2 addresses in total.
The recommended prefix length for point-to-point router links (RFC 6164), giving exactly 2 addresses and avoiding ping-pong attacks on the link.