I would like to know if there is a way to hardcode a DHCP client id inside /etc/network/interfaces. Preferably in a way that would supersede the client's mac address as a determiner for obtaining a lease.
My Ubuntu 16.04 VM is getting the same IP lease as its host (Windows 10, running hyper-V). The virtual interface for the VM (setup as a virtual Ethernet device) is bridged with the host's Wifi interface. I suspect my home wifi can't support more than one mac address per connection or something like that (non-WDS).
It would be convenient to differentiate the dhcp clients using a client option passed from
/etc/network/interfaces. I'm not exactly sure how I should be passing this parameter to
dhclient from the command line nor the config files either.
Things I've tried (unsuccessfully):
dhclient -idoesn't seem to do anything different. (even after deleting all lease files)
- Enabling mac address spoofing on the adapter settings for the VM in hyper-v. (I think that applies to stuff happening inside the guest though).
In case it matters, my home router is running OpenWrt Chaos Calmer 15.05.1. I'm not sure which particular dhcpd server runs on it.