Enabling IPv4 Auto IP (APIPA)

I’m occasionally doing some lab testing and when I do this it seems to take a while to set up multiple IPs in the same network. Is there a way to enable the 169.254.0.0/16 on links between devices? This is detailed in RFC 3927. What if I wanted to set up a set of random 169.254.0.0/30 links as PTP wired links; is there a faster way to do that?

I’m not aware of a way, unfortunately.

If this is just for the sake of convenience while testing things, have you considered using IPv6? Link-local addresses have the autoconfig property you’re looking for. Alternatively, since you mentioned that they’re just point-to-point links, have you considered the ip unnumbered strategy? You can skip having to have addresses on them at all if you just pick one /32 for every router. Then configure the point-to-point interfaces with :ip addr add interface= address=<this router’s /32> network=<other router’s /32>. Doing this cuts down on the amount of numerically useless addresses you have to assign to point-to-point links.