Add helper script to generate link-local IPv6 address

This commit is contained in:
Théophile Bastian 2025-03-04 10:00:46 +01:00
parent e231a69de0
commit a98630e3b6

6
bin/gen_fe80 Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/python3
import random
suffix = ':'.join([random.randbytes(2).hex() for _ in range(4)])
print(f'fe80::{suffix}')