Random IP & MAC Address Generator — IPv4, IPv6, MAC Online

Professional free random IPv4, IPv6 and MAC address generator for network equipment testing, network automation, cybersecurity and educational labs. Public and private IPs in multiple MAC formats with export options

Network Address Generator
Generated Addresses
🌐

Configure settings and click "Generate Addresses" to create IP/MAC addresses

Address Types
🌐 IPv4 Addresses

Internet Protocol version 4 — the most common IP address format consisting of four octets (numbers from 0 to 255) separated by dots.

Types:
  • Public IPv4: routable on the global internet
  • Private IPv4: for local networks (192.168.x.x, 10.x.x.x, 172.16-31.x.x)
  • Class A: 0.0.0.0 - 127.255.255.255 (large networks)
  • Class B: 128.0.0.0 - 191.255.255.255 (medium networks)
  • Class C: 192.0.0.0 - 223.255.255.255 (small networks)
  • Loopback: 127.0.0.1 (localhost)
🔷 IPv6 Addresses

Internet Protocol version 6 — the newer IP addressing standard with 128-bit addresses providing virtually unlimited unique addresses for every device.

Types:
  • Global unicast: internet-routable (2000::/3)
  • Link-local: for local network segment (fe80::/10)
  • ULA (Unique Local): private IPv4 equivalent (fc00::/7)
  • Multicast: for group addressing (ff00::/8)
  • Full format: all 8 groups of 4 hex digits
  • Compressed format: with :: for zero groups
🔌 MAC Addresses

Media Access Control addresses — unique 48-bit identifiers for network interfaces assigned by equipment manufacturers.

Types:
  • Unicast MAC: for individual device addressing
  • Multicast MAC: for group communication
  • OUI: first 3 bytes (Organizationally Unique Identifier)
  • Colon format: 00:1A:2B:3C:4D:5E
  • Hyphen format: 00-1A-2B-3C-4D-5E
  • Cisco format: 001A.2B3C.4D5E
Use Cases
🧪 Network Equipment Testing

Use generated addresses for configuring and testing routers, switches, firewalls and other network equipment.

Scenarios:
  • Configuring DHCP address pools on routers
  • Testing ACL (Access Control List) rules
  • Setting up VLAN and subnet segmentation
  • Checking MAC filtering on switches
  • Simulating large networks for stress testing
  • Configuring static routes and routing tables
⚙️ Network Automation & Scripting

Generate test data for automating network operations with Python, Ansible, Terraform and other DevOps tools.

Scenarios:
  • Python scripts for bulk device provisioning
  • Ansible playbooks with dynamic inventory
  • Terraform infrastructure as code with IP plans
  • Network monitoring systems (Zabbix, Nagios, PRTG)
  • IPAM (IP Address Management) system testing
  • CI/CD pipelines for network configuration
🔐 Cybersecurity & Penetration Testing

Use random addresses for security testing, anonymization and network vulnerability analysis.

Scenarios:
  • Nmap scanning with random source IPs
  • Wireshark packet analysis with fake MACs
  • IDS/IPS system testing with different addresses
  • Honeypot setup with decoy addresses
  • MAC spoofing for security research
  • Network forensics and incident response scenarios
📚 Education & Lab Exercises

Create training scenarios for networking students, CCNA/CCNP preparation and IT certification labs.

Scenarios:
  • Hands-on subnetting calculation exercises
  • GNS3 and Packet Tracer lab topologies
  • EVE-NG virtual network laboratories
  • Cisco CCNA certification practice
  • CompTIA Network+ exam preparation
  • Introductory network administration courses
Networking Concepts
📊 IPv4 Address Classes & Private Ranges
  • Class A (0.0.0.0 - 127.255.255.255): 16M hosts, for large corporations
  • Class B (128.0.0.0 - 191.255.255.255): 65K hosts, for mid-size organizations
  • Class C (192.0.0.0 - 223.255.255.255): 254 hosts, for small networks
  • Private range Class A: 10.0.0.0/8 (24-bit block)
  • Private range Class B: 172.16.0.0/12 (20-bit block)
  • Private range Class C: 192.168.0.0/16 (16-bit block)
