<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>archive</title><link>https://archive-w.netlify.app/devops/os/win/</link><description>Recent content on archive</description><generator>Hugo</generator><language>zh-CN</language><atom:link href="https://archive-w.netlify.app/devops/os/win/index.xml" rel="self" type="application/rss+xml"/><item><title/><link>https://archive-w.netlify.app/devops/os/win/netsh/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://archive-w.netlify.app/devops/os/win/netsh/</guid><description>&lt;div class="outer yosemite">&lt;div class="dot red">&lt;/div>&lt;div class="dot amber">&lt;/div>&lt;div class="dot green">&lt;/div>&lt;/div>
&lt;div class="code-toolbar">&lt;pre data-lang="shell" data-line="" class="language-shell line-numbers" style="max-height: none">&lt;code class="language-shell"># 1、语法
netsh interface ip set|show interface|address|dnsservers
netsh interface set|add|show interface

# 2、实践

netsh interface ip show interface
netsh interface ip set address name=&amp;quot;本地连接&amp;quot; source=static|dhcp 192.168.0.192 255.255.255.0 192.168.0.1
netsh interface ip set dnsservers name=&amp;quot;本地连接&amp;quot; source=static addr = 1.2.4.8 primary
netsh interface ip add dnsservers name=&amp;quot;本地连接&amp;quot;  114.114.114.114 index=2
netsh interface set interface [admin=] enabled|disabled [connect=] connected|disconnected [newname=] xhs12302 

# 3、路由表
route print
route delete [traget]
route add [-p] 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric 2 if 2
&lt;/code>&lt;/pre>&lt;/div>
&lt;p>&lt;img src="https://archive-w.netlify.app/.images/devops/os/util/netsh.png" alt="">&lt;/p></description></item></channel></rss>