Pcornel
Networking · Virtualization & Overlays › Server Virtualization

Containers (CCNA)

Cheat sheet · https://pcornel.dk/topic.php?topic=695

Back to the Topic

Answer

Containers share the host kernel and get network access through namespaces and virtual interfaces attached to a bridge, NAT or overlay network (for example Docker bridge or Kubernetes CNI).

Remember

  • Containers isolate applications while sharing the host OS kernel.
  • They are lighter and start faster than VMs.
  • Container networking uses bridges, overlays or the host network.

First checks

  • docker ps / crictl ps — running containers
  • ip link show type veth — container veth interfaces
  • Container network (bridge/overlay/CNI) — networking model

Commands

mount

Verify in this order

container namespace → veth → bridge/CNI → host → network

Where it usually breaks

underlay IP/transport → control/session registration → route/endpoint distribution → policy/segment → encapsulation/tunnel state → decapsulation/egress → return path

Containers · operational reference

LayerEvidence
Namespace/vethContainer attachment
Bridge/overlayVirtual forwarding
Host NAT/routeExternal exposure
Physical NICUnderlay path

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=695

Confirmation

Confirm action

Continue?