net-name
--network
network-UUID
Name | Required? | Description |
---|---|---|
--network network-UUID
|
required
|
The UUID of the virtual network you want the name for.
The word "--network" itself is optional.
|
virsh # net-name b7005dec-be1a-fe9a-338a-0cb1301dfcfd
virsh # net-name --network b7005dec-be1a-fe9a-338a-0cb1301dfcfd
virsh # net-name b7005dec-be1a-fe9a-338a-0cb1301dfcfd examplenetwork
virsh # net-dumpxml examplenetwork <network> <name>examplenetwork</name> <-- the name is here <uuid>b7005dec-be1a-fe9a-338a-0cb1301dfcfd</uuid> <-- the UUID is here <forward mode='route'/> <bridge name='virbr100' stp='on' delay='1' /> <ip address='10.10.120.1' netmask='255.255.255.0'> </ip> </network>