- Netsh
-
In software, netsh, or network shell, is a 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 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.
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 IPv6 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
Windows command line programs and built-ins (more) File system
(basic)File system
(advanced)Processes Registry User environment Text processing Shell programming Networking Searching Miscellaneous Categories:- Microsoft Windows stubs
- MS-DOS/Windows Command Prompt commands
- Windows communication and services
- Windows administration
- Windows components
Wikimedia Foundation. 2010.