Use this topic when the symptom or planned change has been narrowed to KVM / QEMU → NAT Network. Establish effective host/runtime state before changing configuration.
NAT Network
Trace guest addressing and default gateway through the virtual network/bridge to host forwarding and NAT, then through host routing/firewall and the external return path.
VM → virbr0 → NAT → host uplink
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 path Verify boundary
Guest stack → vNIC → virtual bridge/network → host forwarding/NAT → host uplink → external network → return translation → guest
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.
ReferenceWhat it is1 section · depth on demand
libvirt default NAT network
The default network uses virbr0 (192.168.122.0/24), dnsmasq for DHCP/DNS and iptables/nftables NAT on the host. Checks:
virsh net-info default
virsh net-dhcp-leases default
sysctl net.ipv4.ip_forward
VMs can reach outside but are not reachable from the LAN without port forwarding; use a bridge for servers.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
In depth
libvirt's default NAT network (virbr0, 192.168.122.0/24) uses dnsmasq for DHCP/DNS and iptables/nftables masquerading.
virsh net-list --all
virsh net-dumpxml default
virsh net-dhcp-leases default
virsh net-edit default # change range, add static hosts
Port forwarding into NAT VMs needs host firewall DNAT rules or libvirt hooks. For servers, use bridged networks instead.
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 KVM / QEMU → NAT Network. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.qemu.org/docs/master/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
KVM / QEMU → NAT Network reference map
Fast operational boundaries and evidence limits for KVM / QEMU → NAT Network.
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Definition/config | Expected KVM / QEMU → NAT Network definition or configuration is present | Configured state does not prove runtime behavior |
| Runtime | Relevant KVM/QEMU/libvirt object or process is active without matching errors | Runtime state does not prove dependencies or guest outcome |
| Dependency | Host CPU/memory, storage, network or device backend required by this path is healthy | Local success does not prove the next boundary |
| Acceptance | Original guest/application test succeeds after the change or observation | Required for end-to-end closure |