从以下命令中virsh net-edit default
,我看到:
<network>
<name>default</name>
<uuid>7a106327-942a-40e7-a977-018b5323832a</uuid>
<forward mode='nat'/>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:01:c4:28:33'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.2' end='192.168.122.254'/>
<host mac='0c:b5:c6:10:10:00' name='host1' ip='192.168.122.2'/>
<host mac='0c:b5:c6:10:10:01' name='host2' ip='192.168.122.3'/>
</dhcp>
</ip>
</network>
但是,当我执行时virsh net-dhcp-leases default
,我得到的结果为空?为什么会这样?我希望看到有关 host1 和 host2 的信息。我的最终目标是能够使用特定的 mac 地址执行 IP 地址查找。
Expiry Time MAC address Protocol IP address Hostname Client ID or DUID
-----------------------------------------------------------------------------------