Skip to content

Instantly share code, notes, and snippets.

@sherrier
Created April 8, 2012 12:48
Show Gist options
  • Save sherrier/2337112 to your computer and use it in GitHub Desktop.
Save sherrier/2337112 to your computer and use it in GitHub Desktop.
使用命令行设置网络连接的IP,网关,DNS
@echo Setting IP for Office
netsh interface ip set address name="无线网络连接" source=static addr=192.168.23.19 mask=255.255.240.0 gateway=192.168.16.1 gwmetric=1
netsh interface ip set dns "无线网络连接" static 172.16.50.240
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment