Backtrack:  
 
by lunarg on August 8th 2023, at 14:43

There's a known issue when attempting to configure a network adapter to set a static IP address through SConfig on a freshly installed Windows Server 2022 Core. Upon attempting to configure the IP address, it will fail with the following error message:

Error
Setting NIC to static IP...

Failed to release DHCP lease.

Result code: 83
Method name: ReleaseDHCPLease

You can manually work around the issue by configuring the IP address using Powershell directly:

  1. First, list all network adapters present to find the correct one:
    Get-NetAdapter
    You can reference by Name (InterfaceAlias) or by ifIndex (InterfaceIndex).
  2. Next, remove any existing (APIPA) addresses:
    Remove-NetIPAddress -InterfaceAlias Ethernet0 -Confirm:$False
  3. Add the new IP address to configure:
    New-NetIPAddress -InterfaceAlias Ethernet0 -IPAddress 10.20.30.10 -PrefixLength 24 -DefaultGateway 10.20.30.1
  4. Optionally, set the DNS servers. Note that this bit is not bugged and can be performed via SConfig:
    Set-DnsClientServerAddress -InterfaceAlias Ethernet0 -ServerAddresses ("10.20.30.2","10.20.30.3")
 
 
« April 2024»
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
282930    
 
Links
 
Quote
« Smith & Wesson - the original point and click interface »