NETCALC PRO
v2.2 · Network Toolkit
System Online
Subnet Calculator
Calculate network/broadcast/host range from an IPv4 address and CIDR.
Tip: 192.168.1.0/24 format is auto-parsed when pasted.
Reference
Given an IPv4 address and CIDR prefix, calculates subnet boundaries: network address, broadcast, first/last host, and total address count. /31 is treated specially per RFC 3021 for point-to-point links (2 usable addresses), and /32 as a host route. Network bits highlighted in blue, host bits in orange.
VLSM — Variable Length Subnet Masking
Divide a parent network into subnets sized to varying host requirements.
Subnet Name
Hosts Required
Reference
VLSM (Variable Length Subnet Masking) divides a parent network into variable-sized subnets according to host requirements. Algorithm: requirements are sorted from largest to smallest; for each one the smallest prefix satisfying 2^(32-cidr) − 2 ≥ hosts is selected and placed on a block boundary, contiguously.
Supernet / Route Summarization
Find the smallest summary route covering multiple networks.
Format: 10.1.0.0/16 — one network per line.
Reference
Route summarization (supernetting) represents multiple contiguous networks with a single summarized route. Reduces routing table size and update traffic. Algorithm: identifies the common high-order bits across all start and end addresses to compute the smallest covering prefix. CIDR (RFC 4632) is the foundation of classless addressing.
Subnet Splitter
Split a parent network into equal-sized subnets.
e.g. split /24 into /26 → 4 subnets.
Reference
Splits a parent network into equal-sized subnets. Splitting /24 → /26 produces 4 subnets (2^(26−24) = 4). FLSM (Fixed Length Subnet Masking) approach — all subnets share the same mask; simple but can waste addresses compared to VLSM.
Wildcard Mask Calculator
Inverse mask for Cisco ACL and OSPF/EIGRP network statements.
Reference
A wildcard mask is the bitwise inverse of a subnet mask (~mask). Used in Cisco ACLs and OSPF/EIGRP network statements: a 0 bit means "this position must match exactly", a 1 bit means "this position is don't-care". For a single host use host X.X.X.X or X.X.X.X 0.0.0.0.
IPv6 Calculator
Network, prefix and type analysis on a 128-bit address.
Applies RFC 5952 compression. ::, fe80::/10, 2001:db8::/32 recognized.
Reference
IPv6 addresses are 128 bits long and normalized per RFC 5952 compression rules (longest run of zero groups replaced with ::, leading zeros dropped within groups). Type detection: GUA (2000::/3), ULA (fc00::/7), link-local (fe80::/10), multicast (ff00::/8), documentation (2001:db8::/32). IPv6 has no broadcast — multicast and anycast are used instead.
DHCP Option 43 Generator
Generate hex string sent to APs for WLC discovery. Cisco WLC and Ruckus supported.
Add 2-3 WLCs for high availability. Maximum 16 IPs.
Reference
DHCP Option 43 (RFC 2132 — Vendor-Specific Information) is used by APs to discover a WLC on a different subnet. Format: TLV (Type-Length-Value). For Cisco type=0xf1, for Ruckus ZD 0x06, for Ruckus SmartZone 0x03. length = number of WLC IPs × 4 (each IPv4 = 4 bytes). Multiple controller IPs can be added for HA.
Subnet Overlap Detector
Enter multiple CIDRs to detect overlapping/containing networks. Critical for ACL and routing planning.
CIDR notation required. Compares every network pair.
Reference
Detects overlap between two subnets via integer range comparison: if A_start ≤ B_end and B_start ≤ A_end, they overlap. Relationship types: identical (same range), contains (one wholly contains the other), partial (rare for valid CIDRs — usually shows as containment). Critical for production planning and summary route safety.
Number Base Converter
Convert between Decimal, Hex, Binary, Octal. For network engineering: MAC addresses, hex values, ACL bit calculations.
Reference
Common conversions in networking: subnet mask binary analysis, MAC addresses (hex), ACL bit math, OSPF/BGP timers (decimal). Hex prefix 0x, binary 0b, octal 0o are accepted but optional. Uses BigInt, so there is no 32-bit limit — even 128-bit IPv6 values can be converted.
OSPF Cost Calculator
Reference bandwidth / interface bandwidth — OSPF cost calculation.
Reference
OSPF Cost = Reference BW / Interface BW. Minimum cost is 1. Cisco default reference is 100 Mbps — too low for modern links (1G and 10G both yield cost=1). For larger networks, raise it to 100 Gbps with auto-cost reference-bandwidth 100000. Manual override: ip ospf cost <1-65535>.
EIGRP Metric Calculator
Composite metric: bandwidth + delay + (load + reliability + MTU). With K-values.
Reference
Classic EIGRP metric: (K1 × BW + K2×BW/(256-load) + K3×Delay) × (K5/(Reliability+K4)) × 256. BW = 10^7 / min_bw_kbps, Delay = sum_delay_μs / 10. Default K-values: K1=1, K3=1, others 0 — only BW and Delay are effective. When K4/K5=0 the reliability factor is not applied. On Cisco IOS the metric is shown by show ip eigrp topology.
IP Range ↔ CIDR Converter
Convert IP range to minimum CIDR blocks or vice versa. For firewall ACL planning.
Reference
An arbitrary IP range (S - E) generally does not fit a single CIDR; it must be split into multiple blocks. Algorithm: at each step, starting from the current S, pick the largest valid block size (bounded by S's alignment and the distance to E), then advance S += block_size. Critical for minimizing entries in firewall rules, route filters and ACLs.
Ping Sweep List Generator
Generate all host IPs from CIDR as a script-friendly list. For nmap, fping, bash for-loops.
Maximum 4096 IPs. Larger subnets are rejected (split your script).
Reference
Network and broadcast addresses are excluded (only usable hosts are listed). /31 and /32 are handled specially. Bash example: for ip in $(...); do ping -c1 -W1 $ip; done. With nmap a CIDR can be passed directly (nmap 192.168.1.0/24); this tool is for cases when an explicit per-target list is required.
Reverse DNS / PTR Generator
From IP to in-addr.arpa (IPv4) or ip6.arpa (IPv6) PTR name.
IPv4 and IPv6 supported. For bulk: /24 CIDR also accepted (max 256 IPs).
Reference
Reverse DNS (PTR) resolves an IP back to a hostname. IPv4: octets are reversed and .in-addr.arpa is appended — 192.168.1.1010.1.168.192.in-addr.arpa. IPv6: each hex nibble in reverse order, separated by dots, with .ip6.arpa appended. Used to define reverse zones in DNS server configuration. SMTP servers commonly require a valid PTR record for mail acceptance.
References & Cheatsheet
Quick reference for network engineering concepts. Use while studying CCNA/CCNP.

IPv4 Fundamentals

RFC 791 IPv4 Address Structure
32-bit address, 4 octets × 8 bits. X.X.X.X dotted decimal notation. Address space ~4.3 billion (2³²). Network and Host portions separated by the subnet mask.
RFC 1918 Private Address Ranges
10.0.0.0/8 · 172.16.0.0/12 · 192.168.0.0/16. Not routable on the public Internet; used behind NAT.
RFC 6598 CGNAT (Carrier-Grade NAT)
100.64.0.0/10 — shared address space allocated by ISPs to subscribers behind NAT. Kept distinct from RFC 1918 to avoid customer-side conflicts.
RFC 3927 Link-local (APIPA)
169.254.0.0/16 — auto-assigned when DHCP fails. Valid only within the same broadcast domain.
RFC 3021 /31 Point-to-Point
In normal subnets the network and broadcast addresses are reserved, but on a /31 both addresses are usable hosts. Saves addresses on router-to-router links.
CIDR Classless Inter-Domain Routing
Replaces fixed Class A/B/C boundaries with arbitrary prefix lengths. Anywhere from 10.0.0.0/8 down to 192.168.1.0/30. Enables VLSM and route summarization.

Subnetting Techniques

VLSM Variable Length Subnet Masking
Different-sized subnets within the same parent network. Prefix length varies by host requirement; uses address space efficiently. Modern routing protocols (OSPF, EIGRP, IS-IS, BGP) all support it.
FLSM Fixed Length Subnet Masking
All subnets are the same size. Simple to compute but wastes addresses. The Split Subnet tool implements this approach.
Summary Route Summarization
Represent contiguous networks as a single summary route. Reduces routing-table size and protocol churn. In EIGRP ip summary-address, in OSPF area range, in BGP aggregate-address.
Mask Subnet vs Wildcard Mask
Subnet mask: 1=network bit, 0=host bit. Wildcard mask: the inverse — used in ACLs and OSPF. /24255.255.255.0 mask → 0.0.0.255 wildcard.

IPv6 Essentials

RFC 4291 IPv6 Addressing Architecture
128 bits, 8 groups × 16 bits, hexadecimal notation. Standard prefix lengths: /48 (site), /64 (subnet), /128 (host). No broadcast — multicast & anycast instead.
RFC 5952 Canonical Text Representation
Compression rules: longest run of zero groups becomes ::, leading zeros within groups dropped, lowercase hex preferred. 2001:0db8:0000:0000:0000:0000:0000:00012001:db8::1.
Scope IPv6 Address Scopes
GUA 2000::/3 · ULA fc00::/7 · Link-local fe80::/10 · Multicast ff00::/8 · Doc 2001:db8::/32.

Wireless & DHCP

RFC 2132 DHCP Vendor-Specific Options
Option 43 carries vendor-specific information. For APs it carries WLC IPs as a TLV blob. Often used together with Option 60 (Vendor Class Identifier) so the DHCP server can recognize the device and send the correct Option 43.
Cisco WLC Discovery Methods
An AP looks for its WLC in this order: 1) static config, 2) DHCP Option 43, 3) DNS (CISCO-CAPWAP-CONTROLLER.<domain>), 4) broadcast. Option 43 is the most common method, especially across subnets.
CAPWAP AP-WLC Protocol
Control And Provisioning of Wireless Access Points. UDP 5246 (control) + 5247 (data). Successor to LWAPP. AP join lifecycle: discovery → join → config → run state.

Routing Protocols (CCNA/CCNP)

RFC 2328 OSPFv2
Link-state protocol using Dijkstra SPF. Hierarchical area design. The network statement uses a wildcard mask. Backbone area 0 is mandatory.
RFC 7868 EIGRP
Enhanced IGRP — Cisco's advanced distance-vector protocol with the DUAL algorithm. Composite metric (bandwidth + delay), with feasible successors enabling fast convergence. The network statement uses a wildcard mask.
RFC 4271 BGP-4
Path-vector, AS-level routing — the backbone of the Internet. TCP 179, manual peering. Route summarization via aggregate-address.

CIDR Quick Reference

CIDRMaskWildcardTotalHostsClass
/8255.0.0.00.255.255.25516,777,21616,777,214A
/16255.255.0.00.0.255.25565,53665,534B
/20255.255.240.00.0.15.2554,0964,094
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254C
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342P2P
/31255.255.255.2540.0.0.122*P2P
/32255.255.255.2550.0.0.011Host
* RFC 3021: on a /31 P2P link both addresses are usable as hosts.