首页/系统/Windows 运维速查/netsh 查看接口与 IP 配置
本包目录(413 条)

netsh 查看接口与 IP 配置

netsh interface 子命令查看接口列表与 IP 配置:接口名、状态、地址与 DHCP 模式一目了然。

Windows 运维速查系统更新于 2026-10-12
用途查看接口与 IP 状态
语法netsh interface show interface;netsh interface ip show config
要点接口名(name=)是后续命令的引用键

常用示例

常用示例
netsh interface show interface
netsh interface ip show config
netsh interface ip show address "以太网"
启停网卡:netsh interface set interface 名称 admin=disable 后 admin=enable。

易错点

  • netsh 输出随系统语言变化,脚本解析不稳,建议改用 Get-Net* cmdlet
  • 改了配置未生效时先确认接口是否处于启用状态

数据来源与参考

  • Microsoft Learn:netsh interface 命令

相关工具

​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