SYNOPSIS

genmac [OPTION…]

DESCRIPTION

genmac generates a random MAC address, according to options.

OPTIONS

genmac accepts following options.

-l
-local

Generate a locally administered MAC address, as opposed to globally unique MAC address. This is the default behaviour. If both --local and --global are used, one that comes last in command line options takes precedence.

-g
--global

Generate a globally unique (OUI enforced) MAC address, as opposed to locally administered MAC address. If both --local and --global are used, one that comes last in command line options takes precedence.

-u
--unicast

Generate a unicast MAC address, as opposed to multicast MAC address. This is the default behaviour. If both --unicast and --multicast are used, one that comes last in command line options takes precedence.

-m
--multicast

Generate a multicast MAC address, as opposed to unicast MAC address. If both --unicast and --multicast are used, one that comes last in command line options takes precedence.

-6
--eui48

Generate a EUI-48 MAC address, as opposed to EUI-64 MAC address. This is the default behaviour. If both --eui48 and --eui64 are used, one that comes last in command line options takes precedence.

-8
--eui64

Generate a EUI-64 MAC address, as opposed to EUI-48 MAC address. If both --eui48 and --eui64 are used, one that comes last in command line options takes precedence.

-0
--null

Instead of printing a trailing newline, print a trailing null byte (\0).

-n
--none

Do not output the trailing newline (or trailing null byte, if --null was also used).

-V
--version

Print version and exit with zero status.

--usage

Print usage and exit with zero status.

--help

Print help and exit with zero status.

EXIT STATUS

Normally, the exit status is zero. In case of error, an error is printed to stardard error stream and the exit status is non-zero.

AUTHOR

Original author and current maintainer: Mikko Värri.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.