The command is to display the IP configuration of the interface of course "local connection" and save it in the Pc1.txt text file
I'll check the C:\pc1.txt file.
Displays the IP configuration of the current "Local Area Connection" interface, and we use the command Ipconfig/all to see if the current interface configuration is the same as the Pc1.txt file
You can see that the two are the same. We open PC1.TXT This file and change the IP 192.168.0.18 of "set address name =" Local Connection "source = static addr = 192.168.0.18" to 192.168.0.11 8, then save. Then, we use Notepad to create a new file, enter Netsh-f c:\pc1.txt.
Run cmd
: >ipconfig (First use ipconfig this command to look at the IP address before the change)
Windows IP Configuration
Ethernet Adapter Local Area Connection:
Connection-specific DNS Suffix. :
IP address ...: 192.168.0.250 (IP prior to local connection change).
Subnet Mask ........... : 255.255.255.0
Default Gateway ..... . : 192.168.0.1
PPP Adapter dial-up Connections:
Connection-specific DNS Suffix. :
IP address. ...........:211.149.128.147
Subnet Mask ........... : 255.255.255.255
Default Gateway ..... . : 211.149.128.147
C:>netsh (then execute netsh this command)
Netsh>interface (subcommand for Netsh commands)
INTERFACE>IP (subcommand for interface command)
Interface Ip>set (subcommand for Interface IP command)
The following instructions are valid:
Commands in this context:
Set address-Sets the IP or default gateway for the specified interface.
Set DNS-sets the DNS server mode and address.
Set wins-sets the WINS server mode and address.
Interface Ip>set Address "Local Area Connection" static 192.168.0.2 255.255.255.0 192.168.0.1
1 (set IP address)
Are you sure.
Interface Ip>exit
C:>ipconfig (change and then use the ipconfig command to look at the IP address, confirm whether the change is successful)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.