Modifying an IP address can be implemented in the network and Sharing center that is brought by the system. But many users sometimes need to set up static IP to achieve normal network communication, at this time only through the "omnipotent" command line to solve the problem.
1, with the shortcut key "Win+r" open the running interface, input "cmd" return, open t
No matter LAN or LAN, you may want to know which IP is useful and which IP is useless. This is not written for LAN all, but you can also take it when scanning LAN IP situation. Looking up some information on the internet, it looks very complicated. When you need to ping a large number of IP
@ To save the following bat, you can use it.
@echo off
echo is configuring IP, please wait ...
Set name= "Local Area Connection"
Set ipaddress=1.2.3.4
Set mask=255.255.255.0
Set gateway=1.2.3.4
Set dns=1.2.3.4
Set wins=1.2.3.4
Echo is configuring%name%, please wait ...
ECHO is configuring preferred dns:%dns% ...
netsh interface ip set DNS name= "Local Area Connection" Source=static addr=%dns%
EC
I used to set multiple ip addresses of different network segments on the local machine, and then switch the route so that different network segments can go out through different gateways, you can access multiple networks at the same time. However, I often find that some problems may occur, so I decided to use the most primitive method to solve the problem, that is, to use only the ip
I used to set multiple ip addresses of different network segments on the local machine, and then switch the route so that different network segments can go out through different gateways, you can access multiple networks at the same time. However, I often find that some problems may occur, so I decided to use the most primitive method to solve the problem, that is, to use only the ip
A simple command is used to create a text document and edit it:
Netsh interface IP Set address name = "Local Connection" Source = static ADDR = 137.50.95.92 mask = 255.255.255.0 none
Change the suffix to. bat.
Save and exit
Run the command.
There are several differences:DHCP mode:Netsh interface IP Set address name
Specific methods
Right-click the desktop Network Neighborhood → select "Properties" → "Local Area Connection" of the network card to select "Properties" → "general" → "Internet Protocol (TCP/IP)" To view its properties:
If the router is the default setting, then the computer's various network parameters should be set to:
IP Address: 192.168.1.x (2 Mask: 25
Guidance:
Change the IP address directly without restarting windowsAuthor: Wang Jun, Wenling Telecom Bureau, Zhejiang Province
Note: This article applies to Windows NT/2000/XP/2003
Download the sample project in this article
The source code is run as follows:
To set an IP address
The official version is called "Virtual Public IP address Reservation", which we call a static extranet IP address for easy understanding.If you use the International Windows Azure service domestically, it is highly recommended that you set the
Find the corresponding network card name
Using commands: ipconfig
Copy Code code as follows:
Ipconfig/all
Windows IP Configuration
Host Name ............:d501-4-3
Primary Dns Suffix ...:
Node Type ............:unknown
IP Routing Enabled ... : No
WINS Proxy Enabled ... : No
Ethernet Adapter Local Area Connection:
Co
Address: http://www.cctry.com/thread-3653-1-1.html
The source code is run as follows:
Source code download:
To set an IP address, you only need to change the corresponding settings for the adapter in the registry, but after the change, you need to restart the system to take effect. The addipaddress function can only add an I
Windows XP system changes IP address prompts need to reboot how to solve? we often encounter the need to modify the IP address when we use the Windows XP system computer. So, what do you do when you have a good
For windows, changing the ip address office network dynamically is always the same as changing the home network. With a script, you can simply double-click it, run www.2cto.com echo as the super administrator in win7 to set the default subnet gateway of the ip address (Wirel
In Windows xp/7, use bat to quickly set the IP address of the batch processing code @ Save the following bat, you can use it. @ echo off echo ip is being configured. Please wait... set name = "Local Connection" set ipaddress = 1.2.3.4set mask = 255.255.255.0set gateway = 1.2.3.4set dns = 1.2.3.4set wins = 1.2.3.4 echo
In windows, use a script to set the local connection ip address to set the local connection static ipnetsh interface ip set address "Local Connection" static 192.168.1.10 255.255.255.0 www.2cto.com and the above two ip addresses a
This article summarizes Python's method of acquiring native local IP addresses under Windows and Linux. Share to everyone for your reference. The specific analysis is as follows:
Python socket contains a wealth of functions and methods to obtain the IP address of the computer, the socket object GetHostByName method ca
With a notebook sometimes working in a fixed place, you need to use the same IP address. Change a place to change the IP, and again lose again.It began to feel tedious because it was the window work environment, and the VBS script began to come to mind.Stumbled upon a powerful netsh command ....The following two sections describe the basic usage of Netsh, and the
Easily convert IP addresses and DNS settings
Problem description:
For people who use laptops, they may often need to use them in different networks, such as the company network, customer network, or home broadband network. For this reason, you often need to set IP addresses and DNS servers based on the no-need network. For example, if you use a general broadband network at home, the
Do not know whether friends have such an experience, the laptop to the unit when the Internet, because the unit needs to be fixed with the IP address, and the home is automatically get IP address, so every day to this IP address s
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.