2019-03-11 03:02:22 +00:00
|
|
|
# ipconfig
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 显示和管理 Windows 的网络配置。
|
2021-10-01 19:28:01 +01:00
|
|
|
> 更多信息:<https://docs.microsoft.com/windows-server/administration/windows-commands/ipconfig>.
|
2019-03-11 03:02:22 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示网络适配器列表:
|
2019-03-11 03:02:22 +00:00
|
|
|
|
|
|
|
`ipconfig`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示网络适配器的详细列表:
|
2019-03-11 03:02:22 +00:00
|
|
|
|
|
|
|
`ipconfig /all`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 为一个网络适配器重新获取 IP 地址:
|
2019-03-11 03:02:22 +00:00
|
|
|
|
2019-03-11 05:21:00 +00:00
|
|
|
`ipconfig /renew {{适配器}}`
|
2019-03-11 03:02:22 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 为一个网络适配器释放 IP 地址:
|
2019-03-11 03:02:22 +00:00
|
|
|
|
2019-03-11 05:21:00 +00:00
|
|
|
`ipconfig /release {{适配器}}`
|
2019-03-11 03:02:22 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 清除所有 DNS 缓存:
|
2019-03-11 03:02:22 +00:00
|
|
|
|
|
|
|
`ipconfig /flushdns`
|