netsh interface ip set address "connection name" static 192.168.0.101 255.255.255.0 192.168.0.1
NOTE: The default connection names are Local Area Connection for wired adapters and Wireless Network Connection for Wi-Fi adapters. The IP address order: client IP, subnet mask, and gateway IP.
Here’s how to configure the DNS addresses:
netsh interface ip add dns "connection name" 208.67.222.222
netsh interface ip add dns "connection name" 208.67.220.220 index=2
NOTE: Remember to replace the connection names and IP addresses.
To dump the TCP/IP configuration:
netsh -c interface dump > PATH_AND_FILENAME.txt
To import the TCP/IP configuration:
netsh -f PATH_AND_FILENAME.txt
For setting dhcp
netsh interface ip set address "Local Area Connection" dhcp
NOTE: The default connection names are Local Area Connection for wired adapters and Wireless Network Connection for Wi-Fi adapters. The IP address order: client IP, subnet mask, and gateway IP.
Here’s how to configure the DNS addresses:
netsh interface ip add dns "connection name" 208.67.222.222
netsh interface ip add dns "connection name" 208.67.220.220 index=2
NOTE: Remember to replace the connection names and IP addresses.
To dump the TCP/IP configuration:
netsh -c interface dump > PATH_AND_FILENAME.txt
To import the TCP/IP configuration:
netsh -f PATH_AND_FILENAME.txt
For setting dhcp
netsh interface ip set address "Local Area Connection" dhcp
No comments:
Post a Comment