Re: platform-linux: do-change-link[2]: failure changing link: failure 22 (Invalid argument)



On Mon, 2018-03-26 at 13:41 +0200, Thomas Haller wrote:

Hi,

Hi Thomas,

it fails setting the token.

platform-linux: link: change 2: token: set IPv6 address generation
token to ::2

Probably because kernel does in inet6_set_iftoken():
»·······if (!token)
»·······»·······return -EINVAL;
»·······if (dev->flags & (IFF_LOOPBACK | IFF_NOARP))
»·······»·······return -EINVAL;
»·······if (!ipv6_accept_ra(idev))
»·······»·······return -EINVAL;
»·······if (idev->cnf.rtr_solicits == 0)
»·······»·······return -EINVAL;

But it succeeds eventually doesn't it, or otherwise how am I getting my
 ::2 IPv6 addresses assigned at all?

(btw, why do you want to configure the token?)

My understanding is that that is how one has a static host portion in
one's IPv6 address(es) while still allowing the router to tell the host
the network portion for all of it's addresses.

The goal is that no matter how the network portion of the address might
change, the host portion remains the same.

Is this not the correct way to achieve that?

Your router says there is a DHCPv6 server around.

Oh, interesting.

Don't configure your
network that way, if it's not the case.

Indeed.  I will look into how to disable this on the router.

Much appreciate the time you spent looking at this.

Cheers,
b.

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]