net-edit
--network
network-identifier
Name | Required? | Description |
---|---|---|
--network network-identifier
|
required
|
The name or UUID of the virtual network whose XML configuration is to be edited.
The word "--network" itself is optional.
|
virsh # net-edit mynetwork
virsh # net-edit --network mynetwork
virsh # net-edit bfbc4c69-7d6a-cc9a-904c-09910ce179c0
virsh # net-edit --network bfbc4c69-7d6a-cc9a-904c-09910ce179c0
virsh # net-list --all Name State Autostart ----------------------------------------- default active yes examplenetwork active no
virsh # net-dumpxml examplenetwork <network> <name>examplenetwork</name> <uuid>b7005dec-be1a-fe9a-338a-0cb1301dfcfd</uuid> <forward mode='route'/> <bridge name='virbr100' stp='on' delay='0' /> <ip address='10.10.120.1' netmask='255.255.255.0'> </ip> </network>
virsh # net-edit examplenetwork
<network> <name>examplenetwork</name> <uuid>b7005dec-be1a-fe9a-338a-0cb1301dfcfd</uuid> <forward mode='route'/> <bridge name='virbr100' stp='on' delay='30' /> <-- changed to 30 here <ip address='10.10.120.1' netmask='255.255.255.0'> </ip> </network> ~ ~ ~ ~ ~ ~ "/tmp/virsht2UZ6L" 8L, 238C
Network examplenetwork XML configuration edited.