Netsh
Encyclopedia
In software, netsh, or network
shell
, is a utility included in Microsoft
's Windows NT
line of operating system
s 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 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.
Starting from Vista, one can also edit wireless settings (e.g. SSID) using netsh.
Static IP address:
Two static IP addresses:
Dynamic IP address:
stack, it is more user-friendly than the IPv6.exe utility and provides much of the same level of information.
To view your IPv6 address using NETSH:
Computer network
A computer network, often simply referred to as a network, is a collection of hardware components and computers interconnected by communication channels that allow sharing of resources and information....
shell
Shell (computing)
A shell is a piece of software that provides an interface for users of an operating system which provides access to the services of a kernel. However, the term is also applied very loosely to applications and may include any software that is "built around" a particular component, such as web...
, is a utility included in Microsoft
Microsoft
Microsoft Corporation is an American public multinational corporation headquartered in Redmond, Washington, USA that develops, manufactures, licenses, and supports a wide range of products and services predominantly related to computing through its various product divisions...
's Windows NT
Windows NT
Windows NT is a family of operating systems produced by Microsoft, the first version of which was released in July 1993. It was a powerful high-level-language-based, processor-independent, multiprocessing, multiuser operating system with features comparable to Unix. It was intended to complement...
line of operating system
Operating system
An operating system is a set of programs that manage computer hardware resources and provide common services for application software. The operating system is the most important type of system software in a computer system...
s beginning with Windows 2000
Windows 2000
Windows 2000 is a line of operating systems produced by Microsoft for use on personal computers, business desktops, laptops, and servers. Windows 2000 was released to manufacturing on 15 December 1999 and launched to retail on 17 February 2000. It is the successor to Windows NT 4.0, and is the...
. 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
Windows 98
Windows 98 is a graphical operating system by Microsoft. It is the second major release in the Windows 9x line of operating systems. It was released to manufacturing on 15 May 1998 and to retail on 25 June 1998. Windows 98 is the successor to Windows 95. Like its predecessor, it is a hybrid...
required reinstallation of the TCP/IP adapter. In this mode log file
Log file
The term log file can refer to:*Text saved by a computer operating system to recored its activities, such as by the Unix syslog facility*Output produced by a data loggerAlso see Wikibooks chapter...
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
IP address
An Internet Protocol address is a numerical label assigned to each device participating in a computer network that uses the Internet Protocol for communication. An IP address serves two principal functions: host or network interface identification and location addressing...
on their machine.
Starting from Vista, one can also edit wireless settings (e.g. SSID) using netsh.
Example usage
An example usage:netsh interface ip reset C:\resetlog.txt
Static IP address:
netsh interface ip set address local static 123.123.123.123 255.255.255.0
Two static IP addresses:
netsh interface ip set address local static 123.123.123.123 255.255.255.0
netsh interface ip add address local 234.234.234.234 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 IPv6IPv6
Internet Protocol version 6 is a version of the Internet Protocol . It is designed to succeed the Internet Protocol version 4...
stack, it is more user-friendly than the IPv6.exe utility and provides much of the same level of information.
To view your IPv6 address using NETSH:
netsh interface ipv6 show address
External links
- Using Netsh from Microsoft TechNet
- Ipv6 in .NET (Broken)
- online tool to build address bind commands
- All netsh commands