Hello,
> My Internet connection is using dynamic IPv6 prefixes. I want to configure a local (OpenBSD) machine so its public IPv6 address adjusts to changes in the network prefix but keeps a static Interface Identifier (IID). I'd also like to be able to configure the IID manually.
>
> Essentially this would be a server running on the LAN but with a public IPv6 address, reachable from the Internet.
I wrote a script that runs every minute via cron and detects a public
IPv6 network change. On a detected change you could run for example
ifconfig $interface inet6 alias $newIPv6Net:1:2:3:4
update-dyndns-whatever
(You configure what $interface is, and $newIPv6Net is the new network
prefix.) So you always (minus up to a minute) have a working :1:2:3:4
interface identifier.
I use the script since four years, but only now decided to publish it. I
hope it is self-explanatory and that my English comments make sense.
https://aloof.de/f/IPv6Aliases-en.sh
https://aloof.de/f/IPv6Aliases-de.sh
No comments:
Post a Comment