Am 14.10.2024 um 17:47 schrieb Chris Ross:
>
>
>> On 2024-09-10 19:20:13, Thomas Bohl <openbsd-misc-518597@aloof.de> wrote:
>> I used https://aloof.de/f/IPv6Aliases-en.sh for many years.
>> HTH
>
> Apologies that I missed this earlier, Thomas. I took a look at this now,
> and it does do very much what I want. I have been trying to find something
> event-based, rather than polling, but this is a good tool if I go that
> route. Thank you.
>
> But, I do notice something looking at it and my openbsd system; the
> command-set that produces "publicIPv6Net" seems wrong. Specifically,
> it runs "sort -u" on the networks and then "tail -n 1", proportedly
> because newer networks are listed at the bottom.
>
> First, sort loses ordering.
You are right. I see that my first version from 2018 didn't had it. I
can't remember why I added it.
> Second, on my system the last address
> output by "route -n show -inet6 | grep ::/64" is not the current
> one. Actually, that list seems also to be sorted lexographically
> even before running sort. I think "route show" lists them in
> address-order, not time-order.
Again you seem to be right and I don't remember if it ever was
different. The comment for tail at least implies it.
What a bummer. I used this script for 5 years on 6 machines and never
had a problem. But now that I no longer use it myself I maybe should
delete it or at least no longer promote it.
No comments:
Post a Comment