Difference between revisions of "Virsh net-dhcp-leases"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<code>[[virsh net-list]]</code> | <code>[[virsh net-list]]</code> | ||
− | |||
− | |||
virsh net-dhcp-leases default | virsh net-dhcp-leases default | ||
Expiry Time MAC address Protocol IP address Hostname Client ID or DUID | 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 | virsh net-dhcp-leases default | ||
Expiry Time MAC address Protocol IP address Hostname Client ID or DUID | Expiry Time MAC address Protocol IP address Hostname Client ID or DUID | ||
------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ||
− | |||
Revision as of 07:42, 6 February 2020
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 -------------------------------------------------------------------------------------------------------------------
Get IP from VM
virsh net-dhcp-leases default | grep VM_MACHINE_NAME | awk '{ print $5}'
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
- Virsh net: KVM networking,
virsh net-info
,virsh net-define
,virsh net-list
,virsh net-edit
,virsh net-dhcp-leases
,virsh net-start
,virsh net-autostart
,virsh net-list
, KVM networking,/etc/libvirt/qemu/networks/default.xml
, MacVTap virsh
: Storage information, Connecting, Operations, Memory, Snapshots, Networking, CPU, release notes,virsh nodedev-list
Advertising: