Skip to navigationSkip to content
libvirtd docs
InteractiveCommands

Manual nav

Search `/` · tty `~` · g top · G bottom

Portal

  • Manual index
  • Interactive lab
  • Command explorer
Foundations5 sections
  • libvirtd Overview1
  • Host & Installation2
  • Architecture & Concepts6
  • Domains2
  • Domain XML2
Subsystems6 sections
  • Daemons3
  • virsh3
  • Virtual Networking5
  • Virtual Storage4
  • Virtualization Security3
  • Remote libvirt1
Operations5 sections
  • Migration2
  • Snapshots & Backup2
  • Performance3
  • Troubleshooting2
  • Reference2
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