dhcpcd-discuss

Re: IPv6 Prefix Length

jobhunts02

Thu Mar 01 21:22:57 2018

How does the subnet prefix defined on the DHCP server for a pool take effect?

For example, if I have 2 different subnets with different prefixes, how would I enforce this?

> On Mar 1, 2018, at 6:28 AM, Roy Marples <roy@xxxxxxxxxxxx> wrote:
> 
>> On 01/03/2018 02:44, jobhunts02@xxxxxxx wrote:
>> On my server in dhcpd6.conf  the prefix length is 64:
>> subnet6 2001:ed8:77b5::/64 {
>>         range6                          2001:ed8:77b5:0:10:123:105:150 2001:ed8:77b5:0:10:123:105:155;
>> }
>> On my client, I am getting an address with a prefix length of 128:
>> inet6 addr: 2001:ed8:77b5:0:10:123:105:155/128 Scope:Global
>> Is this the expected behavior?
> 
> Yes this is expected.
> A DHCPv6 lease is not tied to any specific prefix.
> The kernel will use the longest matching prefix as the out-going route.
> 
> Roy


Follow-Ups:
Re: IPv6 Prefix LengthGraham Breed
Re: IPv6 Prefix LengthHarald Albrecht
References:
IPv6 Prefix Lengthjobhunts02
Re: IPv6 Prefix LengthRoy Marples
Archive administrator: postmaster@marples.name