Static IP address and dynamic IP Address

Source: Internet
Author: User

It is no longer a new technology to bind multiple IP addresses to a network card at the same time, and this operation is also very simple, but do you notice that the bound IP addresses are static IP addresses.

The local area network managed by the author is large and has a large number of clients. The DHCP server is used to dynamically allocate IP addresses. However, to facilitate network debugging, some clients must use static IP addresses.
Address. Every time I perform network debugging, I have to modify the IP address back and forth, which is very troublesome. Cannot these clients have both static and dynamic IP addresses? Yes, of course, but this requires some tips.
Coincidentally.

Step 1: automatically obtain Dynamic IP addresses

Some clients must use both dynamic and static IP addresses. Dynamic IP addresses are allocated by DHCP servers in the LAN. Therefore, we must set the client to automatically obtain IP addresses from the DHCP server.

On the client, right-click the "Network Neighbor" icon, select "properties" in the pop-up menu, and then right-click the network adapter icon connecting to the LAN in the "Network Connection" window, select "owner"
", Select" Internet Protocol (TCP/IP) "in the Connection Properties dialog box, and click" properties "to bring up the" Internet Protocol properties "dialog box. In this dialog box,
Make sure to select the "automatically retrieve IP Address" and "automatically retrieve DNS server" options, and click "OK.

Now we can have a dynamic IP address. Next we need to package static IP addresses.

Step 2: manually add static IP addresses

After the dynamic IP address of the DHCP server is automatically obtained, You can manually add a static IP address to the client. You can set Windows 2000/XP/2003 or Windows 98.

● Windows
2000/XP/2003

Click Start> Run. In the run dialog box, enter the regedt32 command and click OK. The Registry Editor window is displayed. Find
"HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Tcpip \ Parameters \ Interfaces ",
In the interfaces project, find the ID corresponding to the NIC connected to the LAN. Then, find the "IPaddress" key in the right frame and double-click it to edit it. If you want
Add the static IP address 192.168.3.21 (Figure 1 ),

 

In the "value data" Multi-string edit dialog box, enter this IP address. You can also specify multiple static IP addresses. Note that each IP address occupies a single line and click "OK.

Tip: the ID numbers corresponding to the network card of each client are different. For example, the ID of the network card of the computer used by the author is "{4df3db99-b71e-4fdd-87e4-70c30d78c62b}
".

Then open the "subnetmask" Key edit dialog box and enter the subnet mask of the static IP address you just added. The author entered "255.255.255.0", and each subnet mask also occupies a single line, click "OK.

After the registry is modified, right-click the NIC icon in the "Network Connection" window, select "Disable", right-click the icon again, and select "start.

● Windows
98

In Windows 98, run the "Regedit" command to open the Registry Editor. the ID of the NIC is located at "HKEY_LOCAL_MACHINE \
System \ CurrentControlSet \ Services \ class \ nettrans ", other modification settings are very simple, and do not forget to re-
Start Windows 98.

Step 3: Verify IP Address Settings

After completing the preceding settings, does the IP address take effect? Then we can use "ipconfig
/All command to verify, if you find that the network card has been bound with multiple IP addresses, one of which is a dynamic dhcp ip address, the other is manually added static IP address, this indicates you
A token has a static IP address and a dynamic IP address.

 

Auto: http://www.bbscpcw.com/%B5%E7%C4%D4%B1%A82004%C4%EA/%CD%F8%C2%E7%CD%A8%D0%C5/%BE%D6%D3%F2%CD%F8/BE2004_23070602%5B1%5D.htm

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.