I have this issue in a couple of circumstances when I need same IP for different MAC Address:
when device connects to extender the extender assigns first XX:XX:XX of MAC address differently from original device (but device connects only one time either to router OR to extender, so no way of conflict for same IP)
when laptop for example connects with ethernet or wifi I would like it to get always same IP
As far as I know you won’t be able to assign the same IP to 2 different MAC addresses in your DHCP settings else the router won’t know to which MAC address to send the traffic…
And if you tried to force the IP address on your machine and end up with 2 devices on the same network having the same IP, you will have connection issues.
If it’s on a laptop, creating a bridge might achieve what you’re after
Thanks for the clarification, but I still stand by my reply that most routers will not allow you to assign the same IP address to multiple MAC Addresses (I don’t know all routers out there)
Now since your extender assigns an IP address to a device, I’m guessing it has a DHCP feature, so if you want the same IP address for the device (regardless of which network entity/card is used), set the same rule in your extender as on your router?
Alternatively set a static IP address on the device as per @sjee’ s suggestion and make sure that this IP is not in the DHCP assignable range on your router/extender.
yes exactly most router does not. So the plan is to deactivate the DHCP of router/extender and abilitate the one of the Hass.io, but the question is: will the DHCP server of the hass.io do it?
I’ve not tried yet, but the config technically allows you to write that scenario.
Why don’t you try and see if you get errors in the log then post the results here?
It might help someone else?
Just an example: my Google Home after a powercut sometimes it connects to the extender (which assign an IP) and sometimes it connects to the router (with another IP, the correct one). Hence in the first case it will not work with HASS, in the second it will.
I have multiple cases where assign a static IP is cumbersome, uncomfortable, or simply not possible
I know that in IT space there all sort of possible solutions: still looking with the most simple one: a DHCP server that allows me that will solve lot of problems and is very easy to maintain.
Other user case: iphone of wife, if I puut her a static IP in WiFi, then she goes in office or somewhere else were is WiFI and most probably will not work, and she will call me for solutions …
naaaa, better find a DHCP server that allows what I need.
As a special case, it is possible to include more than one hardware address. eg: --dhcp-host=11:22:33:44:55:66,12:34:56:78:90:12,192.168.0.2 This allows an IP address to be associated with multiple hardware addresses, and gives dnsmasq permission to abandon a DHCP lease to one of the hardware addresses when another one asks for a lease. Beware that this is a dangerous thing to do, it will only work reliably if only one of the hardware addresses is active at any time and there is no way for dnsmasq to enforce this. It is, for instance, useful to allocate a stable IP address to a laptop which has both wired and wireless interfaces.