How can I convert a Mac address into an ipv6 Link-Local address?
you have to add
fe80:: at the start and insert
ff:fe in the middle
furthermore all leading zeros must be stripped
You can use
You can use the prefix and suffix stripping constructs
You can use the substring construct (bash only, not sh).
Taking Gilles' explanation, but correctly flipping the 7th bit as per IPv6 spec:
Example of bit-flipping: