Use it when container traffic fails and you need to trace namespaces, bridges or CNI networking.
Containers (CCNA)
1. Containers share the host kernel; networking via bridges, overlays or CNI plugins.
2. Each container gets a namespace.
3. NAT or routed modes.
4. Network policies control traffic.
5. Troubleshoot from host namespaces.
container namespace → veth → bridge/CNI → host → network
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification and output interpretation Verify boundary
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
docker ps / crictl ps— running containersip link show type veth— container veth interfaces- Container network (bridge/overlay/CNI) — networking model
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
Containers: isolated processes sharing one kernel
A container is a group of processes isolated by the host kernel, not a virtual machine. The OCI runtime specification's Linux configuration lists the namespaces a container can get. For the network namespace it states that the container has its own network stack. Cgroups restrict resource use and control device access.
Linux namespaces (OCI runtime spec)
| Namespace | Isolates |
|---|---|
pid | Process IDs: the container sees only its own processes |
network | Network stack: interfaces, addresses, routes, firewall rules |
mount | Mount table and filesystem view |
ipc | System V IPC and POSIX message queues |
uts | Hostname and domain name |
user | User and group ID mapping |
cgroup | View of the cgroup hierarchy |
time | Clocks |
Cgroup resource controls (OCI runtime spec)
| Control | Limits |
|---|---|
memory | Memory limit, reservation, swap |
cpu | Shares, quota/period, CPU sets |
pids | Maximum number of tasks |
devices | Allowed and denied devices |
Container networking with Docker (Docker networking documentation)
| Driver | Behaviour |
|---|---|
| bridge (default) | Containers on a host bridge; outbound access through masquerading |
| host | No network isolation from the host |
| none | Fully isolated |
| overlay | Connects containers across several Docker hosts |
| macvlan / ipvlan | Containers appear directly on the physical network or VLANs |
Docker's documentation notes that on user-defined networks, containers resolve each other by name through an embedded DNS server at 127.0.0.11, while on the default bridge they only reach each other by IP. Published ports (-p) make a container port reachable from outside the host.
host$ docker network create --subnet 172.20.0.0/24 app-net
host$ docker run -d --name web --network app-net -p 8080:80 nginx
host$ docker exec web ip -br addr
lo UNKNOWN 127.0.0.1/8
eth0@if23 UP 172.20.0.2/24
host$ sudo iptables -t nat -S DOCKER | grep 8080
-A DOCKER ! -i br-3f1c2d4e5a6b -p tcp -m tcp --dport 8080 -j DNAT --to-destination 172.20.0.2:80
Containers versus VMs
| Container | Virtual machine | |
|---|---|---|
| Kernel | Shared with the host | Its own guest kernel |
| Start time | Seconds or less | Tens of seconds or more |
| Isolation | Namespaces and cgroups | Hypervisor and virtual hardware |
| Typical image size | Megabytes | Gigabytes |
For network engineers
Container platforms create many short-lived addresses behind NAT or overlays. Kubernetes adds its own layer (CNI plugins, services, network policies), so traffic between containers often never appears on the physical network as the original addresses.
Documented example, not captured output.
Quick reference
Containers package an application with everything it needs but share the host's operating system kernel instead of running a full OS each. They start almost instantly and use far fewer resources than VMs, which makes them the standard unit for modern applications. Their networking is usually private and translated by default, so understanding the available network modes is essential when a container must be reachable from the network or appear on a VLAN.
Containers share the host kernel and isolate processes with namespaces and cgroups; they start in milliseconds and package an application with its dependencies.
| Docker network | Behaviour |
|---|---|
| bridge (default) | Private subnet (172.17.0.0/16), NAT to host |
| host | Shares host network stack |
| macvlan/ipvlan | Container gets its own L2/L3 presence on the LAN |
| overlay | Multi-host (Swarm), VXLAN |
Cisco IOS XE supports application hosting (IOx) containers on Catalyst 9000 switches, e.g. for ThousandEyes agents or custom monitoring tools.
Architecture/protocol mechanics and state model
Container networking commonly uses network namespaces, virtual Ethernet pairs, bridges or overlays plus host routing/NAT. Container IP and service exposure can therefore be several translation/encapsulation steps away from the physical NIC.
Limits and common misconceptions
ReferenceConfiguration & state1 section · depth on demand
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtualization & Overlays → Server Virtualization → Containers. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Quick lookup tables
Containers · operational reference
Compact state/design/evidence reference for fast lookup.
| Layer | Evidence |
|---|---|
| Namespace/veth | Container attachment |
| Bridge/overlay | Virtual forwarding |
| Host NAT/route | External exposure |
| Physical NIC | Underlay path |