Difference between revisions of "Virsh net-dhcp-leases"

From wikieduonline
Jump to navigation Jump to search
(Created page with "No DHCP leases in this example: <pre> virsh net-dhcp-leases default Expiry Time MAC address Protocol IP address Hostname Client ID...")
 
Tags: Mobile web edit, Mobile edit
Line 6: Line 6:
 
</pre>
 
</pre>
  
 +
 +
Get IP from VM:
 +
<code>virsh net-dhcp-leases default | grep VM_MACHINE_NAME | awk '{ print $5}'</code>
  
  

Revision as of 12:05, 26 January 2020

No DHCP leases in this example:

virsh net-dhcp-leases default
 Expiry Time          MAC address        Protocol  IP address                Hostname        Client ID or DUID
-------------------------------------------------------------------------------------------------------------------


Get IP from VM: virsh net-dhcp-leases default | grep VM_MACHINE_NAME | awk '{ print $5}'


See also

Advertising: