genmac-random
QNX SDP8.0Utilities ReferenceUtilities
Generate a random MAC address
Syntax:
genmac-random [-m][-p]
Runs on:
QNX OS
Options:
- -m
- Print the MAC address.
- -p
- Toggle the lower bit of the generated MAC address. This permits the genmac-random utility to be on two interfaces on the same target.
Description:
The genmac-random generates a random MAC each time it's run
to stdout
using the random service and
reading from /dev/random.
If no options are provided, the MAC address is provided
as an ID Number.
Note:
This utility uses the random service and must be able to
read from /dev/random, otherwise it fails.
Page updated: