DHCPd receives a wrong MAC-address from VirtualBox Guest
0
votes
1
answer
144
views
I have VM which is working with "Host-Only Adapter". I disabled VirtualBox's built-in DHCP-server. I've installed
isc-dhcp-server
on my hypervisor. Then I added the subnet
subnet 10.10.54.0 netmask 255.255.255.0 {
range 10.10.54.2 10.10.54.254;
option routers 10.10.54.1;
option domain-name-servers 8.8.8.8, 8.8.4.4;
default-lease-time 600;
max-lease-time 7200;
}
And added a fixed address for virtual machine.
host 10-10-54-11 {
hardware ethernet 08:00:27:de:7e:cc;
fixed-address 10.10.54.11;
}
My virtual machine has MAC-address 08:00:27:de:7e:cc
. I'm trying to send a DHCP-request from my virtual machine by this command: nmap --script broadcast-dhcp-discover
. However, when DHCPd receives a request for offering IP-address for VM, DHCPd shows a completely different MAC-address and doesn't send a fixed address
root@hypervisor:/etc/dhcp# systemctl status isc-dhcp-server
● isc-dhcp-server.service - ISC DHCP IPv4 server
Loaded: loaded (/lib/systemd/system/isc-dhcp-server.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-11-13 12:28:09 +05; 9min ago
Docs: man:dhcpd(8)
Main PID: 12274 (dhcpd)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/isc-dhcp-server.service
└─12274 dhcpd -user dhcpd -group dhcpd -f -4 -pf /run/dhcp-server/dhcpd.pid -cf /etc/dhcp/dhcpd.conf
Nov 13 12:28:09 hypervisor dhcpd: you want, please write a subnet declaration
Nov 13 12:28:09 hypervisor dhcpd: in your dhcpd.conf file for the network segment
Nov 13 12:28:09 hypervisor dhcpd: to which interface eth0 is attached. **
Nov 13 12:28:09 hypervisor dhcpd:
Nov 13 12:28:09 hypervisor dhcpd: Sending on Socket/fallback/fallback-net
Nov 13 12:28:09 hypervisor dhcpd: Server starting service.
Nov 13 12:28:14 hypervisor dhcpd: DHCPDISCOVER from de:ad:c0:de:ca:fe via vboxnet4
Nov 13 12:28:15 hypervisor dhcpd: DHCPOFFER on 10.10.54.3 to de:ad:c0:de:ca:fe via vboxnet4
Nov 13 12:32:39 hypervisor dhcpd: DHCPDISCOVER from de:ad:c0:de:ca:fe via vboxnet4
Nov 13 12:32:40 hypervisor dhcpd: DHCPOFFER on 10.10.54.3 to de:ad:c0:de:ca:fe via vboxnet4
Is it a bug? How to fix this problem?
Asked by Semyon Bayandin
(105 rep)
Nov 13, 2023, 07:50 AM
Last activity: Nov 13, 2023, 06:36 PM
Last activity: Nov 13, 2023, 06:36 PM