Modify and switch IP settings in Windows Command Line

Source: Internet
Author: User

When you need to switch the IP settings of the Local Area Connection frequently, use the following two groups of commands to process two batches of files, which simplifies the operation.

1. Set it to a fixed IP address and DNS

Netsh int IP Set address name = "Local Area Connection" Source = static address = 192.168.73.59 mask = 255.255.255.0 gateway = 192.168.73.1 gwmetric = 1
Netsh int IP Set DNS name = "Local Area Connection" Source = static ADDR = 218.85.157.99
Netsh int IP add DNS name = "Local Area Connection" ADDR = 110.90.119.99

 

2. Set to use DHCP

Netsh int IP Set address name = "Local Area Connection" Source = DHCP
Netsh int IP Set DNS name = "Local Area Connection" Source = DHCP

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.