Editing Virsh net-info
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | <pre> | |
− | + | virsh net-info default | |
+ | 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> | |
− | + | <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> | ||
− | + | </pre> | |
− | |||
== Related commands == | == Related commands == | ||
Line 20: | Line 39: | ||
* <code>[[brctl]]</code> | * <code>[[brctl]]</code> | ||
* <code>[[virsh net-dhcp-leases]]</code> | * <code>[[virsh net-dhcp-leases]]</code> | ||
− | |||
== See also == | == See also == |
Advertising: