||The topic of this article may not meet Wikipedia's general notability guideline. (July 2013)|
||This article includes a list of references, related reading or external links, but its sources remain unclear because it lacks inline citations. (March 2010)|
In computing, netsh, or network shell, is a command-line utility included in Microsoft's Windows NT line of operating systems beginning with Windows 2000. It allows local or remote configuration of network devices such as the interface.
A common use of netsh is to reset the TCP/IP stack to default, known-good parameters, a task that in Windows 98 required reinstallation of the TCP/IP adapter. In this mode, a log file must be provided, which will be filled with what values netsh affected.
netsh, among many other things, also allows the user to change the IP address on their machine.
Here are a few examples on how to use netsh to configure your network interface. Where 'local' is the name of the interface you want to configure.
netsh interface ip reset C:\resetlog.txt
Static IP address:
netsh interface ip set address local static 192.168.1.1 255.255.255.0
Two static IP addresses:
netsh interface ip set address local static 192.168.1.1 255.255.255.0 netsh interface ip add address local 188.8.131.52 255.255.255.0
Dynamic IP address:
netsh interface ip set address name="Local Area Connection" source=dhcp
netsh and IPv6
netsh can also be used to read information from the IPv6 stack.
To view the IPv6 addresses using netsh:
netsh interface ipv6 show address
- Using Netsh from Microsoft TechNet
- Ipv6 in .NET (Broken)
- online tool to build address bind commands
- All netsh commands
|This Microsoft Windows article is a stub. You can help Wikipedia by expanding it.|