0

I'm trying to setup my DHCPv6 on ubuntu to assign an address with a 112 prefix. My configuration looks like this:

subnet6 2001:db8:a0b::640a:0/112 {
      range6 2001:db8:a0b::6464:640a 2001:db8:a0b::6464:640d;
      default-lease-time 600;
      max-lease-time 7200;
}

I'm expecting to be assigned with IPv6 with the following notation:

2001:db8:a0b::6464:640a/112

but instead I'm getting

2001:db8:a0b::6464:640a/64

What am I missing?

ocp1000
  • 101

1 Answers1

0

The range is still incorrect. Look at the second to last segment of the IP address. In the /112 you have 640a, but in your range you have 6464. Make the following changes.

subnet6 2001:db8:a0b::640a:0/112 {
      range6 2001:db8:a0b::640a:640a 2001:db8:a0b::640a:640d;
      default-lease-time 600;
      max-lease-time 7200;
}

From https://subnettingpractice.com/ipv6_subnetting.html

Compressed Address: 2001:db8:a0b::640a:0/112
Expanded Address:   2001:0db8:0a0b:0000:0000:0000:640a:0000/112
Prefix: ffff:ffff:ffff:ffff:ffff:ffff:ffff:0000
Range:  2001:db8:a0b:0:0:0:640a:0
2001:db8:a0b:0:0:0:640a:ffff
Number of /64s: 3.552713678800501e-15
Terrance
  • 43,712