当在 Acronis WinPE 可启动媒体 (Acronis WinPE Bootable Media) 的交互界面中配置IP地址无效时,可以使用命令行配置IP地址。
配置从DHCP获取IP地址
示例:
netsh interface ip set address name="Ethernet" source=dhcp
指定静态IP地址
网络适配器名称:Ethernet
IP 地址:10.0.0.9
掩码8位:255.0.0.0
默认网关:10.0.0.1
示例:
netsh interface ip set address "Ethernet" static 10.0.0.9 255.0.0.0 10.0.0.1 1
注意:不要漏掉网关后面的 “ 1 ”
“Ethernet” 为您本地网络适配器的名称,可从 ipconfig /all
命令的输出结果中获取网络适配器的名称,如下示例中,网络适配器的名称是 Ethernet 2
C:\Users\administrator>ipconfig /all
Ethernet adapter Ethernet 2:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) Ethernet Connection (3) I218-V
Physical Address. . . . . . . . . : 50-7B-9D-8C-6A-C1
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.0.0.9 (Preferred)
Subnet Mask . . . . . . . . . . . : 255.0.0.0
Lease Obtained. . . . . . . . . . : Tuesday, January 20, 2018 8:56:05
Lease Expires . . . . . . . . . . : Thursday, January 22 2018 9:00:32
Default Gateway . . . . . . . . . : 10.0.0.1
DHCP Server . . . . . . . . . . . : 10.0.0.1
DNS Servers . . . . . . . . . . . : 8.8.8.8
NetBIOS over Tcpip. . . . . . . . : Enabled