Add helper script to generate link-local IPv6 address
This commit is contained in:
parent
e231a69de0
commit
a98630e3b6
1 changed files with 6 additions and 0 deletions
6
bin/gen_fe80
Executable file
6
bin/gen_fe80
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import random
|
||||
|
||||
suffix = ':'.join([random.randbytes(2).hex() for _ in range(4)])
|
||||
print(f'fe80::{suffix}')
|
Loading…
Add table
Reference in a new issue