ipv6 mac address into the address linklocal

mac  3c:32:66:67:dd:46

linklocal address 

The first six fixed fe80 ::

A seventh mac address of the first byte is calculated as follows

(byte) ((byte) (macbyte & 0xFD) | (~(macbyte & 0x02)) & 0x02)

Then through integer.toHexString () you can see the relevant print string

Eighth fixed ff

Ninth fixed fe

Finally, the last three as a three byte mac address

Guess you like

Origin www.cnblogs.com/GodZhe/p/11577041.html