Strange work of dnsmasq

Hi. Static leases dont work as well.

Full mac randomisation on client just consumes dhcp pool, disable that.

I don't use mac randomization

One mac is gigabyte other is apple, quite norrmal when both devices connect othger gets another address

1 Like

As @brada4 noted, you can't have conflicting IPs on a network - so I don't understand the issue you're posting.

DHCP Lease: first come - first served.

But t490 disconnect lan on wifi connecting, i just try to undersand how this works. Do i need to use separate IP's for interfaces?

You have configured an infinite lease time - so the lease never expires. Hence, it's not available to lease for the other device.

You could try altering the lease time first.

How fast do you switch between WiFi?

Immediatly, when i connect (lan, wlan) - mac in lease changes, but lease still alive. But, on picture - connected only wlan (I unplug lan cable), but in lease still mac of lan... I was connected to both and unplug lan. t490 still have acces to network. Sorry for my english.

As I can see, several mac's on interface tupically uses for virtual adapters. In my case should I use different IPs for each interface?

Sure you can - if the IP in the lease doesn't matter.

Does matter. Interface - ip - mac. Names like z370m-lan, z370m-wlan.

You can assign them via /etc/ethers.

As long as they have different MACs, IPs, and hostnames:

Then make a different lease for each with different IP.

If you want to maintain tcp connection along switchovers use tunneling with seamless roaming like wireguard.

I have 1 hostname for each host.
I want to have: 1 host - 1 ip - two mac's, but as can see - this is technically difficult, for now.
So, for understanding which interface is active - use different names for interfaces, like z370m-lan, z370m-wlan

...OK. Correct, this is what you have to do.

Not difficult, impossible - you have an infinite lease and wish to use the same IP or hostname for different hosts (per MAC) without expiring the IP's lease (infinity).

I'm talking about this.

So am I:

  • "when another asks for a lease" - your lease is infinite, I noted:
  • "it only works reliably if only one of the macaddrs is active at any time" - you have 2 active:

Notice the lease you desire says "unlimited".

That's why I asked (to consider feasibility of altering the lease time):

Your response was unclear.

I also noticed your default lease time is 90 days?

Every day, on t490. z370m all time connected to lan through lan interface.

Have you fixed the lease time yet in order to solve your problem?

Any number less than infinity should work.