فارسی

Generate MAC Addresses and IPv6 ULA Prefixes

Generate random MAC addresses with a vendor prefix and scope, or a local IPv6 ULA prefix for testing and documentation.

An internet connection is needed for IP and DNS lookups.

About this tool

A MAC address is six bytes; in an OUI-based address the first three bytes are the vendor prefix. A random local address need not identify a vendor. You can supply a three-byte prefix and let the rest be random, or leave the whole address random. The locally-administered and unicast/multicast bits live in the first byte, and the scope option sets them. An IPv6 ULA prefix comes from fd00::/8: a 40-bit global ID and a 16-bit subnet, written as a /64 ready for a lab. Both are generated with the browser’s random source and are not stored or sent anywhere.

How to use it

  1. 1

    Choose MAC or IPv6 ULA mode.

  2. 2

    For MAC, set the prefix, scope, separator and count; for ULA, give a subnet or leave it empty.

  3. 3

    Press Generate, then copy or download the output.

If the answer looks wrong

  • The prefix is not accepted.

    A prefix must be exactly six hex digits, such as 02:1A:2B or 021A2B. A short or long one is ignored.

  • The ULA is different from what I expected.

    The prefix always starts with fd and has four groups; an empty subnet is random. To repeat a prefix, fix the subnet.

  • The ULA does not work on the internet.

    A ULA is for a local network only and has no public route. Use a global prefix for the internet.

Frequently asked questions

What is a MAC address?

It is a six-byte hardware identifier for a network card. An OUI-based address starts with a three-byte vendor prefix. A random local address need not identify a vendor. The random addresses here are for labs, documentation and MAC-filter testing.

What do the local and unicast bits mean?

In the first byte, the second bit from the right marks a locally administered address (not registered with IEEE), and the last bit marks unicast or multicast. The local mode sets both so the address is valid for testing; when you supply a prefix, it is left untouched.

What is an IPv6 ULA?

It is the local IPv6 range in fd00::/8, used inside a network and not routed on the internet. The /48 comes from fd plus a 40-bit global ID, and the /64 adds a 16-bit subnet.

Are these addresses real?

A random MAC may share a prefix with a real vendor, but no device owns it. A ULA is only for a local network. For real use, review your own prefix and addressing plan.

Are the addresses stored anywhere?

No. Generation happens in your browser and no address is sent to a server.