可以使用命令行中的ipconfig命令显示和管理Windows IP和网络配置。具体来说,ipconfig/renew命令用于重置或续订Windows系统中的IP地址。以下说明适用于所有现代Windows版本,如Windows XP、Windows 7、Windows 8、Windows 10和Windows Server。
null
使用ipconfig打印当前IP地址和配置
在更新IP地址和配置之前,我们可以用 ipconfig
命令如下。我们还可以在更新IP地址和配置后再次运行此命令。
C:>ipconfigWindows IP ConfigurationEthernet adapter Ethernet0: Connection-specific DNS Suffix . : localdomain Link-local IPv6 Address . . . . . : fe80::557b:67:59aa:dcde%7 IPv4 Address. . . . . . . . . . . : 192.168.142.130 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.142.2
ipconfig/renew–更新IP地址和配置的命令
我们可以更新IP地址和配置 ipconfig /renew
命令如下。
C:>ipconfig /renewWindows IP ConfigurationEthernet adapter Ethernet0: Connection-specific DNS Suffix . : localdomain Link-local IPv6 Address . . . . . : fe80::557b:67:59aa:dcde%7 IPv4 Address. . . . . . . . . . . : 192.168.142.131 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.142.2
ipconfig/release–释放并重置IP地址和配置
如果我们只想释放或重置当前的IP地址或配置,我们应该运行 ipconfig /release
将重置但不更新的命令。
> ipconfig /release
相关文章: 什么是PowerShell.exe及其使用示例?
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END