Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Containers (CCNA)

Direct 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).

When to use this

Use it when container traffic fails and you need to trace namespaces, bridges or CNI networking.

First 30 seconds

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.

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Scope / prerequisiteUse it when container traffic fails and you need to trace namespaces, bridges or CNI networking.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification and output interpretation Verify boundary

Verify container namespace/interface/route, host bridge/overlay state, NAT or service mapping and host physical route. Correlate the exact namespace/host when addresses are reused across isolated networks. Correlate MAC/IP identities across layers.

Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • docker ps / crictl ps — running containers
  • ip 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)

NamespaceIsolates
pidProcess IDs: the container sees only its own processes
networkNetwork stack: interfaces, addresses, routes, firewall rules
mountMount table and filesystem view
ipcSystem V IPC and POSIX message queues
utsHostname and domain name
userUser and group ID mapping
cgroupView of the cgroup hierarchy
timeClocks

Cgroup resource controls (OCI runtime spec)

ControlLimits
memoryMemory limit, reservation, swap
cpuShares, quota/period, CPU sets
pidsMaximum number of tasks
devicesAllowed and denied devices

Container networking with Docker (Docker networking documentation)

DriverBehaviour
bridge (default)Containers on a host bridge; outbound access through masquerading
hostNo network isolation from the host
noneFully isolated
overlayConnects containers across several Docker hosts
macvlan / ipvlanContainers 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

ContainerVirtual machine
KernelShared with the hostIts own guest kernel
Start timeSeconds or lessTens of seconds or more
IsolationNamespaces and cgroupsHypervisor and virtual hardware
Typical image sizeMegabytesGigabytes

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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 networkBehaviour
bridge (default)Private subnet (172.17.0.0/16), NAT to host
hostShares host network stack
macvlan/ipvlanContainer gets its own L2/L3 presence on the LAN
overlayMulti-host (Swarm), VXLAN

Cisco IOS XE supports application hosting (IOx) containers on Catalyst 9000 switches, e.g. for ThousandEyes agents or custom monitoring tools.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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

A running container does not show its network namespace or published service is reachable; host connectivity does not show overlay or service-NAT state.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration intent

Document network mode, container/subnet addressing, bridge/overlay, published ports, host firewall/NAT and any orchestrator/service network. Avoid assuming a container IP is directly reachable from external networks.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Embedded reference data

Quick lookup tables

Containers · operational reference

Compact state/design/evidence reference for fast lookup.

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

Confirm action

Continue?