random-ip
1
user commands
djbwares
random-ip
generate IPv4 addresses randomly
random-ip
n
abcd
Description
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.
History
random-ip was originally part of Daniel J. Bernstein's djbdns toolset in 2001.
Author
Original code by Daniel J. Bernstein.
Documentation by Jonathan de Boyne Pollard.