Windows CMD modifies IP, DNS, and other parameters!

Source: Internet
Author: User
Tags get ip


Modify IP, Static!

netsh interface ip set address "Local Area Connection" Static 172.16.11.139 255.255.248.0 172.16.8.1

Note: After the IP, the mask can be modified by itself!

Get IP automatically:

netsh interface ip set address "Local Area Connection" DHCP


To modify static DNS:


netsh interface ip set DNS "Local Area Connection" static 202.106.0.20

Note: After the DNS, the mask can be modified by itself!


To modify static standby DNS:

netsh interface ip add DNS "Local Area Connection" 219.141.136.10

Note: After the DNS, the mask can be modified by itself!


Get DNS automatically:

netsh interface ip set DNS "Local Area Connection" DHCP


This article is from the "Ningzhiyuan @it notes" blog, so be sure to keep this source http://renzhiyuan.blog.51cto.com/10433137/1839595

Windows CMD modifies IP, DNS, and other parameters!

Related Article

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.