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:
You can manually work around the issue by configuring the IP address using Powershell directly:
Get-NetAdapter
Remove-NetIPAddress -InterfaceAlias Ethernet0 -Confirm:$False
New-NetIPAddress -InterfaceAlias Ethernet0 -IPAddress 10.20.30.10 -PrefixLength 24 -DefaultGateway 10.20.30.1
Set-DnsClientServerAddress -InterfaceAlias Ethernet0 -ServerAddresses ("10.20.30.2","10.20.30.3")