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

guidenetworkingReviewed March 21, 2026

virsh network commands

These are the virsh net commands that usually matter first when guests lose connectivity or a lab network does not come online. net list Use net list to confirm whether the network exists, whether it is active, and wheth

virshnet-listnet-startnet-dumpxml

These are the virsh net-* commands that usually matter first when guests lose connectivity or a lab network does not come online.

net-list

BASH
virsh net-list --all

Use net-list to confirm whether the network exists, whether it is active, and whether autostart is configured.

net-start

BASH
virsh net-start isolated-lab

Use net-start when the XML definition already exists and you only need to bring the virtual network online.

net-autostart

BASH
virsh net-autostart isolated-lab

Autostart is the persistence knob. Set it when the network must survive host reboots.

net-dumpxml

BASH
virsh net-dumpxml default

Use net-dumpxml when you need the exact bridge name, forwarding mode, DHCP range, or DNS settings that the host is enforcing.

net-dhcp-leases

BASH
virsh net-dhcp-leases default

This is the quickest confirmation that the NAT-backed network handed a guest an address.

Related

  • Libvirt network modes
  • Network debugging for guests
  • Files, sockets, and service units

On this page

  • net-list
  • net-start
  • net-autostart
  • net-dumpxml
  • net-dhcp-leases