🧮 CIDR Notation & Subnet Masks
  • /8 (255.0.0.0): 16,777,214 hosts — large ISP networks
  • /16 (255.255.0.0): 65,534 hosts — enterprise networks
  • /24 (255.255.255.0): 254 hosts — typical office subnet
  • /30 (255.255.255.252): 2 hosts — point-to-point links
  • /32 (255.255.255.255): 1 host — specific host route
  • Variable Length Subnet Masking (VLSM) for optimization
🔐 MAC Address Structure & OUI
  • OUI (3 bytes): equipment manufacturer identifier
  • NIC (3 bytes): unique device serial number
  • Unicast MAC: LSB of first byte = 0
  • Multicast MAC: LSB of first byte = 1
  • Locally administered: 2nd bit of first byte = 1
  • IEEE registration authority for OUI assignment
Frequently Asked Questions
How many addresses can I generate at once?

The generator allows creating from 5 to 100 addresses per request. For larger volumes, you can run the generator multiple times and combine the results.

Can I export the generated addresses?

Yes, you can export addresses in CSV format for Excel and databases, or JSON for use in scripts and automation tools. Individual address copying is also available.

Are the generated IP addresses valid?

Yes, all generated addresses comply with IPv4, IPv6 and MAC standards. Private IPs are generated in correct ranges (10.x.x.x, 172.16-31.x.x, 192.168.x.x).

What is the difference between public and private IPs?

Public IPs are routable on the global internet and unique worldwide. Private IPs are used only in local networks and are not internet-routable (behind NAT).

Can I use generated MACs to change my address?

Technically yes, but this may violate network policies and legislation. Use generated MAC addresses only for legitimate testing in your own lab environments.

What is IPv6 compressed format?

IPv6 allows omitting leading zeros and replacing consecutive groups of zeros with ::. For example, 2001:0db8:0000:0000:0000:0000:0000:0001 can be written as 2001:db8::1.

Random IP & MAC Address Generator — Essential Tool for Network Engineers

Free online random IPv4, IPv6 and MAC address generator for network equipment testing, automation scripting, cybersecurity penetration testing and educational labs. Generate public and private IP addresses in multiple MAC formats with CSV and JSON export for enterprise network configuration and DevOps automation workflows.

IPv4 Address Generator — Public and Private IPs for Network Testing

IPv4 addressing and the exhaustion challenge remain relevant in modern networks even with active IPv6 adoption. Our random IPv4 address generator creates valid addresses with correct octets (0-255) for different network classes and use cases. Private IPv4 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) are used in 99% of corporate networks for internal communication with NAT translation to public IPs for internet access. Studies show that proper IP address planning saves up to 40% of troubleshooting time in large enterprise networks.

DHCP configuration and IP pool management require test IP addresses to simulate different lease allocation and conflict detection scenarios. The private IPv4 generator creates realistic IP pools for configuring DHCP servers on Cisco, MikroTik, pfSense and other network devices. Network administrators use generated IP addresses for subnet planning, VLAN segmentation and IPAM system testing, ensuring a structured approach to enterprise network design that prevents costly IP conflicts.

IPv6 Address Generator — Preparing for the Future Internet

IPv6 adoption and dual-stack implementation are accelerating as IPv4 address space depletes and IoT device counts surge. Our random IPv6 generator creates 128-bit addresses in full (2001:0db8:85a3:0000:0000:8a2e:0370:7334) or compressed (2001:db8:85a3::8a2e:370:7334) format per RFC 5952. IPv6 provides 340 undecillion unique addresses, practically eliminating the need for NAT and enabling true end-to-end connectivity for every device on the network.

