initial commit
This commit is contained in:
commit
74412c51a4
9 changed files with 229 additions and 0 deletions
11
get_linklocal_for_vm
Executable file
11
get_linklocal_for_vm
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
mac_to_ipv6_ll() {
|
||||
IFS=':'; set $1; unset IFS
|
||||
echo "fe80::$(printf %02x $((0x$1 ^ 2)))$2:${3}ff:fe$4:$5$6"
|
||||
}
|
||||
|
||||
|
||||
mac_to_ipv6_ll $(qm config $1 | grep -oE ..:..:..:..:..:.. | tr '[:upper:]' '[:lower:]')
|
Loading…
Add table
Add a link
Reference in a new issue