CIRCUITO
CARIOCA TI · DOCUMENTATION
♙
NETWORKS · ENDERECAMENTO · FUNDAMENTAL

Subnetting, CIDR and VLSM

IPv4 prefix calculation, VLSM, summarization and address-plan design.

01 · OVERVIEW

What this topic solves

IPv4 prefix calculation, VLSM, summarization and address-plan design.

Core concepts: subnetting, cidr, vlsm, mascara, prefixo, sumarizacao, ccna, mtcna.
02 · MENTAL MODEL

Follow state and packet path

Validate prefix, scope, gateway, neighbor resolution, MTU and longest-prefix match. Correct addressing without a return path is still a failure.

Input → classification/state → decision → table → next-hop/output → counters
03 · DESIGN

Design before configuration

  • Define the failure domain and expected convergence behavior.
  • Document addressing, identifiers, timers, MTU and policy boundaries.
  • Prefer explicit, observable state over assumptions.
  • Plan rollback and out-of-band access before risky changes.
Operational examples

Commands and verification

Command syntax varies by platform and software release. The examples below come from the existing portal content and must be validated against the target platform documentation before production use.

Exemplo: 192.0.2.173/27

/27 = 255.255.255.224
Tamanho do bloco no último octeto = 256 - 224 = 32

Blocos:
0, 32, 64, 96, 128, 160, 192, 224

173 pertence ao bloco 160–191

Rede:       192.0.2.160/27
Primeiro:   192.0.2.161
Último:     192.0.2.190
Broadcast:  192.0.2.191

173 = 10101101
/27 → 3 bits de host no último octeto

IP:       10101|101
Máscara:  11111|000
Rede:     10101|000 = 160
Broadcast:10101|111 = 191
04 · TROUBLESHOOTING

Evidence-driven workflow

  1. Define source, destination, time window and exact symptom.
  2. Establish the expected healthy state and compare it with the observed state.
  3. Inspect counters, tables, logs and packet captures before resets.
  4. Test one hypothesis at a time and prefer reversible changes.
  5. Repeat the original test after correction and check side effects.
05 · STANDARDS

Standards and RFCs applicable to the technology

Use the current standard/RFC and the documentation for the exact software release being operated. Vendor syntax is an implementation detail; protocol behavior should be understood independently.

06 · LAB

Prove the behavior in a controlled topology

Build the smallest topology that reproduces the mechanism, capture control and data traffic, introduce one deliberate failure and diagnose it before applying the fix.

07 · CONTINUE

Related network topics