NAME
Mock::Data::Plugin::Net - Collection of generators for Internet-related data
SYNOPSIS
$mock= Mock::Data->new(['Net']);
$mock->ipv4; # "127.54.23.132"
$mock->cidr; # "127.43.0.0/16"
$mock->macaddr; # "fc:34:23:98:13:53"
DESCRIPTION
This produces some simple patterns for network addresses. It produces private IP ranges and private MAC addresses. Patches welcome for additional features.
GENERATORS
ipv4
Return a random IP address within 127.0.0.0/8
, excluding .0 and .255
cidr
Return a random CIDR starting with 127.
like 127.0.42.0/24
macaddr
Return a random ethernet MAC in XX:XX:XX:XX:XX:XX format, taken from the Locally Administered Address Ranges.
AUTHOR
Michael Conrad <mike@nrdvana.net>
VERSION
version 0.04
COPYRIGHT AND LICENSE
This software is copyright (c) 2024 by Michael Conrad.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.