Skip to navigationSkip to content
libvirtd docs
Commands

Manual nav

Search `/` or jump with `g` / `G`.

Portal

  • Home manual
  • Command explorer
Foundations6 sections
  • Overview1
  • Installation2
  • Platform1
  • Concepts5
  • Domains2
  • Domain XML2
Subsystems9 sections
  • Identity1
  • Automation2
  • Daemons3
  • virsh3
  • Networking5
  • Storage4
  • Security3
  • Observability2
  • Remote Access1
Operations6 sections
  • Migration2
  • Backup2
  • Performance3
  • Recovery1
  • Troubleshooting2
  • References2

/ search · g top · G quickstart

mannetworkingReviewed July 15, 2026

DHCP, DNS, and libvirt virtual networks

Managed libvirt networks can provide bridge creation, DHCP, DNS, NAT, and firewall integration. Libvirt launches scoped dnsmasq instances from network XML. Inspect the network service Persistent reservation Use a stable

dnsmasqdhcpdnsleases

Managed libvirt networks can provide bridge creation, DHCP, DNS, NAT, and firewall integration. Libvirt launches scoped dnsmasq instances from network XML.

Inspect the network service

BASH
virsh net-list --all
virsh net-info default
virsh net-dumpxml default
virsh net-dhcp-leases default
ps -ef | grep '[d]nsmasq.*libvirt'

Persistent reservation

Use a stable guest MAC and a <host> entry in the network DHCP range. Apply changes with virsh net-update when supported, or redefine and restart in a controlled window.

Failure isolation

BASH
ip address show virbr0
ss -lunp | grep -E ':53|:67'
journalctl -u virtnetworkd -u libvirtd --since -30m
nft list ruleset

Differentiate a missing lease, DNS failure, bridge failure, forwarding policy, and guest firewall. They produce similar symptoms from inside the VM but require different repairs.

Related

  • Bridge design and host uplinks
  • Libvirt network modes
  • Files, sockets, and service units

On this page

  • Inspect the network service
  • Persistent reservation
  • Failure isolation