Windows common Network commands use scripting to share _dos/bat

Source: Internet
Author: User

Netcmd.bat

Copy Code code as follows:

#windows常用网络命令

#查看本地网卡接口信息
Ipconfig/all

#ping (often used to test network connectivity)
Ping www.baidu.com

#路由相关

#1. View the routing table (where 0.0.0.0 records are the default route configuration)
Route print

#2. Add routes (if you add the-p parameter to indicate adding a permanent route)
Route add 192.168.1.0 Maks 255.255.255.0 192.168.1.11

#3. Delete route
Route Delete 192.168.1.0

#4. Trace Route
Tracert www.baidu.com

#地址解析 (Map of IP address to MAC address)
Arp-a

#网络配置 (Network connection command line configuration Interface)

#导出本地网络连接配置信息
netsh interface ip dump > d:/netconfig.txt

#导入网络配置
Netsh exec d:/netconfig.txt

#设置本地连接通过dhcp自动配置
netsh interface ip set address "Local Area Connection" DUHP

#设置本地连接静态IP
netsh interface ip set address "Local Area Connection" Static 192.168.1.11 255.255.255.0 192.168.1.1

#查看域名信息 (can get the IP address of the domain name)
Nslookup baidu.com

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.