当我使用Sconfig
配置Windows Server Core时,它运行良好并从我的DHCP服务器获取IP。
但它不适用于PowerShell。我正在使用这个命令:
Set-NetIPInterface -InterfaceAlias "Ethernet 2" -Dhcp Enabled
ipconfig
结果:
Ethernet adapter Ethernet 2: Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . . : fe80::e432:65ae:f7a7:c350%4 Default Gateway . . . . . . . . . :