VirtualBox

Opened 4 years ago

#19799 new defect

Incorrect DHCP lease command output

Reported by: imort Owned by:
Component: network/hostif Version: VirtualBox 6.1.10
Keywords: dhcp server Cc:
Guest type: Linux Host type: Windows

Description

VirtualBox 6.1.12r139181

Please, take a look at leases file fragment below:

<?xml version="1.0"?>
<Leases version="1.0">
  <Lease mac="08:00:27:6a:51:e9" id="010800276a51e9" network="0.0.0.0" state="acked">
    <Address value="192.168.8.254"/>
    <Time issued="1596783415" expiration="600"/>
  </Lease>
  <Lease mac="08:00:27:6a:51:e9" network="0.0.0.0" state="acked">
    <Address value="192.168.8.252"/>
    <Time issued="1596783702" expiration="600"/>
  </Lease>

Command output:

C:\Users\User>"C:/Program Files/Oracle/VirtualBox/VBoxManage.exe" dhcpserver findlease --interface "VirtualBox Host-Only Ethernet Adapter" --mac-address 0800276A51E9
IP Address:  192.168.8.254
MAC Address: 08:00:27:6a:51:e9
State:       acked
Issued:      2020-08-07T06:56:55Z (1596783415)
Expire:      2020-08-07T07:06:55Z (1596784015)
TTL:         600 sec, currently 10 sec left

Should return the latest lease, not the first one I assume.

And it didn't return the correct lease even when first one expired:

C:\Users\user>"C:/Program Files/Oracle/VirtualBox/VBoxManage.exe" dhcpserver findlease --interface "VirtualBox Host-Only Ethernet Adapter" --mac-address 0800276A51E9
IP Address:  192.168.8.254
MAC Address: 08:00:27:6a:51:e9
State:       expired
Issued:      2020-08-07T06:56:55Z (1596783415)
Expire:      2020-08-07T07:06:55Z (1596784015)
TTL:         600 sec, currently 0 sec left

Expected behaviour: return the last lease for MAC address.

Change History (0)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use