Distinguish IPv6 address added via SLAAC and DHCPv6
feedback
Wed Sep 11 18:15:22 2019|
Hi all, due to some constraints from an external software protocol I need to group IPv6 addresses per network interface in link-local, manual-set, slaac- and dhcpv6-based addresses (I know, don't ask...). I have done some research if this is possible after interface configuration via dhcpcd. * link-local addresses can be filtered out by being 'scope=link' * manual-set addresses can be filtered out by being permanent and not 'dynamic' and also because we set them manually of course Unfortunately slaac- and dhcpv6-based addresses are indistinguishable as far as I can see because they share the same attributes by being 'scope=global' and 'dynamic'. I know of no other address flags which would make a difference. Did I miss something obvious here? If it's not possible after interface configuration, I thought about using my user-defined dhcpcd.enter-hook (or hacking dhcpcd directly?) to save 'incoming' slaac/dhcpv6 addresses in seperate text files and compare them later with the interface configuration. Maybe someone has done a similar approach (I doubt it ;-)) or a better solution around dhcpcd? Kind regards, Andreas |
| Re: Distinguish IPv6 address added via SLAAC and DHCPv6 | Roy Marples |