Use Hyper-V VM-based dnsmasq instance to provide IP address to physical connection

0

Is there any way to use a Hyper-V VM on my Windows desktop to provide an address to a physical Fedora system that the host is physically connected to via an Ethernet cable? This is Windows 10 not Server so if I understand it correctly I cannot just set up a DHCP server in Windows itself.

I should note that I am currently missing the correct cables to attach my Fedora server to a monitor so I'm trying to figure out a way to get a DHCP server attached since I know the physical adapter on the Fedora server is configured for DHCP addressing, and I should be able to check logs on the dnsmasq server and see the address request after a reboot. Also I don't have a router or switch available to help, just a single Ethernet cable running between the two physical ports on the Windows and Fedora servers.

+-------------------------+
|                         |
|                         |
|  Windows 10 w/Hyper-V   |
|                         |
|                   +-------------------+
|  +-------------+  |     |             |
|  | dnsmasq VM  |  |     |             |
|  |             +--+     |             |
|  +-------------+        |             |
+-------------------------+             |
                                        |
                                        |
+-------------------------+             |
|                         |             |
|          Fedora         |             |
|                         +-------------+
|     IPv4 DHCP Client    |
|                         |
|                         |
+-------------------------+

javanix

Posted 2020-01-16T05:24:00.367

Reputation: 609

No answers