Networking · Virtualization & Overlays › Server Virtualization
Containers (CCNA)
Cheat sheet · https://pcornel.dk/topic.php?topic=695
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 containersip 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
| Layer | Evidence |
|---|---|
| Namespace/veth | Container attachment |
| Bridge/overlay | Virtual forwarding |
| Host NAT/route | External exposure |
| Physical NIC | Underlay path |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=695