Difference between revisions of "Windows netsh networking"

From Ever changing code
Jump to navigation Jump to search
(Created page with "Examples of use of netsh.exe Windows command-line utility to manipulate local or remote machine network configuration == List IPv4 addresses == It gives nicer output than <tt>...")
 
Line 1: Line 1:
Examples of use of netsh.exe Windows command-line utility to manipulate local or remote machine network configuration
Examples of use of netsh.exe Windows command-line utility to manipulate local or remote machine network configuration
== List IPv4 addresses ==
== List IPv4 and IPv6 addresses ==
It gives nicer output than <tt>ipconfig</tt>
It gives nicer output than <tt>ipconfig</tt>
  netsh interface ip show addresses
  netsh interface '''ip''' show addresses
netsh interface '''ipv6''' show addresses


== Set IPv4 address ==
== Set IPv4 address ==

Revision as of 16:00, 28 February 2015

Examples of use of netsh.exe Windows command-line utility to manipulate local or remote machine network configuration

List IPv4 and IPv6 addresses

It gives nicer output than ipconfig

netsh interface ip show addresses
netsh interface ipv6 show addresses

Set IPv4 address

netsh interface ip set address "Ethernet" static hostipaddress 255.255.255.0 hostgatewayaddress
netsh interface ip set address "Ethernet" static 10.50.10.41 255.255.255.0 10.50.41.1

Set IPv6 address

Configure interface with ipv6 address, interface name "Local Area Connection"

netsh interface ipv6 set address "Local Area Connection" 2001:db8:acad:1::3

import wireless profile

Export profile
Netsh wlan export profile folder= PathAndFileName [[name=] ProfileName] 	[[interface=] InterfaceName] [[key=] clear]
Netsh wlan export profile folder=%USERPROFILE%\Downloads\Wifiprofiles name=Guest_wireless interface="Wireless Network Connection"
Import profile
Netsh wlan add profile filename= PathAndFileName [[interface=]InterfaceName] [[user=]{all|current}]
Netsh wlan add profile filename="Wireless Network Connection-Guest_wireless.xml" interface="Wireless Network Connection" user=all