Virsh net-dhcp-leases

From wikieduonline
Revision as of 06:55, 4 April 2021 by Welcome (talk | contribs)
Jump to navigation Jump to search

virsh net-list

virsh net-dhcp-leases default
Expiry Time   MAC address   Protocol   IP address   Hostname   Client ID or DUID
-----------------------------------------------------------------------------------
virsh net-dhcp-leases default
Expiry Time          MAC address        Protocol  IP address                Hostname        Client ID or DUID
-------------------------------------------------------------------------------------------------------------------
2020-02-06 12:19:41  52:54:00:5d:c1:a1  ipv4      192.168.122.119/24        DESKTOP-LDUJ5M6 01:52:54:00:5d:c1:a1

No DHCP leases in this example:

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


virsh net-dhcp-leases
error: command 'net-dhcp-leases' requires <network> option

Get IP from VM


virsh domiflist VM_MACHINE_NAME
Interface  Type       Source     Model       MAC
-------------------------------------------------------
vnet1      network    default    rtl8139     52:54:00:33:87:t5
arp -e 
192.168.1.10          ether  52:54:00:33:87:t5

See also

Advertising: