Virsh net-edit: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
=Overview= | =Overview= | ||
Used to edit the virtual | Used to edit the configuration of the specified [[KVM_Virtual_Networking_Concepts#Virtual_Network|virtual network]]. | ||
<network> | |||
<name>default</name> | |||
<uuid>49a07631-ea20-4741-89ea-b0faa7b42d19</uuid> | |||
<forward mode='nat'/> | |||
<bridge name='virbr0' stp='on' delay='0'/> | |||
<mac address='52:54:00:15:ef:87'/> | |||
<ip address='192.168.122.1' netmask='255.255.255.0'> | |||
<dhcp> | |||
<range start='192.168.122.2' end='192.168.122.254'/> | |||
</dhcp> | |||
</ip> | |||
</network> | |||
<pre> | <pre> |
Revision as of 02:02, 28 June 2017
Internal
Overview
Used to edit the configuration of the specified virtual network.
<network>
<name>default</name> <uuid>49a07631-ea20-4741-89ea-b0faa7b42d19</uuid> <forward mode='nat'/> <bridge name='virbr0' stp='on' delay='0'/> <mac address='52:54:00:15:ef:87'/> <ip address='192.168.122.1' netmask='255.255.255.0'> <dhcp> <range start='192.168.122.2' end='192.168.122.254'/> </dhcp> </ip>
</network>
virsh net-edit <virtual-network-name>
Configuration changes applied with virsh net-edit modify DNS and DHCP server's (dnsmasq) configuration file /var/lib/libvirt/dnsmasq/default.conf.