0
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 -i
doesn'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.
Related issue:
that looks very promising. I see an example in that man page:
send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
. I'll give it a spin when I get to it. I may not be able to pass that option down from/etc/network/interfaces
directly, but hopefully if I mark it as "dhcp" in the interfaces file, and add the key in dhclient.conf for the particular interface, it should pick it up. – init_js – 2018-09-28T05:25:34.757