RSS

netsh

03 Apr

这个命令非常强大,这里我只是记录常会用到的地方,详细文档请查看

http://technet.microsoft.com/en-us/library/cc725935.aspx

 

IP设置

重置所有设置

netsh interface ip reset “Local Area Connection”

添加固定ip和网关

netsh interface ip add address "Local Area Connection" 10.0.0.2 255.0.0.0
netsh interface ip add address "Local Area Connection" gateway=10.0.0.3 gwmetric=2

DNS设置

add dns "Local Area Connection" 10.0.0.1 index=1
add dns "Local Area Connection" 10.0.0.3 index=2
Advertisements
 
Leave a comment

Posted by on April 3, 2009 in Cmdlets&Tools

 

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: