[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lazy / delayed address allocation via ip command



Hi,

On Fri, Jan 09, 2026 at 08:50:31PM +0100, hede wrote:
> I do have my solution now, simply by running a postup-script some
> seconds after ifup finishes. But I'm still interested why this
> happens. 

Could it be waiting for duplicate address detection (DAD)? You could try
with:

iface eth0 inet6 static 
    address aaaa:bbbb:10:60:11::4/80
    gateway aaaa:bbbb:10:60:11::2
    dad-attempts 0
    …

to see if that helps. Obviously you will then have to be careful not to
use this address elsewhere as well.

Failing that, you could improve the post-up sleep a bit by calling a
script that:

1. reads the list of IPs for that interface

2. If source address found, add the route

3. sleep for a second

4. go to (1), probably check if already waited for too long and abort if
   so.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting


Reply to: