net-undefine --network network-identifier
| Name | Required? | Description |
|---|---|---|
--network network-identifier
|
Required
|
The name or UUID of the virtual network to remove.
The word "
--network" itself is optional.
|
virsh #net-undefineexamplenetwork
examplenetwork".
virsh #net-undefine--networkexamplenetwork
virsh #net-undefineb7005dec-be1a-fe9a-338a-0cb1301dfcfd
b7005dec-be1a-fe9a-338a-0cb1301dfcfd".
virsh #net-undefine--networkb7005dec-be1a-fe9a-338a-0cb1301dfcfd
examplenetwork, already running on a virtualisation host server:
virsh # net-list
Name State Autostart
-----------------------------------------
default active yes
examplenetwork active yes
# net-destroy examplenetwork
Network examplenetwork destroyedvirsh #net-undefineexamplenetwork<-- this is net-undefine in actionNetwork examplenetwork has been undefined
virsh # net-list --all Name State Autostart ----------------------------------------- default active yes