Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allocate IP address based on the MAC address in the client identifier. #6135

Open
3 tasks done
nmreadelf opened this issue Aug 25, 2023 · 0 comments · May be fixed by #6110
Open
3 tasks done

allocate IP address based on the MAC address in the client identifier. #6135

nmreadelf opened this issue Aug 25, 2023 · 0 comments · May be fixed by #6110

Comments

@nmreadelf
Copy link

Prerequisites

  • I have checked the Wiki and Discussions and found no answer

  • I have searched other issues and found no duplicates

  • I want to request a feature or enhancement and not ask a question

The problem

I want to allocate IP addresses based on the MAC address in the client identifier when the DHCP server assigns addresses.
The situation I encountered is:

  • A virtual machine in Hyper-V uses host networking mode to connect to the network.
  • the host uses wireless to connect to the AP.

When the virtual machine sends a DHCP request, after going through the Hyper-V bridge, the source MAC address of the DHCP request becomes the host's wireless NIC MAC address. At the same time, because I assigned a static IP to the host's MAC address, the virtual machine obtained the same IP as the host through DHCP, causing an IP conflict. Through packet capturing I found that the client id in the DHCP request (with default dhcp client program configuration) is the MAC address of the virtual machine.

Proposed solution

allocate IP address based on the MAC address in the client identifier.

Alternatives considered and additional information

No response

@nmreadelf nmreadelf linked a pull request Aug 25, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant