Site map  

Convert MAC address to Link-local address or Link-local address to MAC address

The IPv6 Link-local address is derived form the MAC- or Ethernet hardware address in the following way;

Mac address:XX:XX:XX:XX:XX:XX
IPv6 Link local address:fe80::xyxx:xxff:fexx:xxxx

Where y = X XOR 2. Furthermore 'ff:fe' is inserted and 'fe80::' prepended.

'y = X XOR 2' means inverting the 2nd bit from the right;

X binX Hexy biny Hex
0000000102
0001100113
0010200000
0011300011
0100401106
0101501117
0110601004
0111701015
100081010a
100191011b
1010A10008
1011B10019
1100C1110e
1101D1111f
1110E1100c
1111F1101d

The form below does the conversion for you (both ways);
Start Link-local address with 'fe80::'.
Make sure you don't cut-and-paste spaces or tabs.