netsh介绍

关于netsh的介绍网上很多,这里有一个介绍如何设置无线网络的:

http://news.newhua.com/news1/Skills_System/2010/325/1032515158FA339H6DFI36C687486428DDJF7DAFEJ9GJ7J52KE4CI5.html


说几个注意的地方吧:

1、怎么样呢?

直接在cmd里面netsh之后就进去netsh的上下文了,然后可以用?来慢慢查看帮助

要学会看帮助做事!


2、netsh的工作方式

它的主要关键字是"上下文",树状的,嵌套的

在windows的不知道什么页面里面有介绍到,不过英文的:


3、把设置保留一下吧:

把本地连接设置为动态获取:


netsh -c interface ipv4 set address "eth0" dhcp

netsh -c interface ipv4 set dnsservers "eth0" dhcp

这里的eth0是修改名字后的本地连接,如果用中文的话,老是说错误,所以就改了英文


设置一个一般的ip:


netsh -c interface ipv4 set address "eth0" static xxx.xx.xxx.xxx 255.255.255.0 xxx.xx.xxx.xxx

netsh -c interface ipv4 set dnsservers "eth0" static xxx.xx.xxx.xxx primary yes



netsh还是有很多东西玩的,以后有时间慢慢玩吧

猜你喜欢

转载自zxhdaniel.iteye.com/blog/924034