random-ip — generate IPv4 addresses randomly
random-ip
{n
} [a
[b
[c
[d
]]]]
random-ip prints n
randomly-chosen IPv4 addresses in human-readable form.
a
, b
, c
, and d
are the first, second, third, and fourth octets of an optional prefix to apply to all addresses.
The presence of a prefix constrains the maximum value of n
to 16777216 (1 octet), 65536 (2 octets), 256 (3 octets), or 1 (4 octets).
random-ip makes no attempt to exclude invalid or reserved address ranges.