IPv6 subnetting and address planning differ radically from IPv4 due to the vast address space. The IPv6 generator helps network engineers practice with different address types: global unicast (2000::/3) for internet routing, link-local (fe80::/10) for local segment communication, and unique local addresses (fc00::/7) as a replacement for IPv4 private ranges. Dual-stack networks supporting both protocols simultaneously require careful planning for seamless coexistence and gradual migration.

MAC Address Generator — Layer 2 Network Testing

MAC address structure and OUI assignment define the uniqueness of every network interface card in Ethernet networks. Our random MAC address generator creates 48-bit addresses in multiple formats: colon notation (00:1A:2B:3C:4D:5E) standard for Linux/Unix, hyphen notation (00-1A-2B-3C-4D-5E) for Windows, and dot notation (001A.2B3C.4D5E) for Cisco devices. The first 3 bytes (OUI) identify the equipment manufacturer, which is critical for network discovery and inventory management.

MAC filtering and port security configuration on switches use MAC addresses for Layer 2 access control. The MAC address generator lets administrators simulate security scenarios including MAC spoofing attacks, dynamic MAC learning, sticky MAC addresses for port security, and MAC-based VLAN assignment. Testing with random MACs uncovers misconfigurations in switch port security policies and CAM table overflow vulnerabilities before production deployment.

Network Automation and Infrastructure as Code

Python networking scripts with Netmiko and Paramiko widely use generated IP addresses for bulk device provisioning and configuration management. Our generator exports addresses in JSON format for integration with Python scripts using libraries like netaddr and ipaddress for IP manipulation and subnet calculations. Ansible playbooks automate configuration of hundreds of routers and switches simultaneously using generated test data.

Terraform and cloud networking automation require IP planning for VPC (Virtual Private Cloud) creation in AWS, Azure and GCP. The private IP generator creates non-overlapping CIDR blocks for multi-region deployments and VPC peering scenarios, ensuring reproducible and version-controlled network infrastructure provisioning in cloud environments.

Cybersecurity and Penetration Testing

Nmap port scanning and network reconnaissance use source IP randomization to avoid IDS/IPS detection during security audits. The public IPv4 generator creates decoy IP addresses for Nmap's -D flag, masking the real scan source among multiple fake IPs. Ethical hackers and penetration testers use generated addresses for stress testing firewall rules, rate limiting policies and simulating distributed attack patterns for security posture assessment.

CCNA Certification and Networking Labs

Cisco CCNA and CCNP lab scenarios require extensive practice with IP addressing, subnetting and VLSM calculations. Our IP address generator creates realistic addressing schemes for GNS3, EVE-NG and Cisco Packet Tracer virtual lab topologies. Students use generated addresses for static routing configuration, OSPF/EIGRP dynamic routing, and NAT/PAT translation — all core CCNA exam topics. CompTIA Network+ preparation likewise benefits from varied subnetting exercises with fresh address schemes for each practice session.

Key benefits of the IP/MAC address generator:

Multiple types — IPv4, IPv6, MAC addresses in one tool
Flexible settings — public/private IP, multiple MAC formats
Bulk generation — up to 100 addresses per request
CSV/JSON export — ready data for scripts and IPAM
RFC-valid — all addresses meet internet standards
Instant speed — client-side generation, no server latency
Privacy — all processing in your browser, no data sent
Completely free — unlimited use without registration

Speed up network testing, automate provisioning workflows and sharpen your networking skills with our professional random IP and MAC address generator. The ideal tool for network engineers, system administrators, DevOps specialists, security professionals and networking students working with network infrastructure daily.

Related calculators

Disclaimer: all calculations on this site are approximate and provided for informational purposes. Results may differ from actual depending on individual conditions, technical specifications, region, legislative changes, etc.

Financial, medical, construction, utility, automotive, mathematical, educational and IT calculators are not professional advice and cannot be the sole basis for making important decisions. For accurate calculations and advice, we recommend consulting with specialized professionals.

The site administration bears no responsibility for possible errors or damages related to the use of calculation results.