network

List virtual networks and run connectivity tests.

For layout 2.0 Virtual Switch verification, use network list together with the read-only hvmcli virtswitch list, show, and status commands described in virtswitch. VLAN IDs and MTU values are optional; an untagged traffic segment has no VLAN ID.

Commands

Command

Description

list

List configured libvirt networks

test

Run connectivity tests for gateways, DNS, and NTP

network list

List all configured virtual networks (libvirt networks) on the host.

sudo hvmcli network list
Name     State   Autostart  Persistent  Type   virtSwitch   Interface  Managed
-------  ------  ---------  ----------  -----  ----------   ---------  -------
default  active  yes        yes         other  -            -          no
vs0      active  yes        yes         bridge vs0          vs0-br     yes

network test

Run connectivity tests to verify gateway, DNS, and NTP reachability.

sudo hvmcli network test

Test specific targets:

sudo hvmcli network test --target 8.8.8.8 --target time.google.com

Options:

  • --target <host> — Specific host or IP to test connectivity to (can be specified multiple times)