Difference between revisions of "Virsh net-info"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
<code>
+
<pre>
[[virsh]] net-info default
+
virsh net-info default
 
Name:          default
 
Name:          default
 
UUID:          8e15ca1c-1904-34f1-96f6-896640500fd5
 
UUID:          8e15ca1c-1904-34f1-96f6-896640500fd5
Line 7: Line 7:
 
Autostart:      yes
 
Autostart:      yes
 
Bridge:        virbr0
 
Bridge:        virbr0
</code>
+
</pre>
  
  

Revision as of 11:02, 5 January 2020

virsh net-info default
Name:           default
UUID:           8e15ca1c-1904-34f1-96f6-896640500fd5
Active:         yes
Persistent:     yes
Autostart:      yes
Bridge:         virbr0


You can also see information in /etc/libvirt/qemu/networks/default.xml file

<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh net-edit default
or other application using the libvirt API.
-->

<network>
  <name>default</name>
  <uuid>8e15ca1c-1904-34f1-96f6-896640500fd5</uuid>
  <forward mode='nat'/>
  <bridge name='virbr0' stp='on' delay='0'/>
  <mac address='54:54:01:97:49:54'/>
  <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>


See also

Advertising: