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