It worked on the first boot and was gone after a later internal reboot -- no IPv4 at all, not even DHCP. DHCP is turned off before the address is set, so anything that stops the set mid-way leaves the interface with nothing. A stale ARP entry for the address, left on the network by the previous instance, tripped duplicate-address detection and made New-NetIPAddress throw; with -ErrorAction Stop that aborted the script with DHCP already off. DadTransmits 0 turns that detection off so the static binds regardless of what the network remembers, and the assignment is now retried a few times rather than fatal on the first throw. Moved to its own .ps1 -- a wait loop and a retry are not worth keeping correct inside a cmd one-liner. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0117qMyjpuXsjpVAcpJbFD8g |
||
|---|---|---|
| .. | ||
| linux | ||
| windows | ||
| default.nix | ||