{% extends "network/base.html" %} {% block title %}Subnet Calculator — Network Design Canvas{% endblock %} {% block head %} {% endblock %} {% block content %}

Subnet Calculator

Compute IPv4/IPv6 subnet details and save to project history. One CIDR per project — duplicates update in place.

🖧

Calculate

Network Address
Broadcast Address
First Usable Host
Last Usable Host
Total Addresses
Usable Hosts
Subnet Mask
Wildcard Mask
Prefix Length
IP Class
CIDR (Canonical)
Binary (Network / Mask)
Enter a CIDR block and press Calculate.
IPv4: 10.1.2.0/24  ·  IPv6: 2001:db8::/48  ·  Link-local: fe80::/64
📋

History

({{ history|length }})
Filter:
{% if history %} {% if not filter_project %}{% endif %} {% for h in history %} {% if not filter_project %} {% endif %} {% endfor %}
CIDR Network Hosts Mask ClassProjectActions
{{ h.cidr }} {{ h.network_addr }} {%- if h.address_family == 'ipv6' -%} {%- elif h.usable_hosts -%} {{ "{:,}".format(h.usable_hosts) }} {%- else -%} 0 {%- endif -%} {{ h.subnet_mask }} {% if h.address_family == 'ipv6' %} v6 {% elif h.ip_class and h.ip_class != 'N/A' %} {{ h.ip_class }} {% else %}{% endif %} {{ h.get('project_name','—') }}
{% else %}
No saved calculations yet.
Calculate a subnet and click Save to History.
{% endif %}

📁 New Project

{% endblock %} {% block scripts %} {% endblock %}