Difference between revisions of "Virsh net-info"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<pre>
+
[[virsh]] net-info
virsh net-info default
+
error: command 'net-info' requires <network> option
Name:           default
 
UUID:          8e15ca1c-1904-34f1-96f6-896640500fd5
 
Active:        yes
 
Persistent:    yes
 
Autostart:      yes
 
Bridge:        virbr0
 
</pre>
 
  
  
You can also see information in <code>/etc/libvirt/qemu/networks/default.xml</code> file
 
<pre>
 
<!--
 
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>
+
virsh net-info default
  <name>default</name>
+
Name:          default
  <uuid>8e15ca1c-1904-34f1-96f6-896640500fd5</uuid>
+
UUID:          8e15ca1c-1904-34f1-96f6-896640500fd5
  <forward mode='nat'/>
+
Active:        yes
  <bridge name='virbr0' stp='on' delay='0'/>
+
Persistent:    yes
  <mac address='54:54:01:97:49:54'/>
+
Autostart:     yes
  <ip address='192.168.122.1' netmask='255.255.255.0'>
+
Bridge:         [[virbr]]0
    <dhcp>
 
      <range start='192.168.122.2' end='192.168.122.254'/>
 
    </dhcp>
 
  </ip>
 
</network>
 
  
  
</pre>
+
You can also see information in <code>[[/etc/libvirt/qemu/networks/default.xml]]</code> file
 +
 
 +
 
 +
== Related commands ==
 +
* <code>[[virsh net-list]]</code>
 +
* <code>[[brctl]]</code>
 +
* <code>[[virsh net-dhcp-leases]]</code>
 +
* <code>[[virsh net-edit]]</code>
  
 
== See also ==
 
== See also ==
 
* {{KVM}}
 
* {{KVM}}
 
* {{virsh net}}
 
* {{virsh net}}
 
+
* {{virsh information}}
  
  
 
[[Category:Linux]]
 
[[Category:Linux]]
 +
[[Category:virsh]]

Latest revision as of 12:09, 31 March 2021

Advertising: