Windows common Network commands use scripting to share

Source: Internet
Author: User

This article mainly introduced the Windows Common Network command use script, including the view local network card interface information, the view route, the table adds the route, the tracking route and so on command, needs the friend to be possible to refer to under

The Netcmd.bat code is as follows: Ping www.baidu.com #路由相关 #1 #windows常用网络命令 #查看本地网卡接口信息 ipconfig/all #ping (often used to test network connectivity). View the routing table (its 0.0.0.0 record is 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 In addition to Routing route delete 192.168.1.0 #4. Trace Routing tracert www.baidu.com #地址解析 (mapping of IP address to MAC address) Arp-a #网络配置 (Network connection command line configuration Interface) #导出本地网络连 Connect configuration information netsh interface ip dump > d:/netconfig.txt #导入网络配置 netsh exec d:/netconfig.txt #设置本地连接通过dhcp自动配置 netsh interf Ace 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.1 68.1.1 #查看域名信息 (can get the IP address corresponding to the domain name) nslookup baidu.com
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

11.11 Big Sale for Cloud

Get Unbeatable Offers with up to 90% Off,Oct.24-Nov.13 (UTC+8)

Get It Now >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.