Network Notes

CEF — FIB, Adjacency & Why Process Switching Died

CEF is the default forwarding engine: no per-packet CPU work. Two precomputed structures: FIB —

Ansible — Agentless Network Automation

Agentless automation over SSH: a control node connects to managed nodes, runs YAML playbooks, and

Ping & Traceroute as Diagnostic Patterns

ping + traceroute answer “which layer is broken?” — read the patterns, don’t guess: Symptom

Fabric, SD-Access, LISP & SD-WAN

Fabric thinking: a big L2-ish reach (VXLAN overlay) over a simple routed underlay, with identity

SDN — Centralised Control Plane

SDN is an architecture, not a protocol: separate control plane from data plane, put the

IP SLA & Object Tracking — Failover on Health

Routing protocols see up/down and adjacencies — never latency, jitter, loss or a dead application.

Network Telemetry — Push-Based Monitoring

SNMP asks repeatedly and learns late. Telemetry inverts it: the device pushes state streams on

NetFlow & Flexible NetFlow

Interface counters say how much; NetFlow says who talks to whom, how, when. Flows are

SPAN, RSPAN & ERSPAN

Switches don’t let you sniff other people’s traffic — SPAN copies frames from source ports/VLANs

Syslog — Facilities, Severity & Timestamps

Every event is classified facility (which subsystem) + severity 0–7 (emergency → debug; “0 is

SNMP — Polls, Traps & v3 Security Model

Manager ↔ agent over UDP: queries on 161, traps/informs on 162. Devices expose a MIB

DAI & IP Source Guard — the Binding-Table Duo

Dynamic ARP Inspection validates every ARP packet on untrusted ports against the DHCP snooping binding

DHCP Snooping — Rogue Servers & the Binding Table

The switch becomes an active DHCP referee: untrusted ports (all by default) may send Discover/Request;

Port Security — Sticky MACs & Violation Modes

Per access port: learn/limit MACs, act on violations. Default violation mode is shutdown (err-disable); protect

ACL Design & Troubleshooting — Placement, Order, Counters

Design law: extended near the source, standard near the destination — stop unwanted traffic before

Routing Protocol Authentication & Passive Interfaces

If routing updates are unauthenticated, anyone on-path can inject a better route. Per-interface (IGP) or

CoPP — Protecting the CPU That Protects Everything

Packets destined to the router (OSPF, BGP, SSH, SNMP, ARP, ICMP-to-interface) get punted to the

TACACS+ — Encrypted, Separated AAA for Device Admin

Cisco’s device-administration AAA protocol: TCP 49, entire payload encrypted, and the three A’s are separate

RADIUS — UDP AAA for Access & Accounting

Centralised AAA over UDP: authentication 1812, accounting 1813 (legacy 1645/1646). Only the password field is

Local AAA — Users, Method Lists & Lockout Traps

AAA = who are you (Authentication), what may you do (Authorization), what did you do

Cloud Service & Deployment Models — IaaS, PaaS, SaaS

The service models are just a sliding scale of who patches what: Model Provider runs

Overlay VPNs — DMVPN & FlexVPN

Three generations of Cisco multipoint VPN, all built from the same bricks (mGRE + IPsec

IPsec — ESP, IKE & Tunnel Mode

Layer 3 crypto suite: ESP (protocol 50) encrypts+authenticates — AH (51, auth only) is legacy;

VPN Types — Site-to-Site, Remote Access, GRE, NAT-T

Site-to-site: router↔router, permanent tunnel between offices. Remote access: client↔gateway, often SSL/TLS. GRE over IPsec when

WAN Technologies — From Leased Lines to SD-WAN

Topologies: point-to-point (simple, costly), hub-and-spoke (cheap, hub = SPOF), full/partial mesh. Legacy still in syllabus

MPLS — Labels, LDP & Layer 3 VPN

MPLS sits between L2 and L3 (“2.5”): forward by label, not longest-prefix. Ingress PE pushes,

NAT in Four Flavours — Static, Dynamic, PAT

NAT translates between inside-local (private), inside-global (public), outside-local and outside-global. Four flavours: Type Mapping Inbound

QoS — EF, LLQ & the Trust Boundary

Best-effort default means voice competes with backups. QoS is the pipeline: classify → mark →

ICMP — The Error Messages That Explain the Network

ICMP is Layer 3 error and diagnostic messaging — not TCP/UDP, and not a transport

DNS — Hierarchy, Records & TTL

Name → IP via a hierarchical distributed database. Client asks recursively; the resolver iterates: root

NTP — Strata, Peers & Authentication

UDP 123, hierarchical strata (0 = reference clock, 1 = attached server, … max 15).

SLAAC vs DHCPv6

SLAAC Stateless DHCPv6 Stateful DHCPv6 Address from client itself client (RA prefix) server DNS no

DHCP — DORA, Relay & Options

UDP 67 (server) / 68 (client). IPv4 clients start with a broadcast DORA: Discover →

ARP — Requests, Caches & Gratuitous

ARP maps IPv4 → MAC inside one broadcast domain: request is a broadcast “who has

Prefix-Lists & the Route Filtering Stack

Route filtering needs to match both address and mask length — ACLs don’t. Prefix-lists do:

Summarization vs Aggregation (Null0)

Collapsing many specific routes into one supernet. Same math, two exam words: summarization inside an

Route Redistribution — And Its Loop Traps

Redistribution feeds routes learned by one protocol into another at a router running both. Two

Inter-VLAN Routing — SVI & Router-on-a-Stick

Two ways to route between VLANs. SVI on a Layer 3 switch ip routing interface

VRRP & GLBP

VRRP — the open one RFC 5798, IP protocol 112, multicast 224.0.0.18, virtual MAC 0000.5e00.01XX,

HSRP Deep Dive

Cisco’s classic FHRP: one virtual IP + virtual MAC 0000.0c07.acXX, one Active + one Standby

FHRP Compared — HSRP vs VRRP vs GLBP

First-Hop Redundancy Protocols hand hosts one virtual gateway (VIP + virtual MAC) backed by several

VRF — Several Routers in One

VRF gives one router multiple independent routing contexts — separate RIB, separate CEF table, separate

Advanced BGP — Route Reflectors, Protection, Policy

Advanced BGP is three things: scale, protect, control. Scaling iBGP — Route Reflectors iBGP split

BGP Basics — Attributes & Aggregation

Path-vector protocol between autonomous systems, over TCP 179, AD 20 (eBGP) / 200 (iBGP). No

EIGRP & DUAL — The Feasibility Condition

Advanced distance vector with DUAL: per-destination, loop-free by math, near-instant failover when a backup already

OSPF Area Types & Where Filtering Works

Area types control which LSAs are allowed, to shrink tables and speed convergence. All routers

OSPF Core — LSAs, Timers, Router ID

Link-state IGP, metric = cost, Dijkstra (SPF), protocol 89, AD 110, multicast 224.0.0.5 / 224.0.0.6

Static Routes — Default, Floating, Recursive

Manual routes with ip route <net> <mask> <next-hop|interface> — four flavours worth knowing: Default route

Best Path Selection: LPM, AD, Metric, ECMP

How a Cisco router picks one best path — one fixed chain: Longest Prefix Match

STP Design & Topology Choices

STP design is control: who is root and where traffic flows. Choice Why Explicit root

STP Troubleshooting

Most STP problems reduce to missing BPDUs or bad links. Symptom Likely cause / tool

UDLD — Unidirectional Link Detection

UDLD detects unidirectional links — classic on fiber where TX works, RX is dead: the

Loop Guard

Loop Guard handles the subtle failure: a blocked port stops receiving BPDUs (upstream STP process

Root Guard

Root Guard blocks a port from ever becoming the root port: if a superior BPDU

BPDU Filter — the Dangerous One

BPDU Filter hides STP on a port — it solves no loop problem and can

BPDU Guard

BPDU Guard: receive a BPDU on a (Port)Fast port → error-disable it. “No switches here.”

PortFast

PortFast skips Listening+Learning: the port goes straight to forwarding — for access ports facing end

IGMP Snooping & the Querier Trap

IGMP Snooping is a Layer 2 feature: the switch listens to IGMP Join/Leave traffic and

Layer 2 Multicast

Switches only know MACs, never IPs — so multicast frames without help flood like broadcast.

How a Switch Learns (CAM Table)

A switch builds its MAC (CAM) table by learning the source MAC of every incoming

802.1Q Trunking

802.1Q trunks carry multiple VLANs on one link by tagging each frame (12-bit VID); frames

VLANs & the VLAN 1 Problem

A VLAN is a separate Layer 2 broadcast domain on shared switches. Hosts in the

BPDUs Deep Dive

The BPDU is STP’s control packet: root election, path cost and port roles all flow

STP Flavors Compared (802.1D to MST)

Six flavours, three axes: standard vs Cisco, one instance vs per-VLAN, slow vs rapid. Flavour

Spanning Tree — Root Election & Config

STP prevents Layer 2 loops (broadcast storms, MAC flapping) by electing one active path and

EtherChannel & LACP

EtherChannel bundles multiple physical links into one logical Port-Channel: more bandwidth, redundancy — and one

IPv6 Address Formats — Cheat Sheet

Address formats at a glance Type Prefix Scope Use Global Unicast 2000::/3 Global The routable

What is IPv6?

IPv6 is the next generation of IP, designed to replace IPv4 because IPv4 ran out

VLSM — Variable Length Subnet Masking

VLSM makes it possible to use different subnet masks within the same network so IP

Special IPv4 Addresses

Network & broadcast address Network address: all host bits = 0 Broadcast address: all host

Private vs Public IP Addresses

IPv4 addressing gives every device a unique 32-bit address so packets can be identified and

The TCP/IP Model (Cisco 5-Layer)

The Cisco TCP/IP model has 5 layers, where Network Access is split into Data Link

The OSI Model — Layers, Scopes, Protocols

The OSI model – functions, scope and examples Layer Name Primary function Communication scope Typical

The Ethernet II Frame

The Ethernet II frame consists of seven fields: Preamble Start Frame Delimiter Destination MAC Source

The IPv6 Header

The IPv6 header is a fixed 40-byte Layer 3 header designed for faster routing, better

The IPv4 Header

The IPv4 header is a variable Layer 3 header (RFC 791, 20–60 bytes) containing everything

Encapsulation & Decapsulation

Encapsulation is the process where data is wrapped layer by layer with headers (and sometimes

Collision vs Broadcast Domains

Collision domain: where frames can collide (only relevant for half-duplex). Broadcast domain: where broadcasts (ff:ff:ff:ff:ff:ff)

Locking the cluster behind the jump: ufw without the foot-gun

The admin path is one jump host; this is the firewall layer that makes that

One door in: a jump host for my k3s cluster

Every laptop that holds cluster credentials is a door left unlocked. After a podman toolbox

My .vimrc for Kubernetes YAML (2 spaces and a whitespace alarm)

The other half of my container setup is the .vimrc. Two spaces is the standard

Stop typing kubectl – bash alias and completion

I use my k8s-admin container (ubuntu with kubectl, flux, helm and kustomize) for all kubernetes

Lorem ipsum dolor sit amet, consectet adipiscing elit,sed do eiusm por incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea sint occaecat cupidatat non proident, sunt in culpa qui officia mollit natoque consequat massa quis.

Donec pede justo, fringilla vitae, eleifend acer sem neque sed Lorem Lorem ipsum dolor sit amet, consectet adipiscing elit,sed do eiusm por incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ipsum. Nam quam nunc, blandit vel, ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium consectetuer luculvinar, ids lorem. Maecenas nec odio et ante tincidunt tempus.

Lorem ipsum dolor sit amet, consectet adipiscing elit,sed do eiusm por incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea sint occaecat cupidatat non proident, sunt in culpa qui officia mollit natoque consequat massa quis enim.

Give options to click

Option 1
Option 2
Option 3